Access ODBC Driver questions

Just starting out? Need help? Post your questions and find answers here.
User avatar
the.weavster
Addict
Addict
Posts: 1576
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Access ODBC Driver questions

Post by the.weavster »

Does anybody know the escape character for the MS Access ODBC driver?

Also, does it support transactions? If so what are the statements for BeginTransaction, Commit and RollBack?

Thanks

Weave
Tension
User
User
Posts: 29
Joined: Tue Mar 22, 2005 3:19 pm

Post by Tension »

Hi the.weavster,

Regarding transactions, I think it can be done, here's a link to a site with some VB code using access/transaction server.

http://www.softlookup.com/tutorial/data ... #Heading20

Also aXend did some useful preliminary work that may help you with this vis purebasic (he uses com to access msAccess). This thread:

viewtopic.php?t=14214&highlight=


Not sure what you mean by an ODBC escape sequence.
User avatar
the.weavster
Addict
Addict
Posts: 1576
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Post by the.weavster »

Thanks Tension.

The escape character is necessary if the text you are storing to a database contains a quotation character.

In MySQL it is \, so if you wanted to store 'don't respond' to a database you would have to format it as 'don\'t respond' in the SQL statement you sent to the server.

I have actually found what it is with the access driver, it is another quote.
e.g. 'don''t respond'

Weave
Tension
User
User
Posts: 29
Joined: Tue Mar 22, 2005 3:19 pm

Post by Tension »

the.weavster wrote:it is another quote. e.g. 'don''t respond'Weave
"To quote a guy a I asked on this: ""yep""" :)
User avatar
the.weavster
Addict
Addict
Posts: 1576
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Post by the.weavster »

:D
Post Reply