views:

35

answers:

2

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

+1  A: 

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
David M
Thanks David, Will running Install Program again would not create any other problem to existing databases?
Jordon
Shouldn't do if you're careful. But as when you do anything worrying on a DB server, back them up first...
David M
Thanks David, I would take backup
Jordon
A: 

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.

marc_s
Thanks Marc, It was helpful.
Jordon