473,513 Members | 2,490 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Connecting to SQL Server from Web pages

What user/account do I need to setup on my SQL 2000
Server, that requires the use of a Trusted Connection
(Integrated Security=SSPI), in order for my postings to
be able to make a connection to the database.

The SqlConnection would look something like this?

Data Source=MYSQL01;Initial Catalog=WebDB;Integrated
Security=SSPI;Persist Security Info=False;

Under what authority are postings going to be running
under in a MCMS site? This is a public site that we can
assume the end user will not be required to log into.

Web server is Windows 2003 using IIS 6.0 with MCMS 2002.
SQL 2000 server is also running Windows 2003 and only
allows trusted connections.

Is it the IUSR that needs to be added to the SQL Server
as a valid login? Or some other system account?
Nov 18 '05 #1
4 1139
You are best to run the data access thread under a trusted account than to
attempt to set up IUSR_ComputerName as a trusted account. It takes a bit
more programming, but reduces a potentially huge security hole. It is much
easier to simply allow IUSR access if simplicity is your sole goal.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Robert" <an*******@discussions.microsoft.com> wrote in message
news:c7****************************@phx.gbl...
What user/account do I need to setup on my SQL 2000
Server, that requires the use of a Trusted Connection
(Integrated Security=SSPI), in order for my postings to
be able to make a connection to the database.

The SqlConnection would look something like this?

Data Source=MYSQL01;Initial Catalog=WebDB;Integrated
Security=SSPI;Persist Security Info=False;

Under what authority are postings going to be running
under in a MCMS site? This is a public site that we can
assume the end user will not be required to log into.

Web server is Windows 2003 using IIS 6.0 with MCMS 2002.
SQL 2000 server is also running Windows 2003 and only
allows trusted connections.

Is it the IUSR that needs to be added to the SQL Server
as a valid login? Or some other system account?

Nov 18 '05 #2
Ok, how would I go about running the data access thread
under a trusted account? How do I set this up? Sorry,
but I am very new to the .NET development environment.
-----Original Message-----
You are best to run the data access thread under a trusted account than toattempt to set up IUSR_ComputerName as a trusted account. It takes a bitmore programming, but reduces a potentially huge security hole. It is mucheasier to simply allow IUSR access if simplicity is your sole goal.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************* ******** *************Think Outside the Box!
************************************************* ******** *************"Robert" <an*******@discussions.microsoft.com> wrote in messagenews:c7****************************@phx.gbl...
What user/account do I need to setup on my SQL 2000
Server, that requires the use of a Trusted Connection
(Integrated Security=SSPI), in order for my postings to
be able to make a connection to the database.

The SqlConnection would look something like this?

Data Source=MYSQL01;Initial Catalog=WebDB;Integrated
Security=SSPI;Persist Security Info=False;

Under what authority are postings going to be running
under in a MCMS site? This is a public site that we can
assume the end user will not be required to log into.

Web server is Windows 2003 using IIS 6.0 with MCMS 2002. SQL 2000 server is also running Windows 2003 and only
allows trusted connections.

Is it the IUSR that needs to be added to the SQL Server
as a valid login? Or some other system account?

.

Nov 18 '05 #3
When using a SqlConnection to connect to a SQL 2000
server does the connection string need to specify a
Provider?

Is this a valid way to specify a connection to a SQL
Server?

Dim myConn As New SqlConnection("Data
Source=MYSQL01;Initial Catalog=MyWebDB;Integrated
Security=SSPI;Persist Security Info=False;Application
Name=MyAppName;")

Do I need to specify a "Provider" in the above connection
string?
-----Original Message-----
What user/account do I need to setup on my SQL 2000
Server, that requires the use of a Trusted Connection
(Integrated Security=SSPI), in order for my postings to
be able to make a connection to the database.

The SqlConnection would look something like this?

Data Source=MYSQL01;Initial Catalog=WebDB;Integrated
Security=SSPI;Persist Security Info=False;

Under what authority are postings going to be running
under in a MCMS site? This is a public site that we can
assume the end user will not be required to log into.

Web server is Windows 2003 using IIS 6.0 with MCMS 2002.
SQL 2000 server is also running Windows 2003 and only
allows trusted connections.

Is it the IUSR that needs to be added to the SQL Server
as a valid login? Or some other system account?
.

Nov 18 '05 #4
You are using OLE DB connection. You suppose to use it only with OLEDB
package,
With SQL package use folowing
"server=MYSQL01;Trusted_Connection=false;database= db;User
ID=usr;Password=pwd"

George.

"Robert" <an*******@discussions.microsoft.com> wrote in message
news:d6****************************@phx.gbl...
When using a SqlConnection to connect to a SQL 2000
server does the connection string need to specify a
Provider?

Is this a valid way to specify a connection to a SQL
Server?

Dim myConn As New SqlConnection("Data
Source=MYSQL01;Initial Catalog=MyWebDB;Integrated
Security=SSPI;Persist Security Info=False;Application
Name=MyAppName;")

Do I need to specify a "Provider" in the above connection
string?
-----Original Message-----
What user/account do I need to setup on my SQL 2000
Server, that requires the use of a Trusted Connection
(Integrated Security=SSPI), in order for my postings to
be able to make a connection to the database.

The SqlConnection would look something like this?

Data Source=MYSQL01;Initial Catalog=WebDB;Integrated
Security=SSPI;Persist Security Info=False;

Under what authority are postings going to be running
under in a MCMS site? This is a public site that we can
assume the end user will not be required to log into.

Web server is Windows 2003 using IIS 6.0 with MCMS 2002.
SQL 2000 server is also running Windows 2003 and only
allows trusted connections.

Is it the IUSR that needs to be added to the SQL Server
as a valid login? Or some other system account?
.

Nov 18 '05 #5

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

Similar topics

0
3621
by: Google Mike | last post by:
After a lot of thought and research, and playing with FreeTDS and InlineTDS, as well as various ODBC connections, I have determined that the fastest and cheapest way to get up and going with PHP on...
7
2741
by: stefanPL | last post by:
Hello, well, I am still trying to connect to SQL Server 2000 (MSDE) form PHP I did the following: 1. enabled php_mssql.dll extension in php.ini (phpinfo() shows it) 2. every dll is in proper...
10
1291
by: Thomas Grassi | last post by:
Just installed new Computer running Windows XP Home SP2. I use to have Windows 2000 ISA server and Windows 2000 SQL Server along with my windows 2000 workstation. Well I decided to nix all that and...
2
1762
by: news | last post by:
We currently have our mySQL server on the same box as the Apache server. For security and load balancing, we're going to be moving the mySQL server to another box. We're already using a single...
1
2509
by: Dishaa V | last post by:
Hello I need to connect to an access db which is on the internet. I do know that URL of the same. its http://www.vallury.com/balance/bank.mdb. Its just a test db. How can I connect to that db...
12
2753
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
10
1411
by: Mike Collins | last post by:
I am trying to connect to a 2003 Server from an ASP.Net page and am getting the following error message. Can someone please help get me started on how to track and fix this error? The code I am...
6
6598
by: xeqister | last post by:
Greetings, We are having a situation here whereby one of our staff created a very huge 32K buffer pool in a production database and caused the database to go down. When we try to reconnect to the...
10
3761
by: Bart | last post by:
Hi, I get following error when trying to connect to a MDF file of sql server express 2005 database: "Microsoft OLE DB Service Components error '80040e21' Multiple-step OLE DB operation...
1
1021
Odisey
by: Odisey | last post by:
Hello, I am somewhat familiar with MySQL, however I have a program called courseBuilder - actually Dreamweaver plugin, and another called Learning Site. In DW...
0
7260
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5089
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3234
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1596
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.