October 6, 2010 at 8:10 am
I am taking a Database Programming course. At my school they named the SQL server ".\SQLExpress" and the Instructor asked us to name our server at home with the same name, so we don't have to change the connection string to the server when we work at home or at school.
I am having a hard time to name my serve with this name. the setup installation complains about the use of invalid characters.
Any help about the topic?
Thanks!
October 6, 2010 at 8:27 am
normally the '\' deliniates the server name and the instance name so i can't see how you could have a '\' in an instance name,. and if you could it wouldn't be a good idea.
perhaps the instructor wanted you to name it "SQLExpress" (no quotes). As this will appear as Servername\SQLExpress
October 6, 2010 at 8:28 am
myavast (10/6/2010)
I am taking a Database Programming course. At my school they named the SQL server ".\SQLExpress" and the Instructor asked us to name our server at home with the same name, so we don't have to change the connection string to the server when we work at home or at school.I am having a hard time to name my serve with this name. the setup installation complains about the use of invalid characters.
Any help about the topic?
Thanks!
Hi
I think the Instructer means just name it "\\YourServerName\SQLExpress", or just "SQLExpress". The dot (.) is often used as a synonym for "local server" when connecting to a SQL Server instance, so ".\SQLExpress" would connect to the local server and the "SQLExpress" named instance.
Duncan
October 6, 2010 at 8:32 am
Looks like steveb just beat me to it!
He's obviously right in that you can't include the server name in an instance, so "SQLExpress" should do it.
October 6, 2010 at 11:03 am
The quotes are not included in the name, the actual name is .\SQLExpress. I think you didn't see the (.) before the \ I think this is what causing the problem.
October 6, 2010 at 11:19 am
I suspect, like Steve, what he really wants is an instance named SQLExpress (which is the default for the express version of SQL). . means local server. If you all name your servers with the instance name SQLExpress, then the connection strings (which will read Data source = .\SQLExpress) won't have to change.
For eg, I have an instance on my desktop named SQL2008. I can connect to it using .\SQL2008 or Myrlin\SQL2008 (where Myrlin is the name of the computer)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
October 6, 2010 at 11:41 am
You got it right!! I will try that and let you know how it came out.
Thanks for your help!
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply