|
-
May 13th, 1999, 09:12 AM
#1
Choose ODBC or DB-Library?
I am designing a project which will use some important features such as transaction,various locks provided by Microsoft SQL Server 7.0. I am not sure if ODBC 3.0 can achieve this goal.
Can I execute full set of Transact-SQL through pDataBase->ExcuteSQL(...)?
Are following codes valid(Perform transaction using Transact-SQL)?
pDataBase->ExecuteSQL("BEGIN TRANSACTION");
pRecordSet->OPEN(...,"Select * from Table1 with (updlock)",...);
...
pDataBase->ExecuteSQL("COMMIT TRANSACTION");
If I cannot achieve this goal,I have only to use DB-Library for C.
Thank you for your kindly help!!!
YiZeng
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
|