Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,
i am using sql connection string problem i use connection string like this :-

XML
<connectionstrings>
    &lt;!--<add name="vcon" providername="System.Data.SqlClient" connectionstring="Data Source=.\SQLEXPRESS; AttachDbFilename=|DataDirectory|dbschool.s&lt;br mode=" hold=" /&gt;         df; Database=dbschool; Trusted_Connection=Yes;" />--&gt;
  <add name="vcon">
    providerName="System.Data.SqlClient"
    connectionString="Data Source=.\\SQLEXPRESS;AttachDbFileName=|DataDirectory|\dbschool.mdf;Integrated Security=True;User Instance=True;MultipleActiveResultSets=True" /&gt;

  </add></connectionstrings>


plz solve the problem...
thanks & regards
Posted
Updated 1-Mar-15 17:10pm
v2
Comments
PIEBALDconsult 1-Mar-15 23:12pm    
Do you really need to double the backslash in =.\\SQLEXPRESS ?

Hi,

Here is some example of connection string. May be it is helpful for you.

https://www.connectionstrings.com/sql-server-2012/[^]

What problem are you facing? could you explain it?
 
Share this answer
 
Comments
UDTWS 1-Mar-15 23:06pm    
ya i use this and create connection with the help of this but still i got problem so please check my connection string and tell me where i am wrong..
thanks & regards
[no name] 1-Mar-15 23:46pm    
Now its working or not ?
UDTWS 2-Mar-15 22:27pm    
no i create connection string using ur suggestion but i still problem not solved...
 
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