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 > Informix > Connect to Informix Universe from C#.Net

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-27-03, 13:05
solutions solutions is offline
Registered User
 
Join Date: Feb 2003
Posts: 3
Connect to Informix Universe from C#.Net

I'm using the following string for an OleDbConnection and when I run it in a browser it just hangs(It hangs after it tries to run mycon.Open - I know it has something to do with the connection string but what?).

OleDbConnection mycon = new OleDbConnection("data source=Mydatasourcename;provider=Informix.UniOLEDB .1;user id=Myid;password=Mypassword;") ;
string sql = "SELECT * FROM NAMEOFTABLE";

OleDbCommand cmd = new OleDbCommand(sql, mycon);
mycon.Open();


Can someone provide a solution to this?(Help)
(Universe Version 09.06.0002)
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