G
Guest
Hello,
In my ASP.Net app I'm launching a BackgroundWorker thread in my Page_Load
function. In that thread I'm attempting to connect to a SQL server using
this connection string "Initial Catalog=MyDB;Data Source=MyServer;Integrated
Security=True;".
When I use the same connection string in my main thread of execution it
works fine. However when I use that connection string in the newly created
thread I get this exception: "Login failed for user ''. The user is not
associated with a trusted SQL Server connection."
The '' (empty quotes) make me think I need to tell the new thread which user
credentials to use. Is that correct? If so, how do I do it? If not, what
do I need to do?
Thanks!
In my ASP.Net app I'm launching a BackgroundWorker thread in my Page_Load
function. In that thread I'm attempting to connect to a SQL server using
this connection string "Initial Catalog=MyDB;Data Source=MyServer;Integrated
Security=True;".
When I use the same connection string in my main thread of execution it
works fine. However when I use that connection string in the newly created
thread I get this exception: "Login failed for user ''. The user is not
associated with a trusted SQL Server connection."
The '' (empty quotes) make me think I need to tell the new thread which user
credentials to use. Is that correct? If so, how do I do it? If not, what
do I need to do?
Thanks!