Re: Connecting to a SQL Server 2005 DB on a Remote Web Server



Mike Webb wrote:
Bob

thanks for letting me know that this is at least possible. I have now
tried your connection string but get the -2147467259 "SQL Server does
not exist or access denied" message. I have made sure all TCPip ports
needed are opened

If i connect to the same DB via LAN (i.e. using \\servername instead
of IP address) everything is fine.

My DEV environment is VB6 using ADO 2.8
My server (which is currently still in the LAN) is running Windows
Server 2003 Standard Ed. and I am trying to connect to a SQL Server
2005 Express Ed. default instance \SQLExpress, as follows:

cn1string = "Provider=SQLOLEDB; Data Source=213.162.108.132,1433;
Initial Catalog=Bookings; " & _
"Network Library=DBMSSOCN;User ID=sa;Password=whatever;"

There is a configuration setting in SQL 2005 Configuration Manager under
the Network Configuration node to allow you to enable tcpip - is it
enabled on your server?

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


.



Relevant Pages

  • RE: path to client not found
    ... configuration with 1 NIC but with the default gateway to the router ... Ethernet adapter Server Local Area Connection: ... > to SBS IP address on all local clients and leave default gateway on SBS ... > and server side to newsgroup, also make sure that you have run CEICW ...
    (microsoft.public.windows.server.sbs)
  • RE: How would you setup partition and pagefile for my new server?
    ... pagefile configuration are good for your condition. ... Backing Up and Restoring Windows Small Business Server 2003 ... Pagefile size is depends on your system request. ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • Re: WSUS Problem - Help Needed
    ... You met the following error when using WSUS 3.0 SP1 Server Clean Up Wizard: ... Verify that SQL server is running on the WSUS Server. ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • Re: Sender ID Filtering vs. SBS Fax Server
    ... Open Server Management on your SBS box. ... This newsgroup only focuses on SBS technical issues. ... |> routing configuration. ...
    (microsoft.public.windows.server.sbs)
  • Re: SBS2003 SQL question
    ... the restrictions of R2 are similar with Small Business Server 2003 SP1. ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... we can install SQL Server 2005 Standard Edition and Enterprise ...
    (microsoft.public.windows.server.sbs)