SQL Server 2008R2 Express and LocalDB on same machine - sql-server

I am trying to evaluate LocalDB. My computer already has SQL Server 2008 R2 Express on it (in addition to SQL Server 2008 R2 Standard and SQL Server 2008 Standard).
When I try to install LocalDB, it asks for confirmation to upgrade. So it is trying to upgrade by 2008 R2 Express to Localdb? And I hit no and didn't proceed further.
Can someone please point me to links where they explain what exactly happens? Will my 2008 R2 Express be gone forever? All databases will be upgraded to LocalDB? There will not be a Express service anymore?
I just want to use localdb as an addition, not as a replacement. Is this possible?

How are you trying to install LocalDB? If you do it via SSDT (SQL Server Development Tools), it won't touch any of your other instances of SQL Server. Also, remember that LocalDB is not an instance of SQL Server in the sense that your other instances are. It's essentially a process that spins up when needed (an attempt is made to connect to it) and shuts down when not needed. Therefore, it's not competing with your other SQL Server instances.

Related

Migrating from SYBASE SQLAnywhere 11.0 to SQL Server 2008 R2 Express

Hello everyone i have got a project to migrate from SQLAnywhere 11 to any new relational databases for our ship crew web application.The reasons for migrating is cost and support issues.I will need to choose a database which is free and has all features as SQLAnywhere 11.0.
Here is the list of Questions i want to know about SQL Server 2008 R2 express.
Do we have any migration utility to move from SQL Anywhere 11 to SQL Server 2008 R2 express.
How easy is deployment of SQL Server 2008 R2 express from install shield MSI.
Alternative methods to migrate from SQLAnyhere 11 to SQL server 2008 R2 express.
Do management tools come free with express addition. I should be able to defragment and restore the database.
Thank you
There is a SQL Server Migration Assistant (SSMA) for Sybase (v 5.1 was released just this week), but I am not familiar enough with SQL Anywhere to assure you whether, or how well, it works:
http://blogs.msdn.com/b/ssma/archive/2011/07/12/announcing-sql-server-migration-assistant-ssma-v-5-1.aspx
Deployment of SQL Server Express is relatively easy, but I haven't done any work recently incorporating this into a more complex installer.
If you use Express w/Tools or Express w/Advanced Services, they come with Management Studio Express. You can also download this separately:
http://www.microsoft.com/download/en/details.aspx?id=22985
Note that Management Studio Express is missing some of the SSMS functionality, such as managing agent, so if you have to manage other editions you may be better off investing $49 (or less, depending on vendor) into the developer edition, which comes with the full version of SSMS.

SQL Server Multiple Instances License

Since SQL Server Express is free to use, If I install two instances of the same version on a single CPU machine, will there be any licensing issue even though it is free?
None.
I currently have a VM that has:
SQL Server 2005 Express
SQL Server 2008 Express
MySQL 5.1.49 Community
Oracle Express (10g)
I don't recommend having them all run on start up, unless you actually need to access them.

SQL Server 2005 Express installed after SQL Server 2008 Express

I already had the SQL Server 2008 Express engine installed (just the bit that comes with VS 2008 Express). I then installed SQL Server 2005 Express followed by SQL Server 2005 Management Studio Express, all of which seemed to install OK without any errors. However, when I run SQL Server 2005 Management Studio and enter the Server name as machine name\SQLEXPRESS and click Connect I get the message:
"This version of SQL Management Studio Express can only be used to connect to SQL Server 2000 and 2005 servers".
Presumably the instance name SQLEXPRESS refers to the 2008 version, is the 2005 instance a different name, or is it a different problem? Any ideas please, thanks
You are right that the SQL 2008 Express took the 'SQLEXPRESS' instance name. The 2005 toolset cannot connect to 2008. You need to find out the isntance name under which the 2005 VS installed it's Express. Easiest way is to start the Service Manager (run services.msc)and see the instance name there.
Run "services.msc" and check the service name that is running your SQLServer 2005 Express instance. You should use it, and not "SQLEXPRESS" if it is running your SQLServer 2008 instance.
Btw, SSMS 2008 works beautifully with 2005 instances.
Check this link to download SSMS Express 2008. I'm not sure code completion will work with SQLServer 2005 tho.

SQL Server not visible in Server Explorer

If there is a SQL Server 2000 installed on a Server, and i have a VWD Express 2008 on a PC on that network, what could be the possible reasons for the SQL Server not being visible in the Server Explorer of the VWD ? Both PC's are on the same workgroup.
I also tried keying in the name of the server, and the Login and password, but the databases in that server do not appear in the Dropdown list.
Any suggestions helpful.
Regards.
Does Visual Web Developer Support SQL 2000? As per my knowledge it does not. Why not use SQL 2005 Express or SQL 2008 Express.
Also you can download SQL Management Studio Express (05/08), Install it on the PC with Visual Web Developer & try to connect to SQL 2000 Machine. If it cannot, It will throw an error which will help you a little more to know the reason.
One last thing (very fundamental..) Is your SQL 2000 running?

