Cannot create new DB in SQL Server 2008 R2 - sql-server-2008-r2

After right clicking on DB and trying to create a new DB this is the error I am getting
What am I missing? I tried re-installing SQL Server 2008 R2 already. Any other ideas?

It seems to me that you have an issues with .NET framework version. AFAIK, SQL Server 2008 needs .NET 2 and I'm not sure how is it working on your machine with .NET 4.0.3.
You can try to execute following query:
select * from sys.dm_clr_properties
and see which version you are using in SQL Server. For more details read here

Related

CanĀ“t restore a database from a backup

I reinstalled SQL Server Management Studio in my computer, then I'm trying to restore all backups.
Unfortunately, I get an error when trying to open one.
What should I do?, How do I set the BackupDirectory in my Settings?
I just installed Sql Server Express 2012 Sp1, and problem solved

Running SQL Server CE 4 Queries with Visual Studio 2012 and SQL Server Management Studio 2012

I have recently upgraded to Visual Studio 2012 and SQL Server Management Studio 2012, however I cannot seem to see how to execute SQL scripts (created by Entity framework) on a SQL Server CE 4.0 database. With VS2010 + SSMS 2008 the Transact-SQL editor would ask for a connection and you could browse to the object, however this option is not available in SSMS 2012.
I have tried to execute the script via the Server Explorer -> New Query window, but I get parse errors. Any clues?
Microsoft got rid of that for SSMS 2012, and suggested to use the integrated tools in WebMatrix instead (from memory, can't find a link for that sorry).
As suggested in that Microsoft Answers post, however, you could use the SQL Server Compact Toolbox, it's pretty effective.
Try using the SQL Server Object Explorer instead of the Server Explorer. That should allow you to do what you wish.

Using SQL Server 2008 R2 Express with C# Express 2010

Wonder if SQL Server 2008 R2 Express edition can be used with C# Express 2010? I'm getting the error below when trying to add 'Service-based Database' item to my projects.
Please note, I've only got SQL Server 2008 R2 Express.
Update 1 - I checked the service (MSSQLSERVER) and it's up and running, I've got no errors during SQL Server 2008 R2 installation either, the PC didn't have any previous versions of SQL Server installed.
The actual error:
Connections to SQL Server database files (.mdf) require SQL Server
2005 Express or SQL Server 2008 Express to be installed and running on
the local computer. The current version of SQL Server Express can be
downloaded at the following URL:
http://go.microsoft.com/fwlink/?LinkId=125883
Thanks.
As the message says, Visual C# Express 2010 does not support connections to SQL Server 2008 R2 Express (which is not an upgrade to SQL Server 2008 Express). You could give Visual Studio 2012 a try.
EDIT: It seems like my above statement is not correct. I've tested it and I got SQL Server 2008 R2 Express working with Visual Studio 2010 Premium. So I guess it should also work in Visual C# Express 2010.
In order for it to work I had to change 'SQL Server Instance Name' found in the options under 'Database Tools' --> 'Data Connections'. The default value is SQLEXPRESS but I changed my instance name to SQLEXPRESS2008R2 during installation.

Database connection aborted

I created my Database using SQL server 2008 R2.
Then tried to attach it using Visual C# Developer 2010.
It gives me an error. Attached is the screenshot
Thank you
Sun
To solve your problem you'll need to upgrade to SQL Server 2008. Express edition is fine, as long as the database is less than 4Gb in size.

Unable to upgrade to Microsoft SQL Server2008 R2 RTM - Express with Advanced Services

I am trying to upgrade my current Express edition to Express with Advanced Services for supporting full-text search.
The current system setup is:
OS version: Windows server 2008 R2 web server 64 bit
SQL Server 2008 R2 Express, SP1, v10.50.2500.0
I have downloaded the SQL Server with Advanced Services. I am unable to upgrade the edition. The installation step goes without any issues and even getting Edition upgrade completed page. But once I click the close this page, an error will pop up.
SQL Server Setup has encountered the following error: Invoke or
BeginInvoke cannot be called on a control until the window handle has
been created.
Can some please assist me here to the right direction?
I could see that the version of SQL Server Express with Advanced Services is 10.50.1600.1. Is this the cause? So should I downgrade the sp1 to normal Express r2 edition before upgrading?
Downloaded link for the Express with advanced services http://www.microsoft.com/download/en/details.aspx?id=25174
I got it working finally!!
I was getting the below error previously. It is a bug and is related to UI. So i have upgraded using the command line that too in QUIET mode to prevent any UI intervention.
"SQL Server Setup has encountered the following error:
Invoke or BeginInvoke cannot be called on a control until the window handle has been created."
Following are the steps i used:-
Downloaded the latest sp1 for SQL Server 2008 r2 with Advanced Services (SQLEXPRADV_x64_ENU.exe) from http://www.microsoft.com/download/en/details.aspx?id=26729
Extracted the SQLEXPRADV_x64_ENU.exe to D:\SQL2008
Open command prompt as "Administrator"
Executed the following commands
D:\sql2008\setup.exe /ACTION=editionupgrade /INSTANCENAME=MyInstance /IACCEPTSQLSERVERLICENSETERMS /FEATURES=SQL,RS /INDICATEPROGRESS /Q
*MyInstance is your sql server instance name
*/INDICATEPROGRESS will show the setup progress to command prompt(For a confirmation :) )
You can follow this doc for more setup parameters
http://msdn.microsoft.com/en-us/library/ms144259(v=sql.105).aspx
Verified the upgrade has been successful.
Unfortunately FULL-TEXT Search feature was not enabled.
So Run the setup.exe as normall(double click) and added "FULL-TEXT Search" feature to the existing instance.
Everything works fine now. Thank you all.
I can verify that this bug and the same resolution also apply to SQL Server 2008 R2 Express SP2 v10.50.4000.0