Click here to Skip to main content
15,911,360 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hello friends
I have developed a window application using C#, VS 2010 and Sqlserver 2008. Now my client wants the windows application to access online MSSQL database

My connection String is

C#
cs = new SqlConnection("Data Source=real.in,1024; Network Library=DBMSSOCN; Initial catalog=DatabaseName; User ID=UserID; Password=Password; Persist Security Info=True");



but i am not succeed in connecting to online Sql server

As i am new for online sql server i ur help in need

thanks in advance
Posted

1 solution

Oops - this is a very BAD idea.

Redesign your data transport lay and use a WCF. The WCF sits on the server between the client and the database, nobody talks to the database directly!
 
Share this answer
 
Comments
Bala4 . V 18-Dec-12 6:00am    
hello thanks for your reply but my server is in hosting site

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900