SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Sql Server Management Studio : How to Logon with different windows username???


Sql Server Management Studio : How to Logon with different windows username???

Author
Message
John Sinclair
John Sinclair
SSC-Enthusiastic
SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)

Group: General Forum Members
Points: 118 Visits: 164
Ahh... now you mention it, I'm not sure I have actually tried this with sql2005/SSMS. At my last job I used this method... but it was sql2k.

So sorry Ian, you might be out of luck.
stumbling fish
stumbling fish
Valued Member
Valued Member (58 reputation)Valued Member (58 reputation)Valued Member (58 reputation)Valued Member (58 reputation)Valued Member (58 reputation)Valued Member (58 reputation)Valued Member (58 reputation)Valued Member (58 reputation)

Group: General Forum Members
Points: 58 Visits: 143

I connect cross domain with SSMS -- but I have to set up an alias in my SQL Server client configuration.
You can try this:

Follow John's steps to issue the net use command.

Open SQL Server Client Network Utility (start-> run->enter "cliconfg")
1. enable Named Pipes protocol (and move to top in the order)
2. under the Alias tab, add a new alias with:
a. "Named Pipes" selected under Network Libraries
b. enter [servername], for servername (you should see something like "\\[servername]\pipe\sql\query" in the pipe field)

What I haven't figured out is if the order (net use vs. cliconfg) matters. sometimes i've had to delete the connection and the alias and start all over before
I get a good connection).

good luck,


Greg Bray
Greg Bray
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 12
The following also works, although you must manually enter the password:

runas /netonly /user:remotedomain.com\username "Ssms.exe -S sqlserver.remotedomain.com -E -nosplash"
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search