SQL Server 2005 and SQL Server 2008 Coexisting in Windows 7 machine - sql

Some SQL Server 2005 and 2008 questions.
1) Can they coexist on the same Windows 7 machine without issues?
2) Can you attach and run 2005 databases to SQL Server 2008 without compatibility issues or is this a no go?
3) Does SQL Server 2005 even work on Windows 7?

Yes, both can coexist on the same machine without issues.
Yes, however, once you attach a 2005 database into a 2008 instance, you have upgraded it to 2008 never to go back to 2005 unless you export the data into some universal format. You can however, have both engines running simultaneously and can use either set of management tools to see either database (although some features will only work with the 2008 management studio working against the 2008 database)
Yes. Both sets of tools (including Management Studio) and services can coexist on the same machine (I have this very setup). The only thing you cannot do is to have both engines listening on the same port. Thus, one of the two will have to be a named instance.

1) Yes.
2) You can view 2005 database under 2008 management studio, not sure about hosting them under a 2008 instance though. I'm fairly confident they do, but not sure if it's native or via converting to a 2008 database.
3) Yes.
Note that you can't have 2005 MS and 2008 MS (management studio) installed on the same OS. This was based on my experience a long while ago when 2008 first came out, I got an error message stating that I couldn't install it because of a previous version (2005) being installed, or something akin to that. Turns out it has changed.

Related

Updating version of SQL Server 2008 Management Studio

I am currently running SQL Server 2008 Management Studio (version 10.0.1600.22) and I want to update due to a bug in this version.
All the documentation I have found so far has been for updating to SQL Server 2008 R2 Management Studio and SQL Server 2008 Management Studio Express which I believe are different. Is that right?
I have also found links for updating SQL Server which I once again believe isn't what I'm looking for as I only want to update the client side.
Is there a way (or link) where I can update SQL Server 2008 Management Studio without having to reinstall it?
I believe the management tools for SQL Server 2008 R2 is backwards compatible with SQL Server 2008.
If you want to keep your database instance SQL Server 2008, just run the setup on the installation DVD and choose Maintenance -> Repair. At the screen to select the instance, there is an option to select "Repair shared features only". I don't have SQL Server 2008 DVD, only 2008 R2 DVD, but I believe the 2008 version works the same way.
Or if your computer doesn't have SQL Server database instance, you can do a fresh installation and choose only management tools. Example screen shots (for 2008 R2): http://it-n-careerz.blogspot.com/2013/04/how-to-install-sql-server-management.html
Good luck!

SQL server version 655

