Reads keys from a SQL Database from a table you specify. Table must contain ID (int) and ConfigData fields.

Syntax:

public static object ReadkeysFromSqlServer( string ConnectionString,
	string TableName,
	int Key,
	Type ConfigurationObjectType );
Return: object reference or null on failure
Parameters: ConnectionString
Connection string to the SQL database

TableName
Name of the table. If the table doesn't exist it's created

Key
id of this configuration record. Use 0 for a single record.

ConfigurationObjectType
provide a type instance of the type to create (typeof(WebStoreConfig) for example)

See also:

Class wwAppConfiguration


Last Updated: 1/28/2007 | Send topic feedback