Re: old question about login, but no help from the existing thread

From: Mercury (me_at_spam.com)
Date: 06/08/05


Date: Wed, 8 Jun 2005 23:48:30 +1200

As per Sue's comments: Try RunAs to start the program and supply the other
account credentails to the RunAs command prompt command.

"Sue Hoegemeier" <Sue_H@nomail.please> wrote in message
news:vkrca15shfi507irrpra5vsej5q3tad2n7@4ax.com...
> When you specify a user name and password, you are telling
> SQL Server to log you in with a SQL Login. When you specify
> a trusted connection, you will be logged in using the
> windows credentials you used when logging on to the box you
> are currently logged into.
> If you want to log in under a different windows account, you
> need to log out and then log back into the PC with the
> account you want connecting to SQL Server.
>
> -Sue
>
> On Tue, 7 Jun 2005 20:08:01 -0700, "man-in-nature"
> <maninnature@discussions.microsoft.com> wrote:
>
>>Thanks for the input. But that is not what want to do. What I would like
>>to
>>have is that I have a few different windows accounts created on the same
>>xp
>>box, each account is used in a different connection scenario. For that, I
>>do
>>need to specify a different window account for different scenario when I
>>connect to the same sql instance.
>>
>>Thanks.
>>
>>"Alejandro Mesa" wrote:
>>
>>> > - Windows Authentication only
>>>
>>> osql -d adventureworks2000 -E
>>>
>>>
>>> AMB
>>>
>>> "man-in-nature" wrote:
>>>
>>> > osql -d adventureworks2000 -U admin -P admin
>>> >
>>> > Login failed for user 'admin'. Reason: Not associated with a trusted
>>> > SQL
>>> > Server connection.
>>> >
>>> > My system and configurations:
>>> >
>>> > - Winxp + sp2
>>> > - mssql developer edition + sp3a
>>> > - Windows Authentication only
>>> > - Local System Account is used to start the sql instance
>>> > - admin/admin is the administrator account to login to the xp box
>>> > - admin/admin was added to "SQL Server Group/[Machine
>>> > Name]/Security/Logins"
>>> > with the database access and all database role assigned to the
>>> > database in
>>> > question.
>>> > - admin/admin was added to "Databases/[database in question]/Users,
>>> > with
>>> > Permit in Database Role all checked.
>>> >
>>> > Am I missing anything?
>>> >
>>> > Thanks
>>> >
>



Relevant Pages

  • Windows Authentication with IIS on separate machines
    ... -Web Application is using Basic Authentication set in IIS ... -Added user account TESTUSER and gave read access to ... in SQL server but doesn't work if user account was ... Windows account, ...
    (microsoft.public.sqlserver.security)
  • Re: Login Failed asp.net to SQL
    ... It will use Network Service account to run it instead of ASPNET. ... You can find your related application pool in the "home directory" tab of the web ... I also suggest you specify one defined account in the application pool identity tab and SQL server. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Is it acceptable to post a URL to request review of Userability?
    ... It uses a specific timezone and doesn't specify which it is. ... With this time management tool, if you create an account, you'll record ... This is a very bad thing, because HTTP GET must never have side effects. ...
    (comp.infosystems.www.authoring.html)
  • Re: Is it acceptable to post a URL to request review of Userability?
    ... giving a time without specifying the timezone doesn't make sense. ... You must either use UTC and clearly specify that you're using UTC or better, use the local timezone the user wishes. ... It's very unclear what your application is supposed to do, ... With this time management tool, if you create an account, you'll record your activity, whatever it is, by tagging it with a name and specifying its start and end at the time you start or end it. ...
    (comp.infosystems.www.authoring.html)
  • Re: "ASPNET Account" and "NT AuthoritySyst
    ... There is an option in IIS where you can specify the ... account used by your Application Pool. ... Pool in your SQL Server instance. ...
    (microsoft.public.sqlserver.security)