Click here to Skip to main content
15,897,291 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Windows Authentication is configured only in my SQL Server 2005.
Now I am trying to connect a database named Employee from my ASP.Net web site.
I have used the following connectionstring
SqlConnection con = new SqlConnection("server=AVIANI;database=Employee;IntegrategratedSecurity=SSPI");
I am getting the following error:
Keyword not supported: 'integrategrated security'.
Then What will be the proper SQLConnection?
If I need to use UserId and password,how to find that?
Posted

Check the connection string format in this link
http://msdn.microsoft.com/en-us/library/ms998292.aspx[^]

<connectionStrings>
  <add name="MyDbConn1" 
       connectionString="Server=MyServer;Database=MyDb;Trusted_Connection=Yes;"/>
  <add name="MyDbConn2" 
      connectionString="Initial Catalog=MyDb;Data Source=MyServer;Integrated Security=SSPI;"/>
</connectionStrings> 
 
Share this answer
 
Hi, you wrongly spelled that word 'IntegrategratedSecurity' that must be as 'IntegratedSecurity'
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900