Advertisement
Advertisement
| 05.16.2008 at 05:07PM PDT, ID: 23410037 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: |
string myDriver = "DSN=FMServer_Sample;Uid=Admin;Pwd=";
/*
* SQl way to do this:
* myDriver = "DSN=FMServer_Sample;Integrated Security=True;";
* or
* myDriver = "DSN=FMServer_Sample;Trusted_Connection=yes;";
*/
OdbcConnection conn = new OdbcConnection(@myDriver);
conn.Open();
OdbcDataAdapter da = new OdbcDataAdapter("select * table bla bla bla", conn);
OdbcCommandBuilder cmdBldr = new OdbcCommandBuilder(da);
|