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
Tuesday, February 14, 2012
DB error
Labels:
catalogdbnamedata,
codedim,
database,
dim,
error,
infofalseinitial,
integrated,
microsoft,
myconn,
mysql,
oracle,
security,
securitysspipersist,
server,
sourceservername,
sql,
str,
string
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment