Knowledge Walls
Gopal Rao
Mumbai, Maharashtra, India
Passcode:
Windows authentication connection string c# not working
4299 Views
Note 
Dont forget to add @ symbol infront of connection string.Because while typing connection string for windows authentication we add the name with / symbol. so that we need to add @ symbol infront of connection string shown in below example.
Example
SqlConnection conn = new SqlConnection(@"data source=LAKSHANYA\SQLEXPRESS;database=master;integrated security=true");
Best Lessons of "Asp.net/Ado.net/C#.net(Dotnet)"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details