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

SQL Login connection bypass - Problem

P: 1
Hello everyone!

I have a problem, I am using SQL 2005 and Visual C# 2005, the problem is everytime i try to connect to the SQL server I can always connect to it even without specifying the UID and PWD in my connection string.... Anybody know why this happens? Thanks!


sample code:
SqlConnection forTest = new SqlConnection("server=localhost;integrated security=true;database=GKDB_Prototype");

even without UID and PWD it can still connect to server...
Apr 21 '07 #1
Share this Question
Share on Google+
1 Reply


Frinavale
Expert Mod 5K+
P: 9,731
Hello everyone!

I have a problem, I am using SQL 2005 and Visual C# 2005, the problem is everytime i try to connect to the SQL server I can always connect to it even without specifying the UID and PWD in my connection string.... Anybody know why this happens? Thanks!


sample code:
SqlConnection forTest = new SqlConnection("server=localhost;integrated security=true;database=GKDB_Prototype");

even without UID and PWD it can still connect to server...
Since you have "integrated security=true" you are logging into your SQL Server using the user credentials of the Windows user currently logged in.


-Frinny
Apr 21 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.