views:

638

answers:

2

I have a client that has a SQL Server 2008 installation. They have given me a windows domain username/password on their domain, however, my workstation is not on their domain. I'm trying to connect with Management Studio on Vista Professional.

I've tried using the "network accounts" under "user accounts", and this works for other resources (such as exchange, TFS, and file servers) but I have had no luck with this approach for SQL Server.

Also, I'm unsure if this is a concern but this is a dev instance on their database server. So the connection string is "Computer_Name\Instance".

A further question: how could I get Integrated Security for asp.net through cassini/Visual Studio 2008.

So far my only solution is to cave and use a SQL Server Login. I'd like to know if I have any other options.

A: 

The detail is a bit unclear, but if your workstation is not on their domain then are you entering the username as 'domainname\username' ?

james
I wish. In Management Studio if you choose windows credential there is no place to enter a credential. Nor do you get prompted.
itchi
http://www.codeproject.com/KB/database/NorthwindAndPubs_2008/NorthwindAndPubs_2008_fig1.jpg for an example of the login screen. Notice how username/password are greyed out when windows authentication is chosen
itchi
+5  A: 

The answer to this is here. Very useful in the situation you mention.

Basically, you need to use the /netonly /user:domain\username switches when opening management studio, like this:

runas /netonly /user:domain\username “C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe”

Hope that helps.

Deeksy
Haven't tested this with Visual Studio 2008, but it could work there as well, in answer to your other question.
Deeksy
awesome.. and funny that blog post is less than a month old. I'll report back here tomorrow if this fixes VS 2008. I'm unsure though only because the web server may run as a different process.
itchi