i am facing issue to connecting sql express server 2014 in asp.net using c#
Error(Represent text as a sequence of UTF-16)
Unrecognized escape sequence
Hi akhter,
Use double sash.
SqlConnection con = new SqlConnection("Data Source=AT\\SQLExpress;Integrated Security=SSPI;Initial Catalog=SilverProduction;MultipleActiveResultSets=True;");
Or use @.
SqlConnection con = new SqlConnection(@"Data Source=AT\SQLExpress;Integrated Security=SSPI;Initial Catalog=SilverProduction;MultipleActiveResultSets=True;");
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.