You might get the following error when connecting to SQL Azure:

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections

The reason is probably because you didn’t put the correct login name for your connection, and this can happen in Visual Studio, sqlcmd, etc.  So if you are logging in using sqlcmd for instance, it should look like so:

sqlcmd -S  svr.database.windows.net -U usrname@svr -P password -dtest –q “select 1”

Note that the entire server name needs to be used with the –S switch, but only the first part of it needs to be added to the username – usrname@svr.  I had to read this a few times before it sunk in.

Lee Everest

 

----------------------------------

'Cause I'm a karate man! And a karate man bruises on the inside! They don't show their weakness. But you don't know that because you're a big Barry White looking mother******! So get outta my face!

karate

 

 

 


Posted in: SQL Server 2008  Tags:
blog comments powered by Disqus

by Lee Everest, M.S.

Poll

Do you use Azure or cloud in your organization?



Show Results

Ads

Search


Month List

Calendar

«  February 2012  »
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011
View posts in large calendar

Tags

Disclaimer
The opinions, code, examples, et.al. expressed herein are my own personal opinions and do not represent my employer's view in any way, shape form, or fashion.  All code for demonstration purposes - no guarantees, either written or implied, are made.

© Copyright 2012 Lee Everest's SQL Server, etc. weblog