what update i need to install for version 655 in vs studio 2010 for the sql server.
Can anyone tell me what i need on my computer when creating a database using sql on vs studio 2010? I need to use version 655 cos thats the version being used on Uni Computers
SQL Server 2008 (655) and SQL Server 2008 R2 (661) are not the same thing (though it is a common misconception - a lot of people think they're the same because Microsoft made a terrible, terrible, terrible naming decision, making 2008 R2 sound like a service pack).
You can't attach/restore a 2008 R2 database to a 2008 instance, period. Though there are several workarounds (that also apply for attaching 2012 -> 2008, 2008 -> 2005, 2008 R2 -> 2005, etc). You can either upgrade the engine you're trying to connect to up to 2008 R2, or you can extract the schema / data from the database using generate scripts wizard, import/export data wizard, SSIS, or 3rd party tools like Red Gate SQL Compare (for a full list of alternatives see this blog post).
This comes up extremely often, did you search for "sql server version 661 655"? I came up with a whole bunch of hits using this search term and some slight variations, all on this site and dba.SE:
Failure attaching SQL Server 2008 database to SQL Server 2005
Cannot attach 2008 R2 database to 2008 instance
Database restore error
Create Database in SQL Server 2012, Script and Use in 2008?
Cannot restore backup on SQL Server Express
How to automatically restore a SQL Server 2008 R2 backup file
Database "cannot be opened because it is version 661" when attaching .mdf file
Use database 661 version with SQL Server 2008
SQL Server: Attach incorrect version 661
https://dba.stackexchange.com/questions/21525/restoring-an-sql-server-2012-mdf-to-sql-server-2008
https://dba.stackexchange.com/questions/20588/restore-sql-server-2012-backup-to-a-sql-server-2008-database
If you are developing .NET based apps in visual studio 2010, then they will typically support all versions of Microsoft SQL Server. That does not mean you install SQL server INSIDE of visual studio, just that you can connect to a SQL Server instance running somewhere.
If you are asking "Where can I get a copy of SQL Server that my university is using?", that depends. For development, you can use a SQL Express installation on your local machine that matches the major release of SQL (2005, 2008, 2008R2, 2012), or you can request the university (or someone else) grant you access to an existing SQL instance.

SQL server setup and test

I have some basic experience using sql server 2008 R2 (server management studio). I was wondering if the express version can be installed and used on a non server computer (os = MS XP). I have a simple web app that I want to test/practice connecting to the db, and performing simple insert/delete/update commands on a table. Can this be done?
Thank you
Yes, SQL Server Express can be installed on any Windows operating system, including the "client" OSes, except Windows CE of course, but that's something else.
You can use SSMS against SQL Server Express too, although some features of SSMS will be disabled becuase the server doesn't support them.
Yes, it can be done.
Supported operating systems: Windows 7, Windows Server 2003, Windows
Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP
Check this:
Microsoft SQL Server 2008 R2 RTM - Express
Microsoft does offer SQL express, which probably offers more functionality than you would probably need right now.
http://www.microsoft.com/sqlserver/en/us/editions/2012-editions/express.aspx
Not only would you need MSSQL, you would need to have a current version of IIS installed. Is there a reason you are particularly interested in MSSQL? There are other "package" installations available of PHP/MYSQL which are more simple in setting up such as XAMPP:
http://www.apachefriends.org/en/xampp-beta.html

SQL server 2005 instance not found

I was using SQL server 2005 express edition and, therefore was limited by a data base 4 giga size. I decided to install SQL server 2005 developper (64bits) in order to be able to go beyond 4 gigabytes data base size.
The installation program run with no error message on a Windows 7 64 bits, but did not install the SQL server Management Studio. After a couple of investigations, I found out and run the installation program on CD2 SqlRun_Tools.msi which installed the missing tools. I then installed the SQL server SP3 package.
When I opened the Management Studio, the 3 instances of SQL 2005 Express where there but no SQL 2005 developer edition (new) instance was shown.
I restored the system, then removed each one of the SQL server Express instances, then fully reinstalled the SQL 2005 developper edition with its default instance name, but again no SQLserver 2005 Developper instance was listed on the SQL Server management studio. Surprise! the 3 instances from SQL 2005 Express edition (which were all previously uninstalled) were still there, but not accessible.
I have tried to access the new SQL server Developper through my code but the instance has not been found either.
All connection strings have been working for a long time with SQL Express edition and are correct.
I have also checked that SQl server and SQl browser were started.
I would really appreciate your help.
Thanks a lot.

Do I have both SQL Server 2005 and SQL Server 2008 installed?

When in 'SQL Server Configuration Manager' I see, under 'SQL Server Services', 2 items that look like SQL Server's:
SQL Server (sqlexpress)
SQL Server (mssqlserver)
Does that mean I have 2 versions installed at the same time? The 'SQL Server (mssqlserver) is currently stopped).
You have two instances. They might or might not be the same version (meaning 2005/2008).
Express is just an SKU / edition from the myriad of different editions.
You can have the same version or multiple versions/SKUs installed as different instances on the same machine.
So unless someone wittingly set up a new instance with the name "sqlexpress", you probably have two kinds of products installed (both can be 2008 or both can be 2005 or they can be different - it is just that one of them is presumably the Express SKU while the other is say Standard.)
You can get more information on the instances by using ##VERSION.
It looks like you got SQL Server Express installed with Visual Studio and then later installed SQL Server 2008. I've done this before and the best solution I found was to completely uninstall SQL Server Express and SQL Server 2008. Remove all the files in the Microsoft SQL Server directory in Program Files, then reinstall SQL Server 2008. If you still have problems getting the 2008 instance to be the default, you may also need to uninstall Visual Studio.
In the future, if you're going to install the development (or other) version of SQL Server locally, I suggest making sure you install it before Visual Studio. The VS install won't install SQL Server Express if it detects an existing SQL Server instance on the system.
BTW, you can verify if this is true by using the Add/Remove Programs Control Panel item.
SQLExpress is the light/free edition, usually used for developers or very lightweight applications.
MSSQLServer is the full blown SQL install.
So yes you have 2 "SQL Server" installs, but they are different products, I can't say which versions based on your provided data.
You have two SqlServer instances installed on your system. One is SqlServer Express Edition and the other one a Sql Server. I can't say which version or edition.
Maybe you can find some more information in the registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft).
I'd vote against removing either one--SQL server does fine with multiple instances and they are good for different things. For example, lots of open source projects presume a local copy of sql express at .\SQLEXPRESS for development use. Whereas you can't write analysis service stuff with SQL Express.
Or, its not a problem. Those aren't the droids your looking for. Move along.