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=SQLOL EDB;Data Source=localhos t; Initial
Catalog=master; Integrated Security=SSPI"; I
get an Invalid login error. If I use "Provider=SQLOL EDB;
Data Source=localhos t; Initial Catalog=master; User
ID=Dave;Passwor d=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 2240
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*******@disc ussions.microso ft.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=SQLOL EDB;Data Source=localhos t; Initial Catalog=master; Integrated Security=SSPI"; I get an Invalid login error. If I use "Provider=SQLOL EDB; Data Source=localhos t; Initial Catalog=master; User ID=Dave;Passwor d=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
Serverauthenticati on 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*******@disc ussions.microso ft.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=SQLOL EDB;Data Source=localhos t; Initial Catalog=master; Integrated Security=SSPI"; I get an Invalid login error. If I use "Provider=SQLOL EDB; Data Source=localhos t; Initial Catalog=master; User ID=Dave;Passwor d=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*******@disc ussions.microso ft.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 Serverauthenticatio n 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*******@disc ussions.microso ft.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=SQLOL EDB;Data Source=localhos t; Initial Catalog=master; Integrated Security=SSPI"; I get an Invalid login error. If I use "Provider=SQLOL EDB; Data Source=localhos t; Initial Catalog=master; User ID=Dave;Passwor d=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=localhos t 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*******@dis cussions.micros oft.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 Serverauthenticati on 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*******@disc ussions.microso ft.com> wrote in
messagenews:08***** *************** ********@phx.gb l... 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=SQLOL EDB;Data Source=localhos t; Initial Catalog=master; Integrated Security=SSPI"; I get an Invalid login error. If I use "Provider=SQLOL EDB; Data Source=localhos t; Initial Catalog=master; User ID=Dave;Passwor d=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*******@disc ussions.microso ft.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=localhos t 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*******@di scussions.micro soft.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 authenticat ion is disabled and only Windows authentication is enabled, which makes sense from a security perspective. However, that means the second connectio n string you present, won't work.
-- Carsten Thomsen Enterpris e Development with VS .NET, UML, and MSF http://www.apress.com/book/bookDisplay.html?bID=105 "Dave" <an*******@disc ussions.microso ft.com> wrote in messagenews:08**** *************** *********@phx.g bl... >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=SQLOL EDB;Data Source=localhos t; Initial > Catalog=master; Integrated Security=SSPI"; I > get an Invalid login error. If I use "Provider=SQLOL EDB; > Data Source=localhos t; Initial Catalog=master; User > ID=Dave;Passwor d=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 events, when I try to run the
form suddenly won't run. I get the message "The expression On Open you entered
as the event property setting produced the following error: Constant Expression
Required."
Two possible reasons follow on the screen:
|
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. It's a query by form in which she enters the criteria of
the record she wants in an unbound form, and it pulls only that record
and switches to the entry form so she can enter data. I had noticed
it was faster than find or filter, so I offered it to...
|
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 give me any errors.
Tim
FileStream file = new FileStream(@"C:\errors\error.htm",
System.IO.FileMode.OpenOrCreate);
StreamWriter sw = new StreamWriter(file);
|
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 web project even cannot create a new
one. The message for create a new web project is: (Open an oldASP project
got similar error.) My system is Windows 2000 Server
----------------------
The default web access mode for this project is set to...
|
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:
"-2147467259 The database has been place in a state by user
'Admin' on machine ..... that prevents it from being opened or
locked."
| |
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 '/CinemaBookingSystem' Application.
--------------------------------------------------------------------------------
ERROR General error
Unable to open registry key 'Temporary (volatile) Jet DSN for process
|
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 error,
anydbm.error, shelve.open.anydb.error, etc. but can't find it. Things
|
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 (tables, queies, forms,
etc) from the database raises the same error. Trying to link to the tables
in the database raises the same error. I am guessing there is an autoexec
macro or code in the open event of the opening form that contains the error....
|
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 the
error "ExecuteReader requires an open and available Connection. The
connection's current state is Open, Executing." I do not use ExecuteReader,
why the error says ExecuteReader. What does it mean ?
When I get this error, is there a way for me...
|
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 exclusively.
If I open DB1 but have no tables open and then open up DB1BE
exclusively, DB1BE will open exclusive. But if I then attempt to open a
linked table in the frontend DB1 I'm informed I can't use the table
because the file is in use.
|
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: 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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |