Re: SQL open error

From: CT (carstent_at_spammersgoawaydotnetservices.biz)
Date: 10/24/04


Date: Sun, 24 Oct 2004 21:18:39 +0200

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
<anonymous@discussions.microsoft.com> wrote in message 
news:098e01c4b9f0$7d1d5360$a601280a@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" <anonymous@discussions.microsoft.com> wrote in message
>>news:083801c4b94a$badc8870$a501280a@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
>>
>>
>>.
>> 


Relevant Pages

  • RE: Fulltext failure on a 2 node cluster
    ... Server full-text search resource online: "SQL Cluster Resource 'Full Text' ...
    (microsoft.public.sqlserver.clustering)
  • Re: HELP PLEASE ~ ???
    ... You mentioned that it went ahead and added a SQL ... SQL Server 2000 database for all my data. ... find the connectionString in the newly recreated SQLExpress database. ... The connection string specifies a local Sql Server Express instance ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Multi-Channel Raid VS SAN Storage
    ... A 5~6 years old server is a very old server. ... As I mentioned, the server is one node in a cluster environment, and SQL is ... We actually are running RAID 1+0 and our aplication is definately more ... needs it's own SAN device, or at least a dedicated IO channel on the SAN. ...
    (microsoft.public.sqlserver.setup)
  • Re: Multi-Channel Raid VS SAN Storage
    ... A 5~6 years old server is a very old server. ... As I mentioned, the server is one node in a cluster environment, and SQL is ... We actually are running RAID 1+0 and our aplication is definately more ... needs it's own SAN device, or at least a dedicated IO channel on the SAN. ...
    (microsoft.public.sqlserver.setup)
  • RE: How do I get back to base SQL server on my SBS 2003 server?
    ... After you uninstall SQL 2005, the instance which you upgraded will not go ... Uninstall and then reinstall ISA server. ... Uninstall and then reinstall the Monitoring component. ... Tools to Maintenance, change Monitoring component to Install, and then ...
    (microsoft.public.windows.server.sbs)