M
Mike C#
Hi all,
Have a quick question. I have an app that connects to SQL Server via the
MFC CDatabase class. I'm doing bulk loading using the ODBC bulk opns
extensions for SQL Server. When I try to wrap my bulk inserts in a
transaction using BeginTrans() and CommitTrans(), it doesn't work. When I
use SQLExecDirect() and send a T-SQL "BEGIN TRANSACTION" and "COMMIT
TRANSACTION", it does work.
I was just wondering if there's something peculiar about MFC CDatabase
transaction that keep the BeginTrans() and CommitTrans() from working
correctly with ODBC bulk operations. Also, I was told that I shouldn't use
SQLExecDirect() to execute the T-SQL BEGIN TRANSACTION and COMMIT
TRANSACTION statements. Is this true?
Thanks
Have a quick question. I have an app that connects to SQL Server via the
MFC CDatabase class. I'm doing bulk loading using the ODBC bulk opns
extensions for SQL Server. When I try to wrap my bulk inserts in a
transaction using BeginTrans() and CommitTrans(), it doesn't work. When I
use SQLExecDirect() and send a T-SQL "BEGIN TRANSACTION" and "COMMIT
TRANSACTION", it does work.
I was just wondering if there's something peculiar about MFC CDatabase
transaction that keep the BeginTrans() and CommitTrans() from working
correctly with ODBC bulk operations. Also, I was told that I shouldn't use
SQLExecDirect() to execute the T-SQL BEGIN TRANSACTION and COMMIT
TRANSACTION statements. Is this true?
Thanks