Tuesday, February 14, 2012

DB error

Code:
Dim str As String = "Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=dbname;Data Source=servername;"
Dim MyConn As New SqlConnection(str)
MyConn.Open()

When I open in the local host, I am getting the following error. guessing it as some IIS problem, but cant figure out...
ERROR:
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.Check this link.
http://geekswithblogs.net/ranganh/archive/2005/05/25/40489.aspx
Thanks,
Ram

No comments:

Post a Comment