Code:
SqlConnection con = new SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Stanko\Documents\Visual Studio 2008\WebSites\Tutorial(Managing users)\App_Data\UserDB.mdf;Integrated Security=True;User Instance=True");
SqlConnection con = new SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Stanko\Documents\Visual Studio 2008\WebSites\Tutorial(Managing users)\App_Data\UserDB.mdf;Integrated Security=True;User Instance=True");
ili
Code:
SqlConnection con = new SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|UserDB.mdf;Integrated Security=True;User Instance=True");
SqlConnection con = new SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|UserDB.mdf;Integrated Security=True;User Instance=True");
Pokusavam da ucitam bazu podataka preko Connection Stringa . Prijavljuje mi se greska "Unrecognized escape sequence" i podvlace mi se svi backslash-ovi kod Data Source i AttachDbFilename prilikom debug-ovanja.