How to configure the IIS, ASPNET userID, Windows or SQL Authentiation, std or
integrated security for SQLserver database?
The VS.net 2002 web server and SQL Server client are at the same PC, while
the SQL Server database is at another PC. The dataset and DataGrid were
created successfully. However, when trying to run a Web Form with a table, a
server error msg: Login failed for user '(null)'. Reason: Not associated
with a trusted SQL Server connection, popped up.
I tried to create a login/user, computername/ASPNET, for the database and
table. An error msg popped up: Error 15401: Windows NT user or group
'ComputerName\ASPNET' not found.
How do I solve this ASPNET userID and SQLserver Security problem?
TIA,
Jeffrey 2 3782
re:
How do I solve this ASPNET userID and SQLserver Security problem?
Use mixed authentication in SQL Server ( both SQL Server *and* Windows ).
That will allow you to bypass Windows authentication.
What you will need to do is create a SQL Server user
for your database, which is not a windows account.
Then, use a connection string like this one :
Data Source=111.111.111.111;Initial Catalog=Yourdb;User Id=yourUser;Password=pwd;
This assumes you're not using SQL Server 2005,
but are using SQL 7, 2000 or MSDE.
If you're using SQL Server 2005 or Express, see the connections strings at: http://www.connectionstrings.com/?carrier=sqlserver2005
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Jeffrey" <cj*******@gmail.comwrote in message
news:F7**********************************@microsof t.com...
How to configure the IIS, ASPNET userID, Windows or SQL Authentiation, std or
integrated security for SQLserver database?
The VS.net 2002 web server and SQL Server client are at the same PC, while
the SQL Server database is at another PC. The dataset and DataGrid were
created successfully. However, when trying to run a Web Form with a table, a
server error msg: Login failed for user '(null)'. Reason: Not associated
with a trusted SQL Server connection, popped up.
I tried to create a login/user, computername/ASPNET, for the database and
table. An error msg popped up: Error 15401: Windows NT user or group
'ComputerName\ASPNET' not found.
How do I solve this ASPNET userID and SQLserver Security problem?
TIA,
Jeffrey
Thanks. I have tried to do what you have suggestted. However, after clicked
a 'new connection' from the SqlDataAdapter properties, I failed to create the
std connection string. On the Data Link Properties desktop, after typed the
userID and pwd, I clicked the database arrow and immediately the error msg
popped up.
I think I have to code the connection string by opening the code editor.
Any suggestion on how to change the Integrated connection string to std
connection string? Will try again tommorrow.
TIA,
Jeffrey
"Juan T. Llibre" wrote:
re:
How do I solve this ASPNET userID and SQLserver Security problem?
Use mixed authentication in SQL Server ( both SQL Server *and* Windows ).
That will allow you to bypass Windows authentication.
What you will need to do is create a SQL Server user
for your database, which is not a windows account.
Then, use a connection string like this one :
Data Source=111.111.111.111;Initial Catalog=Yourdb;User Id=yourUser;Password=pwd;
This assumes you're not using SQL Server 2005,
but are using SQL 7, 2000 or MSDE.
If you're using SQL Server 2005 or Express, see the connections strings at: http://www.connectionstrings.com/?carrier=sqlserver2005
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Jeffrey" <cj*******@gmail.comwrote in message
news:F7**********************************@microsof t.com...
How to configure the IIS, ASPNET userID, Windows or SQL Authentiation, std or
integrated security for SQLserver database?
The VS.net 2002 web server and SQL Server client are at the same PC, while
the SQL Server database is at another PC. The dataset and DataGrid were
created successfully. However, when trying to run a Web Form with a table, a
server error msg: Login failed for user '(null)'. Reason: Not associated
with a trusted SQL Server connection, popped up.
I tried to create a login/user, computername/ASPNET, for the database and
table. An error msg popped up: Error 15401: Windows NT user or group
'ComputerName\ASPNET' not found.
How do I solve this ASPNET userID and SQLserver Security problem?
TIA,
Jeffrey
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Garyrek |
last post by:
Hi
I have an url where I have xml data POSTED and I need to parse the URL to
read the data - Meanwhile here is my xml data
===================================
<?xml version="1.0"...
|
by: M O J O |
last post by:
Hi,
About every half hour, my sqlserver falls asleep.
When I try to browse my homepage (uses aspnet/sqlserver), I get this error:
Timeout expired. The timeout period elapsed prior to...
|
by: A |
last post by:
Hi,
does anybody know how (if possible) to change the database name for the
session database (which is ASPState)?
My problem is that our website/sqlserverdb is hosted by an isp, and we are...
|
by: Patrick |
last post by:
I have an ASP.NET application that connects to a SQL Server database.
The SQL Server resides on a seperate development server from the IIS5.1 on
Windows XP SP2 on development PCs which host the...
|
by: Ober |
last post by:
I'm having trouble with my security model, Application_Start, and accessing
my database.
My ASP.NET app is only going to be running in an intranet environment (not
on the public Internet). ...
|
by: John |
last post by:
Hi
I am manually able to create a connection to my db in the vs2005 ide using
Tools->Connect to Database. In the connection I see 'Data
Source=MYSERVER;Initial Catalog=aspnetdb;Integrated...
|
by: Dan Sikorsky |
last post by:
Can I use SQLServer 2000 with ASP.NET 2.0 instead of SQLServer 2005, and use
the .Net 2.0 Membership functionality?
I've setup my Login page, controls, etc., and now it's time to use the Web...
|
by: =?Utf-8?B?SmVmZnJleQ==?= |
last post by:
The VS.net 2002 and SQL Server client were at the same PC and the SQL Server
database was at another PC. The dataset and DataGrid were created
successfully. However, when trying to run a Web...
|
by: ramaswamynanda |
last post by:
Hello All,
I have an application using ASP.NET. The database is SQLServer Express 2005. There is a table called ApartmentInfo in the database. All i am trying to do, is to "select * from...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
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...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
| |