473,382 Members | 1,329 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

web app - IIS and SQL on different machines

Hi,

I am deploying an ASP.Net web app into the following scenario:

Internet --> Firewall --> WebServer (IIS) --> [firewall?] --> [database
server]

However I am not sure what sort of authentication options are available to
me in gettingthe application to talk to the SQL server.

How do I talk between the web app and the database server - if TCP/IP then
what mode of authentication do I use? What would a typical connection string
look like?

Are there any references where I can study up on this ? I couldn't find
anything even though I spent half the day looking - mind you it helps to
know what you're looking for.

Thanks very much if you can help me,
Dan.
Nov 18 '05 #1
4 1671
You will probably need to use SQL Server authentication. Check out www.connectionstrings.com for examples of connection strings that you can use.

--
Keith
"Dan Walls" <wa****@hotmail.com> wrote in message news:yJ*****************@news-server.bigpond.net.au...
Hi,

I am deploying an ASP.Net web app into the following scenario:

Internet --> Firewall --> WebServer (IIS) --> [firewall?] --> [database
server]

However I am not sure what sort of authentication options are available to
me in gettingthe application to talk to the SQL server.

How do I talk between the web app and the database server - if TCP/IP then
what mode of authentication do I use? What would a typical connection string
look like?

Are there any references where I can study up on this ? I couldn't find
anything even though I spent half the day looking - mind you it helps to
know what you're looking for.

Thanks very much if you can help me,
Dan.

Nov 18 '05 #2
A SQLServer is much like a web server, other than the TCP/IP port it listens
to for requests. The Connection is defined via the Connection String, which
contains a number of parameter values that indicate how the database should
be connected to. It includes such things as the IP address/domain
name/machine name of the SQL Server machine (which one depends upon your
network configuration, which was a bit sketchy), the User Name and Password
you want to connect using, the database to use, and other optional elements.
A good reference for Connection Strings is
http://www.connectionstrings.com/.

You can use Either SQL Server authentication or Windows Authentication.
Which one you use depends upon how the SQL Server is configured. You should
ask your DBA about that.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Dan Walls" <wa****@hotmail.com> wrote in message
news:yJ*****************@news-server.bigpond.net.au...
Hi,

I am deploying an ASP.Net web app into the following scenario:

Internet --> Firewall --> WebServer (IIS) --> [firewall?] --> [database
server]

However I am not sure what sort of authentication options are available to
me in gettingthe application to talk to the SQL server.

How do I talk between the web app and the database server - if TCP/IP then
what mode of authentication do I use? What would a typical connection string look like?

Are there any references where I can study up on this ? I couldn't find
anything even though I spent half the day looking - mind you it helps to
know what you're looking for.

Thanks very much if you can help me,
Dan.

Nov 18 '05 #3
Thanks Kevin,

unfortunately I am also the DBA :-). I have the freedom to install and
configure the network as I see fit, so I will configure the network in the
way the provides the best possible security. That is why I am looking at
adding another layer and putting the SQL server on a different machine to
IIS.

It's my understanding that if I communicate via TCP/IP between IIS server
and SQL Server machines then I can only use SQL authentication and NOT
Windows authentication. This is because Windows authentication relies on the
user being recognised by the OS and a tcp 1433 connection would go straight
to the SQL server.

Now - is it possible to use windows networking between the two machines -
and that way I could log in using the IIS_MACHINE/ASPNET user account. This
user account would have to be present on the SQL machine would it not? Would
this work if I gave it the same usernam and password - are there any
inherent security risks with this approach?

Thanks for the connectionstrings.com. That's a good reference. Straight to
the favourites.

Dan.

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:uP**************@TK2MSFTNGP09.phx.gbl...
A SQLServer is much like a web server, other than the TCP/IP port it listens to for requests. The Connection is defined via the Connection String, which contains a number of parameter values that indicate how the database should be connected to. It includes such things as the IP address/domain
name/machine name of the SQL Server machine (which one depends upon your
network configuration, which was a bit sketchy), the User Name and Password you want to connect using, the database to use, and other optional elements. A good reference for Connection Strings is
http://www.connectionstrings.com/.

You can use Either SQL Server authentication or Windows Authentication.
Which one you use depends upon how the SQL Server is configured. You should ask your DBA about that.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Dan Walls" <wa****@hotmail.com> wrote in message
news:yJ*****************@news-server.bigpond.net.au...
Hi,

I am deploying an ASP.Net web app into the following scenario:

Internet --> Firewall --> WebServer (IIS) --> [firewall?] --> [database
server]

However I am not sure what sort of authentication options are available to me in gettingthe application to talk to the SQL server.

How do I talk between the web app and the database server - if TCP/IP then what mode of authentication do I use? What would a typical connection

string
look like?

