Connecting to a remote server
From: Murphy (murphy_at_murphy.com)
Date: 04/01/04
- Next message: Mark Hutchings: "Domain to workgroup connections"
- Previous message: GKramer: "Re: GK - Persmission on each database ( objects )"
- Next in thread: Stephen Strong: "RE: Connecting to a remote server"
- Reply: Stephen Strong: "RE: Connecting to a remote server"
- Reply: Kevin McDonnell [MSFT]: "RE: Connecting to a remote server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 1 Apr 2004 21:13:02 +1000
We are setting up a webserver (172.16.0.2) that lives in the DMZ behind our
firewall (172.16.0.1)
I would like this server to connect to a db that lives on an SQL Server
(PDC: 192.168.16.2) on our internal lan.
I have opened port 1433 on the firewall between 172.16.0.2 & 192.168.16.2
On the webserver I have installed MSDE that the web app currently connects
to successfully whilst I determine how to connect it to the internal server.
In EM on the SQL Server I can now connect to the MSDE server, have activated
TCP/IP 1433 on MSDE, and all works well.
I would like our Web application to used the internal SQL Server as opposed
to the local MSDE.
In order to connect to the SQL Server at 192.168.16.2 is MSDE required or
can it be removed ?
Do I simply need to specify the port in the querystring in order to connect
to the remote server ?
What users/logins will need to be created in order for the web app to
connect to our internal server ?
Should I use a trusted connection or specify uid=sa;pwd=abc in the
querystring ?
The querystring I have developed so far to connect to this server is:
<appSettings>
<add key="ConnectionString"
value="server=192.168.16.2,1433;Trusted_Connection=true;database=store" />
</appSettings>
Or should I use:
<appSettings>
<add key="ConnectionString"
value="server=192.168.16.2,1433;uid=sa;pwd=abc;database=store" />
</appSettings>
Any assistance would be greatly appreciated.
Thanks
Murphy
- Next message: Mark Hutchings: "Domain to workgroup connections"
- Previous message: GKramer: "Re: GK - Persmission on each database ( objects )"
- Next in thread: Stephen Strong: "RE: Connecting to a remote server"
- Reply: Stephen Strong: "RE: Connecting to a remote server"
- Reply: Kevin McDonnell [MSFT]: "RE: Connecting to a remote server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|