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

Expert's answer


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!

LATEST TUTORIALS
APPROVED BY CLIENTS