SQL Server Express 2008 Install Side-by-side w/ SQL 2005 Express Fails

When I try to install a new instance of SQL Server 2008 Express on a development machine with SQL 2005 Express already up and running, the install validation fails because the "SQL 2005 Express tools" are installed and I'm told to remove them.
What exactly does that mean?
After reading this article:
http://www.asql.biz/Articoli/SQLX08/Art1_5.aspx
I uninstalled the 2005 version of the SQL Management Studio but received the same error from the 2008 installer during my follow-up attempt.
Updates
1) Uninstalled the SQL 2005 Management Studio only. Received the same error from the 2008 install.
2) Removed all SQL 2005 common components. Received the same error from the 2008 install.
3) Installed the shared components from the SQL 2008 installation program. Received the same error from the 2008 install when trying to install the new SQL 2008 instance.
4) Uninstalled SQL 2008 components, rebooted, re-installed SQL 2005 Management Studio from installation media, rebooted, un-installed SQL 2005 Workstation Components from Control Panel, re-booted.
Installation of SQL 2008 is now proceeding as it should.
Seems likely that if I'd re-booted after update 2 above things would have gone more smoothly. :-(
Although you should have no problem running a 2005 instance of the database engine beside a 2008 instance, The tools are installed into a shared directory, so you can't have two versions of the tools installed. Fortunately, the 2008 tools are backwards-compatible. As we speak, I'm using SSMS 2008 and Profiler 2008 to manage my 2005 Express instances. Works great.
Before installing the 2008 tools, you need to remove any and all "shared" components from 2005. Try going to your Add/Remove programs control panel, find Microsoft SQL Server 2005, and click "Change." Then choose "Workstation Components" and remove everything there (this will not remove your database engine).
I believe the 2008 installer also has an option to upgrade shared components only. You might try that. Good luck!
In my case even after uninstalling all 2005 related components it didn't worked. I had to resort to a brute force way and remove following registry keys
32 Bit OS: HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\90
64 Bit OS: HKLM\Software\Wow6432Node\Microsoft\Microsoft SQL Server\90
I had to unistall the Workstation Components and SSMS Tools Pack (SSMS Tools Pack is an add-in for Microsoft SQL Server Management Studio (SSMS) including SSMS Express.)
Installation of SQL 2008 is now proceeding as it should.
The problem is that SQL 2008 MS has a bug where connecting to a remote server (say like a service provider collocation) it will always try to open the fist db in the list, and since the possibilities of been ur db the first on the list are really low, it will throw and error and fail to display the list of dbs... which using sql 2005 management studio it just works.
Wished I could use SQL 2008 MS, but looks like as far I connect to remote SQL 2005, SQL 2008 is out of the question on my dev machine :(
Just Remove the the Workstation Components from Add/Remove Programs - SQL Server 2005.
Removing Workstation Components, SQL Server 2008 installation goes well.
Simply remove the Microsoft SQL Server Management Studio Express 2005 from control panel
N.B. These notes are for SQL Server Express 2008 R2 (so Microsoft still haven't made this any easier). I also realise that I complicated things by installing 32-bit SQL Server Express 2005 and 64-bit SQL Server Express 2008.
I followed the steps by Josh Hinman above. Uninstalling the SQL Server Express 2005 "Workstation Components" was not enough. I required an uninstall of the 2005 Management Studio as well.
I also tried the Upgrade route that Josh Hinman suggested by clicking on the 'Upgrade from SQL Server 2000, SQL Server 2005 or SQL Server 2008'. This route never gave me the option of installing the components side-by-side it just went straight through the process of upgrading from 2005 to 2008. It completed successfully - but hadn't actually done anything. Thankfully though it hadn't harmed any existing database instances. So be warned trying that route.
If you currently have Red Gate SQL Toolbelt, you will need to unistall that too before continuing. Somehow it adds a reference to the 2005 version of the SQL Management Studio.
I'am trying to install SQL SERVER developer 2008 R2 alongside SQL SERVER 2005 EXPRESS,
i went to program features, clicked on unistall SQL SERVER 2005 EXPRESS, and only checked, WORKSTATION COMPONENTS, it unistalled: support files, sql mngmt studio
After that installation of sql 2008 r2 developer went ok....
Hopes this helps somebody
I also had to remove the SMSS before it would get past that step.

Resources