Knight Data Access Layer
GetMaxPrimaryKey Method (IDatabaseProvider)




KellermanSoftware.NetDataAccessLayer Namespace > IDatabaseProvider Interface : GetMaxPrimaryKey Method
The name of the table
The name of the primary key in the table
Get the maximum value for a primary key
Syntax
Function GetMaxPrimaryKey( _
   ByVal tableName As String, _
   ByVal primaryKey As String _
) As Long
Dim instance As IDatabaseProvider
Dim tableName As String
Dim primaryKey As String
Dim value As Long
 
value = instance.GetMaxPrimaryKey(tableName, primaryKey)
long GetMaxPrimaryKey( 
   string tableName,
   string primaryKey
)
long GetMaxPrimaryKey( 
   string* tableName,
   string* primaryKey
) 
int64 GetMaxPrimaryKey( 
   String^ tableName,
   String^ primaryKey
) 

Parameters

tableName
The name of the table
primaryKey
The name of the primary key in the table
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IDatabaseProvider Interface
IDatabaseProvider Members