I am using ADO recordsets to access a DB using an OLE DB connection string. The DB is a SQL Server 2000 and it has an Index call IX_FieldIndex. Here is the sample code
Set rstFD = New ADODB.Recordset
rstFD.ActiveConnection = gvCnn
rstFD.LockType = adLockReadOnly
rstFD.CursorType = adOpenKeyset
rstFD.CursorLocation = adUseServer
rstFD.Source = "tblFieldSysSettings"
rstFD.Open Options:=adCmdTableDirect
rstFD.Index = "IX_FieldIndex"
rstFD.Requery
I am getting an error stating that:
Current provider does not support the necessary interface for Index functionality.
I have used this code for Access DBs, but never SQL Server.
I have heard rumors that SQL Server doesn't support the Index-Seek Method. Is this true or am I doing something incorrectly? I have access to the SQL Server so I can adjust the Index properties if that is the problem.
Thanks in advance for the help!
baugie
Set rstFD = New ADODB.Recordset
rstFD.ActiveConnection = gvCnn
rstFD.LockType = adLockReadOnly
rstFD.CursorType = adOpenKeyset
rstFD.CursorLocation = adUseServer
rstFD.Source = "tblFieldSysSettings"
rstFD.Open Options:=adCmdTableDirect
rstFD.Index = "IX_FieldIndex"
rstFD.Requery
I am getting an error stating that:
Current provider does not support the necessary interface for Index functionality.
I have used this code for Access DBs, but never SQL Server.
I have heard rumors that SQL Server doesn't support the Index-Seek Method. Is this true or am I doing something incorrectly? I have access to the SQL Server so I can adjust the Index properties if that is the problem.
Thanks in advance for the help!
baugie