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.
Related
Hello I have installed management studio 2005(x64) alse I have microsoft sql server 2012 in my pc. But cant connect server due to dont know server name. (if sql server 2008 express were in my pc, default servername would be "./sqlexpress")
How can I connect server in my own pc ? And also I wanted to know;
Should I use another management studio ? can there be a problem use ms2005 with sqlserver 2012 ? Do you recemmond other studio ? (with exp. reason please)
Thank you anyone who just feel to help.
At least one of them must be a named instance. So, open the SQL Server 2012 version of SQL Server Configuration Manager, and see what the services say (and make sure the one you want to connect to is started - you can right-click to do so). Mine are all named instances:
So, if I wanted to connect to the SQL Server 2008 SP3 instance, I would use any of the following to connect:
.\SQL2008SP3
LOCALHOST\SQL2008SP3
(local)\SQL2008SP3
YOURMACHINENAME\SQL2008SP3
127.0.0.1\SQL2008SP3
The exception is if the subtext has (MSSQLSERVER) - this is a default instance rather than a named instance. In that case you would just connect to YOURMACHINENAME or ..
Also, no, you should not use Management Studio 2005 to manage SQL Server 2012 instances. In fact I think the above Configuration Manager won't show your 2012 instance. So before you do anything, you should uninstall the 2005 version of Management Studio, and go get the 2012 SP2 version here:
http://www.microsoft.com/en-us/download/details.aspx?id=43351
Click Download, the file you want is SQLManagementStudio_x64_ENU.exe. The nice thing about this version in 2012 SP1 is that it's the first version of SSMS Express that is actually fully functional and license free. Previously you had to live with limitations like no SQL Server Agent management, well those restrictions are now all gone.
(When you instal the client tools, this should also give you a new version of Configuration Manager, if your previous installation of SQL Server 2012 did not provide that for some reason.)
I have installed VS 2012 Professional, and later SQL Server 2008 SP1. After that I am trying to install SQLManagementStudio_x64_Enu. But I did get the option to set instance name [Database Engine Service]. Properly I have to the set option like in the image. But I have options like :
Instance Feature
Shared features
1. Management Tools-Basic
2. SQL Client Connectivity SDK
Redistributable Feature
If I select all checkboxes under Shared Feature, SQL Server installed successfully.
But while opening SQL Server Management Studio in server name list is empty.
How to use SSRS with sql server 2008 R2 and Visual Studio 2012 installed system.
SQL Server 2008 R2 BIDS integrates only with VS 2008. As detailed here on MSDN:
"Business Intelligence Development Studio is Microsoft Visual
Studio 2008 with additional project types that are specific to SQL
Server business intelligence."
If you already have VS 2012 installed, then BIDS for 2008 R2 (VS 2008 Shell) can install side-by-side with VS 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.
How do I upgrade my SQL Server 2008 Express with Advanced Services to SQL Server 2008 R2 Enterprise edition?
Please do let me know.
Thanks,
Vivek
click on the installer, and on one of the tabs, there is an edition upgrade option.