Click here to Skip to main content
15,919,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I have a database hosted outside. we have existing application which has access for this database. (I dont how it was developed)

My aim is to develop a customized windows form to access this database internally.I am using visual studio 2012 (vb.net) sql verion is sql2008

currently I can access this database through remote desktop connection.

I have gridview to load unpaid invoice/s, it works if I use local database. but if I put connection string as hosted database it doesnt work.

MY connectionstring is as below.

connectionString="Data Source=INSTANCE/SQLEXPRESS;Initial Catalog=DBNAME;User ID=sa;Password=ABC123

please help me with this
Posted
Updated 11-Feb-14 1:26am
v2
Comments
Richard chiu 13-Feb-14 5:54am    
what is the error message you get ?? check to see that required port is configured to allow access to the database (default port for mssql = 1433)

 
Share this answer
 
Hi Thanks for your response. I can say that I found solution as I can load data from hosted database
instead of TCP port I have used 'TCP dynamic ports' which worked as magic for me..
I've been searching for this solution for last three days.
 
Share this answer
 
Comments
[no name] 13-Feb-14 22:53pm    
Could you please advise the error message that you get? Are you sure that you have input correct connection string? Please just advise the error message, so we will close to the problem. :)
dash2020 13-Feb-14 23:22pm    
yes ..I've found the solution..thanks
Thanks Abhinav S

Can you please have a look at another question posted by me

http://www.codeproject.com/Questions/726854/add-email-address-from-gridview-to-new-emails-bcc
 
Share this answer
 

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