I am not able to establish remote connections to SQL Server 2008 enterprise edition. I have followed and implemented a lot of tutorials available. These are the things i have done:
- enabled TCP/IP connections in SQL configuration manager.
- added a rule to allow inbound connections at port 1433.
- allowed remote connections in the properties window of the concerned instance.
But it still gives the error I am trying to install samples for replication using AdventuresWorks database and i am not able to install the sample.
here is the error i got
Attempting to create the 'ReplData' share that replication uses as the working directory.
A subdirectory or file C:\Program Files\Microsoft SQL Server\100\Samples\Replica tion\ReplData already exists. The name has already been shared.
More help is available by typing NET HELPMSG 2118.
HResult 0x274D, Level 16, State 1 TCP Provider: No connection could be made because the target machine actively re fused it.
Sqlcmd: Error: Microsoft SQL Server Native Client 10.0 : A network-related or in stance-specific error has occurred while establishing a connection to SQL Server . Server is not found or not accessible. Check if instance name is correct and i f SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.. Sqlcmd: Error: Microsoft SQL Server Native Client 10.0 : Login timeout expired.
The publication was created successfully. You must create a virtual directory to use Web synchronization. If you plan to use a separate Web server, you must run the Web Synchronization Wizard on that Web server. (A certificate that supports SSL must already be installed.)
Do you want to create a virtual directory named SalesOrders for Web synchronization on S2NWORKSTATION? [y,n]
preguntado el 08 de enero de 11 a las 16:01
Start the SQL Management Studio Connect to the server. Then choose the server in the Object-Explorer and right-click on properties. Then check the "connections" settings, there you can/have to allow remote connections for this database server.
Are you connecting to a default instance or named instance? If a named instance, then you you should have the sql browser windows service running. Also ensure that remote connections are allowed (I believe this is a different setting than simply turning on TCP/IP).
One tool that could be helpful is PorQryUI (Port Query), it will test to see if the proper ports are open.
I too, had this problem. I solved by doing a couple of things: 1. Make sure the SQL Browser service is started on my local machine 2. Make sure UDP Port 1434 in the firewall is open for outgoing on the local machine 3. Make sure UDP Port 1434 is open in the firewall for incoming on the remote machine.
The UDP Ports are for the SQL Server Browser. Apparently, Visual Studio uses that to detect that the remote server exists.
Esta historia de Stack Exchange thread was very helpful to me.