Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use Index with SQL

Status
Not open for further replies.

9695

Programmer
Nov 17, 2000
2
PT
I have tried to use a Index of a Table in SQL serve but he keeps on telling me this mensage "Index does not exist" .But it does exist !!!!

Public cnmSQLServer As New ADODB.Connection
Public rstActividades As New ADODB.Recordset
Public rstBancos As New ADODB.Recordset

cnmSQLServer.Provider = "MSDASQL"
cnmSQLServer.Open "DSN=MSSQLServer; database=Aiccopn2;"

rstBancos.Index = "CodBanco"
rstBancos.Open "Bancos", cnmSQLServer, adOpenStatic, adLockOptimistic, adCmdTableDirect

rstBancos.Seek IDAct, adSeekFirstEQ


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top