By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,464 Members | 1,616 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,464 IT Pros & Developers. It's quick & easy.

ODBC create problem...

P: n/a
Could someone tell me why "IntegratedSecurity" of that code
works fine and else doesn't?

if (this.IntegratedSecurity)
{
result = SQLConfigDataSource(System.IntPtr.Zero, 4, "SQL
Server\0"
, "DSN=" + this.ODBCName + "\0"
+ "Server=" + this.ServerName + "\0"
+ "Database=" + this.ServerDatabaseName + "\0"
+ "Language=Polski\0"
+ "Trusted_Connection=Yes\0\0");
}
else
{
result = SQLConfigDataSource(System.IntPtr.Zero, 4, "SQL
Server\0"
, "DSN=" + this.ODBCName + "\0"
+ "Server=" + this.ServerName + "\0"
+ "Database=" + this.ServerDatabaseName + "\0"
+ "Language=Polski\0"
+ "Uid=" + this.ServerUser + "\0"
+ "pwd=" + this.ServerPass + "\0\0");
}
Nov 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.