I recently downloaded and installed (hopefully correctly) MSDE 2000 Release
A. I previously, and still do, have the version of IIS that comes with XP
Professional installed on my computer. I wanted MSDE 2000 Release A so that
I could do database access using ASP from my websites, which are on my
computer. When I went to my first test website, I recieved the following
error:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC SQL Server Driver]Neither DSN nor SERVER keyword supplied
/testDB.asp, line 26
The ASP code that I used on my web to connect to the database (which is
currently just an empty text file) is the following:
Set conn=Server.Cre ateObject("ADOD B.Connection")
Set rs=Server.Creat eObject("ADODB. Recordset")
connectstring=" Driver={SQL Server};" &_
"DBQ=" & Server.MapPath( "testDB")
conn.Open connectstring
The error, obviously, is in the last line I have shown. Because I am
somewhat new to server setup, I am not sure what I need to do to make this
work. If anyone would be willing to help me, I would greatly appreciate it.
Thanks.
--
Nathan Sokalski nj********@hotm ail.com 6 5491
> connectstring=" Driver={SQL Server};" &_ "DBQ=" & Server.MapPath( "testDB")
You've mixed up SQL Server and Access connection strings. MSDE does not
have a file called "testDB" and even if it did, it would not live in the
same folder as your ASP page. See http://www.aspfaq.com/2126 for valid SQL
Server connection strings.
--
Aaron Bertrand
SQL Server MVP http://www.aspfaq.com/
for connection strings you can look here: http://www.connectionstrings.com/
=============== =============== == http://www.ASPkey.net/
A Resource Site for Web Developers
*Free OnLine web Tools
*Free development services
=============== =============== ==
"Nathan Sokalski" <nj********@hot mail.com> wrote in message
news:u1******** ******@TK2MSFTN GP11.phx.gbl... I recently downloaded and installed (hopefully correctly) MSDE 2000
Release A. I previously, and still do, have the version of IIS that comes with XP Professional installed on my computer. I wanted MSDE 2000 Release A so
that I could do database access using ASP from my websites, which are on my computer. When I went to my first test website, I recieved the following error:
Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC SQL Server Driver]Neither DSN nor SERVER keyword supplied /testDB.asp, line 26
The ASP code that I used on my web to connect to the database (which is currently just an empty text file) is the following:
Set conn=Server.Cre ateObject("ADOD B.Connection") Set rs=Server.Creat eObject("ADODB. Recordset")
connectstring=" Driver={SQL Server};" &_ "DBQ=" & Server.MapPath( "testDB")
conn.Open connectstring
The error, obviously, is in the last line I have shown. Because I am somewhat new to server setup, I am not sure what I need to do to make this work. If anyone would be willing to help me, I would greatly appreciate
it. Thanks. -- Nathan Sokalski nj********@hotm ail.com
I think I am getting closer to my goal, but I am not sure where to go next.
My current error that I recieve is:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D)
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user
'NJS\IUSR_NJS'.
/testDB.asp, line 25
(line 25 in my code is conn.Open connectstring)
And my current code for opening the connection is:
Set conn=Server.Cre ateObject("ADOD B.Connection")
Set rs=Server.Creat eObject("ADODB. Recordset")
connectstring=" Driver={SQL
Server};Server= NJS;Database=pu bs;Trusted_Conn ection=yes;"
conn.Open connectstring
(NJS is the name of my computer, I figured that is what I was supposed to
put there)
I am not sure what I am supposed to do to fix this problem, since there are
no user or password fields/attributes in the connection string, as well as
the fact that there is an attribute called "Trusted_Connec tion" . I also do
not want the user (even though it will normally only be me, since I
primarily want this only for testing my websites) to have to enter a
username or password, so I do not really want there to be a login at all. If
anyone can help me, I would appreciate it. Thanks.
--
Nathan Sokalski nj********@hotm ail.com
"TJS" <no****@here.co m> wrote in message
news:vt******** ****@corp.super news.com... for connection strings you can look here:
http://www.connectionstrings.com/
=============== =============== == http://www.ASPkey.net/ A Resource Site for Web Developers *Free OnLine web Tools *Free development services =============== =============== ==
"Nathan Sokalski" <nj********@hot mail.com> wrote in message news:u1******** ******@TK2MSFTN GP11.phx.gbl... I recently downloaded and installed (hopefully correctly) MSDE 2000 Release A. I previously, and still do, have the version of IIS that comes with
XP Professional installed on my computer. I wanted MSDE 2000 Release A so that I could do database access using ASP from my websites, which are on my computer. When I went to my first test website, I recieved the following error:
Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC SQL Server Driver]Neither DSN nor SERVER keyword
supplied /testDB.asp, line 26
The ASP code that I used on my web to connect to the database (which is currently just an empty text file) is the following:
Set conn=Server.Cre ateObject("ADOD B.Connection") Set rs=Server.Creat eObject("ADODB. Recordset")
connectstring=" Driver={SQL Server};" &_ "DBQ=" & Server.MapPath( "testDB")
conn.Open connectstring
The error, obviously, is in the last line I have shown. Because I am somewhat new to server setup, I am not sure what I need to do to make
this work. If anyone would be willing to help me, I would greatly appreciate it. Thanks. -- Nathan Sokalski nj********@hotm ail.com
As the error message tells you, you must grant IUSR_NJS logon rights to the
database.
--
Regards,
Kristofer Gafvert
Reply to newsgroup only. Remove NEWS if you must reply by email, but please
do not. www.ilopia.com - FAQ and Tutorials for Windows Server 2003
"Nathan Sokalski" <nj********@hot mail.com> wrote in message
news:eI******** ******@TK2MSFTN GP09.phx.gbl... I think I am getting closer to my goal, but I am not sure where to go
next. My current error that I recieve is:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D) [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'NJS\IUSR_NJS'. /testDB.asp, line 25
(line 25 in my code is conn.Open connectstring)
And my current code for opening the connection is:
Set conn=Server.Cre ateObject("ADOD B.Connection") Set rs=Server.Creat eObject("ADODB. Recordset")
connectstring=" Driver={SQL Server};Server= NJS;Database=pu bs;Trusted_Conn ection=yes;"
conn.Open connectstring
(NJS is the name of my computer, I figured that is what I was supposed to put there) I am not sure what I am supposed to do to fix this problem, since there
are no user or password fields/attributes in the connection string, as well as the fact that there is an attribute called "Trusted_Connec tion" . I also
do not want the user (even though it will normally only be me, since I primarily want this only for testing my websites) to have to enter a username or password, so I do not really want there to be a login at all.
If anyone can help me, I would appreciate it. Thanks. -- Nathan Sokalski nj********@hotm ail.com
"TJS" <no****@here.co m> wrote in message news:vt******** ****@corp.super news.com... for connection strings you can look here:
http://www.connectionstrings.com/
=============== =============== == http://www.ASPkey.net/ A Resource Site for Web Developers *Free OnLine web Tools *Free development services =============== =============== ==
"Nathan Sokalski" <nj********@hot mail.com> wrote in message news:u1******** ******@TK2MSFTN GP11.phx.gbl... I recently downloaded and installed (hopefully correctly) MSDE 2000 Release A. I previously, and still do, have the version of IIS that comes with XP Professional installed on my computer. I wanted MSDE 2000 Release A so that I could do database access using ASP from my websites, which are on my computer. When I went to my first test website, I recieved the
following error:
Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC SQL Server Driver]Neither DSN nor SERVER keyword supplied /testDB.asp, line 26
The ASP code that I used on my web to connect to the database (which
is currently just an empty text file) is the following:
Set conn=Server.Cre ateObject("ADOD B.Connection") Set rs=Server.Creat eObject("ADODB. Recordset")
connectstring=" Driver={SQL Server};" &_ "DBQ=" & Server.MapPath( "testDB")
conn.Open connectstring
The error, obviously, is in the last line I have shown. Because I am somewhat new to server setup, I am not sure what I need to do to make this work. If anyone would be willing to help me, I would greatly
appreciate it. Thanks. -- Nathan Sokalski nj********@hotm ail.com
Nathan Sokalski wrote: I think I am getting closer to my goal, but I am not sure where to go next. My current error that I recieve is:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D) [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'NJS\IUSR_NJS'. /testDB.asp, line 25
(line 25 in my code is conn.Open connectstring)
And my current code for opening the connection is:
Set conn=Server.Cre ateObject("ADOD B.Connection") Set rs=Server.Creat eObject("ADODB. Recordset")
connectstring=" Driver={SQL Server};Server= NJS;Database=pu bs;Trusted_Conn ection=yes;"
conn.Open connectstring
(NJS is the name of my computer, I figured that is what I was supposed to put there) I am not sure what I am supposed to do to fix this problem, since there are no user or password fields/attributes in the connection string, as well as the fact that there is an attribute called "Trusted_Connec tion" . I also do not want the user (even though it will normally only be me, since I primarily want this only for testing my websites) to have to enter a username or password, so I do not really want there to be a login at all. If anyone can help me, I would appreciate it. Thanks.
How many times do we have to advise you not to use ODBC? Have you even
looked at the websites that have been cited?
The easiest way to connect to SQL Server is to use a SQL login. The user
does not have to see or know the login and password. You can supply those in
your connection string. So your first step is to use Enterprise Manager to
create a SQL login and password (say you use asp_acct/password) and grant
that account permissions to the database to which you are attempting to
connect. You should read up in SQL Books Online (BOL) all that is has to say
about SQL security.
Then, in ASP, do this:
connectstring = "Provider-SQLOLEDB;Data Source=NJS;" & _
"Initial Catalog=pubs;Us er ID=asp_acct;Pas sword=password"
That's it. You're done.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
On Sun, 7 Dec 2003 02:59:52 -0500, "Nathan Sokalski"
<nj********@hot mail.com> wrote: I think I am getting closer to my goal, but I am not sure where to go next.
Limiting to a single appropriate newsgroup would be the smartest move.
Followups reste to just the inetserver.asp. db group. use it.
My current error that I recieve is:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D) [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'NJS\IUSR_NJS' .
And what part of "Login Failed" are you questioning?
Create a login for the IUSR_NJS user in your database. or better,
create a SQL user, with appropriate rights, and use an OLEDB provider
string with the account in the string. Use an Include to make this
easy.
Jeff This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Paul S |
last post by:
I have a copy of MS Visual Studio 2002 Professional ACADEMIC which I
understand is the same as the regular Professional version with the
addition of a student CDROM. The installation program on the first
CDROM only copies the MSDE to the harddrive and the copied setup file
has to then be manually executed to complete the installation.
Are the SQL tools such the SQL Enterprise Manager and MS Query
included in the professional version? ...
|
by: izzy |
last post by:
I was wondering if any of you guys can kindly help me in finding all
the different versions of MSDE 2000 that came out since it's first
release. I expected to find something similar like Sun's archive
(http://java.sun.com/products/archive/index.html) for MSDE 2000 too
but failed to find after a few hours of browsing at the Microsoft
Download Center (http://www.microsoft.com/downloads/search.aspx?displaylang=en).
They seem more into...
|
by: Igor Solodovnikov |
last post by:
Hi.
I am trying to automatically backup transaction log when error 9002
happened. So i have created appropriate job and alert to catch this error.
I have two instances of sql server under Windows 2000. One of them is full
SQL Server, another is msde.
When transaction log is full in full SQL Server error 9002 severity 17
state 2 is logged in sql server log and in Windows Application log. My
alert firing my job. All is fine.
But when...
|
by: Stephen Bishop |
last post by:
Hi everyone,
In using the SQL Server Database Wizard in Access 2000 to create a new
access project, I get two consecutive error messages and then the wizard
shuts down. The first, which apprears immediately after starting the wizard
is a message box stating something like "the property value is too large".
After clicking through and filling out the values in the connection and
database dialog, I get a second dialog box with the message...
|
by: noname |
last post by:
MSDE 2000 Release A installed under windows 2000 pro will not
communicate with SQL Server Manager nor MS Access on peer computer.
Can someone help?
Have set DISABLENETWORKPROTOCOLS=0 at install time.
Install log shows installation successful..
Control Panel> Admin Tools> Services section shows SQL server instance
running.
| |
by: DB developer |
last post by:
Hello friends
I am trying to create a deployment project to distribute my VB.NET application with MSDE database. I am using VS.NET with MSDE 2000 deployment toolkit (release candidate) to achieve this. I am facing the following problems
I am deploying the database by copying to .MDF and .LDF files in destination folders using deployment package. The problem is that I am not able to attach the database to the MSDE instance as a part of setup...
|
by: Piedro |
last post by:
Hi Group,
I haven written a program on a win 2000 pc and sql server 2000, in the
sql server there're about 40 tables with data and now I'm deploying my
project on a test pc with windows xp professional SP2 and an msde
database but the strange thing is, on my win 2000 sql server 2000 pc
I've got a table which keeps the heighth of something (decimal(8,2)).
An example of a stored value is 4512 and in the msde it's also stored
as 4512 but...
|
by: David Lozzi |
last post by:
Howdy!
I have a question for all you smarties... I have a ASP.Net application
running on Windows 2000 Professional and MSDE, same box. While running the
application, users will randomly receive a too many connections error or
even a simple Page cannot be displayed. I know some of the limitations of
MSDE and have managed to fudge my way around them, but what about Win2kPro
IIS? I'm thinking it won't let me a host an active application on...
|
by: cmrhema |
last post by:
Hello
I have Windows XP Professional. This will not allow me to install MS SQL SERVER 2000 Developer Edition. It allows me to install only the Client Tool, which I did successfully. Thereafter I installed MSDE, which enables me to work. Now I use visual basic 6.0, vb.net as frontend.
I follow all the tutorials (so far the basic ones) which deals with vb,vb.net and sql server 2000. I have tried out the examples successfully.
Now my...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |