1
Answer

sql connection String

Hi, I have installed sql server n my local system.

The server name is  :COMPUTER-1354EB\MYSERVER


How do  get a connecton string to establish sql connection:

If  I use         SqlConnection cnPubs = new SqlConnection("Server=COMPUTER-1354EB\MYSERVER;Database=Company;Trusted_Connection=Yes;");

it shows error like invald escape sequence. 
Answers (1)