SqlEverywhereDataService.BuildEmptyRecordQueryCommand

Builds a command object that queries an empty record containing all fields of the specified table.

public virtual IDbCommand BuildEmptyRecordQueryCommand( string tableName,
	string fieldList,
	DataRowProcessMethod selectMethod );

Return Value

IDbCommand object

Parameters

tableName
Table Name

fieldList
List of fields to be included in the query

selectMethod
Select method (such as stored procedure or select commands)


Remarks

Whenever this method is called in Stored Procedure mode, there needs to be a Stored Procedure on the server that follows the following naming convention:

[Prefix]new[TableName]

So in a scenario where the default prefix is used and the table name is Customer, the SP needs to have the following name:

milos_newCustomer

The SP accepts no parameters.

See also:

Class SqlEverywhereDataService


  Last Updated: 5/23/2007 | © , 2007