Answer the question
In order to leave comments, you need to log in
Misunderstandings with MS SQL
private readonly StorageDataContext _storage = new StorageDataContext(@"server = .\SQLEXPRESS;Integrated Security = SSPI; database = Storage");
ViewBag.Title = _storage.Page.SingleOrDefault(item => item.PageName == "Index").PageTitle;
Cannot open database 'Storage' requested by login. Failed to sign in.
Login failed for user 'Illorian-PC\Illorian'.
Answer the question
In order to leave comments, you need to log in
In C#, you can connect like this: Data Source=.\SQLEXPRESS;Initial Catalog=Storage; Integrated Security=True ;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question