Answer to Question #21636 in C# for askar

Question #21636
i have a database on a host in web and now i want connect to this database with c# i cant please help me thanks
1
Expert's answer
2013-01-09T12:00:33-0500

Write this code:

private stringConnectionString = "DataSource=.\SQLEXPRESS;AttachDbFileName=|DataDirectory|DataBase.mdf;Integrated
Security=True;Connect Timeout=30;User Instance=True";

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS
paypal