I reinstalled SQL 2000 server after reformatting my drive.
Now I cannot open a database in my C## program as before.
If I use "Provider=SQLOLEDB;Data Source=localhost; Initial
Catalog=master;Integrated Security=SSPI"; I
get an Invalid login error. If I use "Provider=SQLOLEDB;
Data Source=localhost; Initial Catalog=master;User
ID=Dave;Password=midn1te"; I get the following error, "User
no associated with a trusted SQL server connection." What
did I do wrong on my installation? Anyone know what these
errors mean? I sure can't find the answers in the Help.
Dave 5 2221
Have you checked that the user account used for running your application can
still access the SQL Server database? It seems that SQL Server
authentication is disabled and only Windows authentication is enabled, which
makes sense from a security perspective. However, that means the second
connection string you present, won't work.
--
Carsten Thomsen
Enterprise Development with VS .NET, UML, and MSF http://www.apress.com/book/bookDisplay.html?bID=105
"Dave" <an*******@discussions.microsoft.com> wrote in message
news:08****************************@phx.gbl... I reinstalled SQL 2000 server after reformatting my drive. Now I cannot open a database in my C## program as before. If I use "Provider=SQLOLEDB;Data Source=localhost; Initial Catalog=master;Integrated Security=SSPI"; I get an Invalid login error. If I use "Provider=SQLOLEDB; Data Source=localhost; Initial Catalog=master;User ID=Dave;Password=midn1te"; I get the following error, "User no associated with a trusted SQL server connection." What did I do wrong on my installation? Anyone know what these errors mean? I sure can't find the answers in the Help. Dave
Carsten;
Thanks for your reply. I can access the SQL server
database thru the SQL Server Enterprise Manager. I don't
understand why the first connection string doesn't work in
my program. I tried to change the Server registration to
include SQL Server authentication in Enterprise Manager but
it keeps telling me that my user name is not associated
with a trusted SQL server connection, the same message I
get programmtically. How do I get my Windows ID to become
associated with a trusted SQL server connection?
Dave -----Original Message----- Have you checked that the user account used for running
your application canstill access the SQL Server database? It seems that SQL
Serverauthentication is disabled and only Windows authentication
is enabled, whichmakes sense from a security perspective. However, that
means the secondconnection string you present, won't work.
-- Carsten Thomsen Enterprise Development with VS .NET, UML, and MSF http://www.apress.com/book/bookDisplay.html?bID=105 "Dave" <an*******@discussions.microsoft.com> wrote in message news:08****************************@phx.gbl...I reinstalled SQL 2000 server after reformatting my drive. Now I cannot open a database in my C## program as before. If I use "Provider=SQLOLEDB;Data Source=localhost; Initial Catalog=master;Integrated Security=SSPI"; I get an Invalid login error. If I use "Provider=SQLOLEDB; Data Source=localhost; Initial Catalog=master;User ID=Dave;Password=midn1te"; I get the following error, "User no associated with a trusted SQL server connection." What did I do wrong on my installation? Anyone know what these errors mean? I sure can't find the answers in the Help. Dave
.
You must use the user ID and password you used when you reinstalled SQL
Server. What user account id the MSSQLServer Windows service running under?
If not LocalSystem, perhaps that might help you (provided you know the
password of course ;-)).
--
Carsten Thomsen
Enterprise Development with VS .NET, UML, and MSF http://www.apress.com/book/bookDisplay.html?bID=105
<an*******@discussions.microsoft.com> wrote in message
news:09****************************@phx.gbl... Carsten; Thanks for your reply. I can access the SQL server database thru the SQL Server Enterprise Manager. I don't understand why the first connection string doesn't work in my program. I tried to change the Server registration to include SQL Server authentication in Enterprise Manager but it keeps telling me that my user name is not associated with a trusted SQL server connection, the same message I get programmtically. How do I get my Windows ID to become associated with a trusted SQL server connection? Dave-----Original Message----- Have you checked that the user account used for running your application canstill access the SQL Server database? It seems that SQL Serverauthentication is disabled and only Windows authentication is enabled, whichmakes sense from a security perspective. However, that means the secondconnection string you present, won't work.
-- Carsten Thomsen Enterprise Development with VS .NET, UML, and MSF http://www.apress.com/book/bookDisplay.html?bID=105 "Dave" <an*******@discussions.microsoft.com> wrote in message news:08****************************@phx.gbl...I reinstalled SQL 2000 server after reformatting my drive. Now I cannot open a database in my C## program as before. If I use "Provider=SQLOLEDB;Data Source=localhost; Initial Catalog=master;Integrated Security=SSPI"; I get an Invalid login error. If I use "Provider=SQLOLEDB; Data Source=localhost; Initial Catalog=master;User ID=Dave;Password=midn1te"; I get the following error, "User no associated with a trusted SQL server connection." What did I do wrong on my installation? Anyone know what these errors mean? I sure can't find the answers in the Help. Dave
.
I wish to use Windows authentication rather than supplying
a password like I used to using Integrated Security=SSPI in
my connection string. What do I need to do to get it to
accept that string? I am the systemes administrator on my
box and have no need for passwords. The name of my server
in Enterprise Manager reads as (LOCAL) (Windows NT).
However, it refers to the server as XP when I do the
install which is the name of my computer. Is that
appropriate? If I use Integrated Security=SSPI and Data
Source=localhost in my connection string I get the error
"SQL server does not exist or access denied". If I use
Data Source=XP I get the error "Login failed for user
'XP\\ASPNET'. What options need I take when re-installing
the SQL server in order to use Integrated Security=SSPI in
my connection string?
Dave -----Original Message----- You must use the user ID and password you used when you
reinstalled SQLServer. What user account id the MSSQLServer Windows
service running under?If not LocalSystem, perhaps that might help you (provided
you know thepassword of course ;-)).
-- Carsten Thomsen Enterprise Development with VS .NET, UML, and MSF http://www.apress.com/book/bookDisplay.html?bID=105 <an*******@discussions.microsoft.com> wrote in message news:09****************************@phx.gbl... Carsten; Thanks for your reply. I can access the SQL server database thru the SQL Server Enterprise Manager. I don't understand why the first connection string doesn't work in my program. I tried to change the Server registration to include SQL Server authentication in Enterprise Manager but it keeps telling me that my user name is not associated with a trusted SQL server connection, the same message I get programmtically. How do I get my Windows ID to become associated with a trusted SQL server connection? Dave-----Original Message----- Have you checked that the user account used for running your application canstill access the SQL Server database? It seems that SQL Serverauthentication is disabled and only Windows authentication is enabled, whichmakes sense from a security perspective. However, that means the secondconnection string you present, won't work.
-- Carsten Thomsen Enterprise Development with VS .NET, UML, and MSF http://www.apress.com/book/bookDisplay.html?bID=105 "Dave" <an*******@discussions.microsoft.com> wrote in
messagenews:08****************************@phx.gbl.. . I reinstalled SQL 2000 server after reformatting my drive. Now I cannot open a database in my C## program as before. If I use "Provider=SQLOLEDB;Data Source=localhost; Initial Catalog=master;Integrated Security=SSPI"; I get an Invalid login error. If I use "Provider=SQLOLEDB; Data Source=localhost; Initial Catalog=master;User ID=Dave;Password=midn1te"; I get the following error,
"User no associated with a trusted SQL server connection." What did I do wrong on my installation? Anyone know what these errors mean? I sure can't find the answers in the Help. Dave
.
.
Ah, and ASP.NET application. You then need to implement impersonation or
allow the XP\ASPNET user account to access your database. The XP\ASPNET is
used by the ASP.NET worker process, which in turn means for running your
ASP.NET application.
--
Carsten Thomsen
Enterprise Development with VS .NET, UML, and MSF http://www.apress.com/book/bookDisplay.html?bID=105
<an*******@discussions.microsoft.com> wrote in message
news:09****************************@phx.gbl... I wish to use Windows authentication rather than supplying a password like I used to using Integrated Security=SSPI in my connection string. What do I need to do to get it to accept that string? I am the systemes administrator on my box and have no need for passwords. The name of my server in Enterprise Manager reads as (LOCAL) (Windows NT). However, it refers to the server as XP when I do the install which is the name of my computer. Is that appropriate? If I use Integrated Security=SSPI and Data Source=localhost in my connection string I get the error "SQL server does not exist or access denied". If I use Data Source=XP I get the error "Login failed for user 'XP\\ASPNET'. What options need I take when re-installing the SQL server in order to use Integrated Security=SSPI in my connection string? Dave-----Original Message----- You must use the user ID and password you used when you reinstalled SQLServer. What user account id the MSSQLServer Windows service running under?If not LocalSystem, perhaps that might help you (provided you know thepassword of course ;-)).
-- Carsten Thomsen Enterprise Development with VS .NET, UML, and MSF http://www.apress.com/book/bookDisplay.html?bID=105 <an*******@discussions.microsoft.com> wrote in message news:09****************************@phx.gbl... Carsten; Thanks for your reply. I can access the SQL server database thru the SQL Server Enterprise Manager. I don't understand why the first connection string doesn't work in my program. I tried to change the Server registration to include SQL Server authentication in Enterprise Manager but it keeps telling me that my user name is not associated with a trusted SQL server connection, the same message I get programmtically. How do I get my Windows ID to become associated with a trusted SQL server connection? Dave -----Original Message----- Have you checked that the user account used for running your application can still access the SQL Server database? It seems that SQL Server authentication is disabled and only Windows authentication is enabled, which makes sense from a security perspective. However, that means the second connection string you present, won't work.
-- Carsten Thomsen Enterprise Development with VS .NET, UML, and MSF http://www.apress.com/book/bookDisplay.html?bID=105 "Dave" <an*******@discussions.microsoft.com> wrote in messagenews:08****************************@phx.gbl. .. >I reinstalled SQL 2000 server after reformatting my drive. > Now I cannot open a database in my C## program as before. > If I use "Provider=SQLOLEDB;Data Source=localhost; Initial > Catalog=master;Integrated Security=SSPI"; I > get an Invalid login error. If I use "Provider=SQLOLEDB; > Data Source=localhost; Initial Catalog=master;User > ID=Dave;Password=midn1te"; I get the following error, "User> no associated with a trusted SQL server connection." What > did I do wrong on my installation? Anyone know what these > errors mean? I sure can't find the answers in the Help. > Dave
.
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Corepaul |
last post by:
I am working in Windows 2000 and Access 2000 and am a rookie in Access.
Coding merrily along, I stop periodically to test that everything works.
After adding a small amount of code to several...
|
by: Julia Baresch |
last post by:
Hi everyone,
As some of you may know, we've been having trouble with an
unrecognized database format error.
Today I installed an unfinished project on the workstation of one of
my users. ...
|
by: Tim Cowan |
last post by:
Hi
I have the following code to write an error file and it is supposed to open
the HTML file in a browser when an error occurs. It creates the file Ok but
doesn't open the new browser and doesn't...
|
by: CM |
last post by:
Hi there:
I have a web project which can be open and run without problem. I didn't
open the web application for a period and during which I didn't modified any
IIS items, but now I cannot open any...
|
by: gm |
last post by:
Immediately after generating the Access application from the Source
Safe project I get:
"-2147467259 Could not use ''; file already in use."
If Access database closed and then reopened I get:...
|
by: bazzer |
last post by:
hey,
im trying to access a microsoft access database from an ASP.NET web
application in visual basic 2003.NET. i get the following error when i
try running it:
Server Error in...
|
by: aomighty |
last post by:
I wanted to write the following code:
import shelve
try:
db = shelve.open(file, "r")
except SomeError:
print "Oh no, db not found"
Only, I'm not sure what SomeError should be. I tried...
|
by: Steve |
last post by:
I have a database that raises an error when you try to open it and it
doesn't open. Trying to open the database with the OpenDatabase method
raises the same error. Trying to import any objects...
|
by: fniles |
last post by:
I am using VB.Net 2003 and MS Access (connecting using OleDBConnection).
I read using DataAdapter and DataSet, not DataReader.
When many people try to access the database at the same time, I get...
|
by: Salad |
last post by:
A97. Split database. Frontend DB1.MDB. Backend DB1BE.MDB. Tables are
linked between DB1 and DB2.
From my testing, if I open DB1 exclusively using /excl the backend
DB1BE is not opened...
|
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:
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...
|
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: 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,...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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...
|
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,...
| |