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 > connection string of OLE DB for DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-12-04, 06:05
john_wsm john_wsm is offline
Registered User
 
Join Date: Mar 2004
Posts: 33
Arrow connection string of OLE DB for DB2

Hi all,

I am writing c# application to connect to a DB2 database using OLE DB,
do any one of u knows the correct format of the connection string, if possible, pls give an example.

Much Thanks.

ME
Reply With Quote
  #2 (permalink)  
Old 04-17-04, 23:54
MiF MiF is offline
Registered User
 
Join Date: Apr 2004
Posts: 3
Take a look at www.connectionstrings.com

We use the following string. Server port, Schema, Extended properties parts are optional. trusted_connection tells the database to use OS authentication.

Code:
Provider=IBMDADB2;Data Source=YourDatabase;Location=YourServer:YourServerPort;CurrentSchema=YourDefaultSchema;Extended Properties="trusted_connection=yes";
Michael.
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