Are there any references where I can study up on this ? I couldn't find
anything even though I spent half the day looking - mind you it helps to
know what you're looking for.

Thanks very much if you can help me,
Dan.


Nov 18 '05 #4
> Now - is it possible to use windows networking between the two machines -
and that way I could log in using the IIS_MACHINE/ASPNET user account. This user account would have to be present on the SQL machine would it not? Would this work if I gave it the same usernam and password - are there any
inherent security risks with this approach?
Actually, you can use Windows Authentication as long as the 2 machines are
on the same Domain, using Active Directory accounts. In any case, as long as
the 2 machines are on the same LAN, and behind the same Firewall (configured
correctly), you shouldn't have any security problems using either method. If
you find it easier to work with SQL Server authentication, by all means, use
that.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Dan Walls" <wa****@hotmail.com> wrote in message
news:zy******************@news-server.bigpond.net.au... Thanks Kevin,

unfortunately I am also the DBA :-). I have the freedom to install and
configure the network as I see fit, so I will configure the network in the
way the provides the best possible security. That is why I am looking at
adding another layer and putting the SQL server on a different machine to
IIS.

It's my understanding that if I communicate via TCP/IP between IIS server
and SQL Server machines then I can only use SQL authentication and NOT
Windows authentication. This is because Windows authentication relies on the user being recognised by the OS and a tcp 1433 connection would go straight to the SQL server.

Now - is it possible to use windows networking between the two machines -
and that way I could log in using the IIS_MACHINE/ASPNET user account. This user account would have to be present on the SQL machine would it not? Would this work if I gave it the same usernam and password - are there any
inherent security risks with this approach?

Thanks for the connectionstrings.com. That's a good reference. Straight to
the favourites.

Dan.

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:uP**************@TK2MSFTNGP09.phx.gbl...
A SQLServer is much like a web server, other than the TCP/IP port it listens
to for requests. The Connection is defined via the Connection String,

which
contains a number of parameter values that indicate how the database

should
be connected to. It includes such things as the IP address/domain
name/machine name of the SQL Server machine (which one depends upon your
network configuration, which was a bit sketchy), the User Name and

Password
you want to connect using, the database to use, and other optional

elements.
A good reference for Connection Strings is
http://www.connectionstrings.com/.

You can use Either SQL Server authentication or Windows Authentication.
Which one you use depends upon how the SQL Server is configured. You

should
ask your DBA about that.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Dan Walls" <wa****@hotmail.com> wrote in message
news:yJ*****************@news-server.bigpond.net.au...
Hi,

I am deploying an ASP.Net web app into the following scenario:

Internet --> Firewall --> WebServer (IIS) --> [firewall?] --> [database server]

However I am not sure what sort of authentication options are available to
me in gettingthe application to talk to the SQL server.

How do I talk between the web app and the database server - if TCP/IP then what mode of authentication do I use? What would a typical connection

string
look like?

Are there any references where I can study up on this ? I couldn't

find anything even though I spent half the day looking - mind you it helps to know what you're looking for.

Thanks very much if you can help me,
Dan.



Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: RM | last post by:
I am using DataSet's .ReadXml() method to parse an XML file that has an inline schema and Im getting "different" results on various machines using the same myDataSet.ReadXml("myExample.xml"). ...
0
by: RM | last post by:
I have a simple XML file, the contents of which are below. I have validated this XML file with Microsofts online validator and it validates successfully. I .ReadXml() this data into a DataSet in...
3
by: Mal Reeve | last post by:
Hello, I have a fairly simple database. NOT a FE/BE situation. Just 1 mdb residing on a server that is accessed by different machines. On 1 machine a query (and the report based on it) work...
9
by: Mikhail Teterin | last post by:
Hello! I'd like to have a variable of a pointer-to-function type. The two possible values are of type (*)(FILE *) and (*)(void *). For example: getter = straight ? fgetc : gzgetc; nextchar...
0
by: Ramkrishna Kulkarni | last post by:
Hi, We are using UploadData method of WebClient class in C# to establish connection(s) between two machines(typical client/server). Connection is established if the machines are on same domain. If...
3
by: Dave Griffiths | last post by:
Hi All Using VB 2005 I am writing a program that will be used on machines which have different locales (English, Norwegian and Swedish) I am restricting textbox input using keypress to just...
7
by: Salad | last post by:
I have an app on three different machines; front end on the PC, backend on the network. These are my results on loading the application when I press OK from the Logon form (username/pw) to...
3
by: pjsrikanth | last post by:
Hi, My web application is running on 5000 different machines. For example, if i have to know who are all the clients which are using my application, what would be my appoach? Correct me if iam...
5
by: Christopher Brewster | last post by:
I am running the same script on the same data on two different machines (the folder is synchronised with Dropbox). I get two different results. All the script does is count words in different...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.