|
-
Mar 12th, 2007, 05:37 AM
#1
Thread Starter
Member
Moving from Access to SqlServer - .Index Problem
Hi.
I've a VB6 application, which was based on an Access database. Now we're moving to sqlserver. We use ADODB, and when we use this piece of code:
Dim TbTest as RecordSet
Set TbTest = new Adodb.recordset
TbTest.open "Custom", Curcnxni, adOpenStatic, adLockPessimistic, adCmdTableDirect
TbTest.index = "PrimaryKey"
It throws an error, property not supported. How does sqlserver handles indexes? This kind of index declaration is in many places in the code.
Any help? Thanks in advance!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|