If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > ODBC API: SQLConnect()

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-13-03, 09:24
dr_suresh20 dr_suresh20 is offline
Registered User
 
Join Date: Sep 2003
Posts: 218
ODBC API: SQLConnect()

We are running DB2 v8.1.3 server on win2k platform.

We need to validate our understanding on this issue:
When we try to connect from db2 command window to the db2 server - we go through ODBC call i.e we get connected via SQLConnectW() API (Unicode support for db). On the other hand, suppose we try to connect to db2 server using local admin client then it uses native APIs i.e SQLConnect to connect to the database.
We observed this in our db2cli log file (both client and server side) and
Is this correct?

Secondly, the time taken for SQLConnect() is in milli seconds whereas it takes several seconds using SQLConnectW() ODBC call.

So our question is:

* Can we force db2 to use SQLConnect() call instead of a SQLConnectW() API call. The reason is quite obvious - we need to reduce the time taken for client connections to get connected to the database in milli seconds as opposed to several seconds.

Any help is greatly appreciated.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On