I'm diong a typical Windows Integrated Connection from a .Net Winforms Application:
Dim sqlConnetion As New SqlConnection("Server=jupiter;Database=io;Integrated Security=True;") sqlConnetion.Open()
I keep getting the following error:
Cannot open database "io" requested by the login. The login failed. Login failed for user 'MARS\viking'.
I've also tried the following connection string variations with the same results:
Data Source=jupiter;Initial Catalog=io;Integrated Security=True;
Data Source=MSSGDEV;Initial Catalog=MSSQLSERVER;Integrated Security=SSPI;
The wierd thing is I can connect to the db using the SQL Management Studio with the same user from the same computer using integrated security. Is there a bug in my connection code? Or is there some special configuration setting on the SQL server I must set to allow connections from code?