Dear All,
I am developing a network application in asp.net. The database is in local machine having sql 2005. But the user database is already existent. So I am accessing that database which is sql2000. does it give any problem while connecting from sql2005 machine to sql2000. If yes it is giving me error as follows:
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 connection could be made because the target machine actively refused it.)
connection string is :
"Data Source=192.168.1.16,1433;Network Library=DBMSSOCN;Initial Catalog=mycatalog;User ID=myuserid;Password=mypwd;"
Please correct me if I am wrong.
Thanks and Regards.
Fazal
This indicates that your TCP/IP was not enabled or your sql server was not listening on the appropriate port.
|||Go to "Microsoft SQL Server 2005" in programm files => onfiguration Tools =>SQL Server Surface Area Configuration =>first option=>Remote Connections
and here allow remote connection = Use both TCP/IP and name pipes => OK
After that you must restart SQL Server 2005 in order to apply the modification and try againa
Popa IUlia
_____________________
MCP.MCAD.MCSD
No comments:
Post a Comment