Hello,
I am having problems connecting to my sql database via my asp.net application.
This is the error message I am getting:
"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 - No such host is known.)"Unfortunately working with databases through ASP.NET is fairly new to me, however I did find a
guide to setting up the connection correctly.
However, if you follow the above link you see that the guide refers to IIS. I am using UltiDev's Cassini because I have XP home and so do not have IIS. Is there an alternative way to set this up with Cassini? Failing that any advice on another way to connect to my database would be greatly appreciated.
I am using;
Sybase Adaptive Server Anywhere 8.
VB.NET as my programming language.
Here is my connection string: conn = "Data Source='localhost:xxxx/db/';Database=myDB.db;Uid=userID;Pwd=userPwd;Network=DBMSSOCN;"
I am using the System.Data.SqlClient class to try to connect.
Thank you!