Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Changing user in sql query analyzer
Hi,

In SQL Server 2000's SQL Query Analyzer, how do I change the login account?
I mean if I am using UsrA in the Analyzer, how do I switch to UserB by SQL
command?
Thanks for help.


Jason



Report this thread to moderator Post Follow-up to this message
Old Post
Jason Huang
11-30-06 10:18 AM


Re: Changing user in sql query analyzer
Jason
I'm afraid you cannot in SQL Server 2000, unless open a new connection .




"Jason Huang" < JasonHuang8888@hotma
il.com> wrote in message
 news:%23tox$%23FFHHA
.3288@TK2MSFTNGP05.phx.gbl...
> Hi,
>
> In SQL Server 2000's SQL Query Analyzer, how do I change the login
> account?
> I mean if I am using UsrA in the Analyzer, how do I switch to UserB by SQL
> command?
> Thanks for help.
>
>
> Jason
>



Report this thread to moderator Post Follow-up to this message
Old Post
Uri Dimant
11-30-06 10:18 AM


Re: Changing user in sql query analyzer
> I mean if I am using UsrA in the Analyzer, how do I switch to UserB by SQL
 command?

In 2000, you only have the SETUSER command, but it changes the user context,
 not the login context.

In 2005, you have the EXECUTE AS command, and you decide whether to change u
ser or login context.

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www. solidqualitylearning
.com/


"Jason Huang" < JasonHuang8888@hotma
il.com> wrote in message
 news:%23tox$%23FFHHA
.3288@TK2MSFTNGP05.phx.gbl...
> Hi,
>
> In SQL Server 2000's SQL Query Analyzer, how do I change the login account
?
> I mean if I am using UsrA in the Analyzer, how do I switch to UserB by SQL
 command?
> Thanks for help.
>
>
> Jason
>


Report this thread to moderator Post Follow-up to this message
Old Post
Tibor Karaszi
11-30-06 10:18 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 09:00 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006