9

I have SQL Server 2005 Express installed. Later I upgraded to SQL Server 2008. I don't know much about instances, but when I log into SQL Server 2005 and I log into SQL Server 2008 it is showing the same number of databases. Also, when I create a database in SQL Server 2008 it is showing it in SQL Server 2005.

Any Idea how can I create a separate SQL Server 2008 instance?

If possible please explain step by step.

Thanks

3 Answers 3

26

An instance of a SQL Server database is just a named installation of SQL Server. The first one you install on any given machine typically is the default instance, which has no specific name - you just connect to it using the (local) name or the name of the server machine.

SQL Server Express typically installs as a SQLExpress instance - so the instance is called SQLExpress, and you connect to it using (local)\SQLExpress or .\SQLExpress or MyServerMachine\SQLExpress.

SQL Server instances are totally independent of one another, and you can basically install as many as you like - you just have to make sure to use unique instance names for each. But when you run the SQL Server Installation again, it will show you what instances are already installed, and prompt you for a new instance name for a new installation. No harm done.

Sign up to request clarification or add additional context in comments.

2 Comments

Sometimes all a fellow needs is plain words instead of a big article of technical jargon and statistics. This is where fellow programmers can lend each other a hand. +1
+1 to marc_s and @BGM. I spent about an hour trying to figure this out until I googled the right phrase. ☺
9

Run the install program again, and when prompted whether you want a default or a named instance, specify a named instance with a different name. A default instance make looks like this:

servername

A named instance looks like this:

servername\instancename

3 Comments

Thanks David, Will running Install Program again would not create any other problem to existing databases?
Shouldn't do if you're careful. But as when you do anything worrying on a DB server, back them up first...
Thanks David, I would take backup
4

"you can basically install as many as you like"

There are limitations, like 50 in 2008.

http://technet.microsoft.com/en-us/library/aa174516(v=sql.80).aspx Microsoft does not support more than 16 instances on a single computer or failover cluster.

There are a few more limitations.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.