It is currently Thu Jan 28, 2021 3:01 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: ODBC Extensions
PostPosted: Thu Dec 12, 2019 2:17 pm 
Offline
User
User

Joined: Sun Dec 16, 2018 12:54 pm
Posts: 22
Hi !

To extend the ODBC funtionality here ars some ideas:

1. Transactions.

That means, there is a SQL block something like that:

begin transaction
update table set field = 'this is a test' where field is ''
if sqlcode = 0 then
commit
else
rollback

2. Query Timeout parameter

This parameter defines the timeout in seconds, so the query not runs forever.
for example

querytimeout=60

the query terminates after 60 seconds.

This is a global ODBC parameter.

3. Additional Parameters in the Connection String:

Normaly the ODBC connection string looks like

DSN=mydb;Uid=myuser;Using=password;

Some DB systems allow to send additional Parameters with the connection string:

DSN=mydb;Uid=myuser;Using=password;Autocommit=0;clientfunctionpath='MYPATH';


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye