I'm trying to connect SQL Server 2008 R2 to Visual Studio 2010. It seems that the versions are not consistent, it's a little strange for me since SQL Server is 2008 and VS is 2010!!! Since I'm a new user and cant upload image here you may find a screen shot of the error here:
http://img4up.com/up2/51497019025204797538.jpg
Would appreciate if anyone can help me.
Best Regards
Instead of using "Microsoft SQL Server Database File" use "Microsoft SQL Server"
Then connect using the server address and user information.
Visual Studio 2010 installs SQL Server Express 2008 and your database was created with SQL Server 2008 R2. You'll need to upgrade to SQL Server Express 2008 R2 to open this database.
You shouldn't be using the file option if the instance of SQL Server already exists and you plan to create a persistent database there (or use an existing one). You should be selecting a proper instance of SQL Server.
Follow the same steps as iamkrillin/Stecenko Ruslan suggested., If you had provided a username and password during the installation of SQL Server R2 , then choose the radio button "Use SQL Authentication" instead of "Use Windows Authentication"., in the "Add Connection" dialog of Visual Studio 2010.
Related
I am struggling to find information on if it is possible to use command line arguments for SQL Server 2008 R2 Express when it's deployed as a prerequisite with an app. I would like to configure SQL Server Express for network connections and login password information.
I am thinking that that my objective probably can't be achieved with click once. Could I achieve this aim with the InstallShield setup project type?
I usually use Microsoft Visual Studio 2010 for system development and I always use the built-in SQL Server Express in Visual Studio to create and manage a database.
Currently, I'm learning Microsoft SQL Server Management Studio 2008 to create and manage a database.
I got some questions here:
What is the differences of the database in built-in sql server in Visual Studio & SQL Server Management Studio? Such as features and limitations.
Will it be better to create and manage database in SQL Server Management Studio instead of the built-in visual studio database?
I encounter a problem which is unable to upload my built-in Visual Studio SQL database to the web server in the past. So is creating database in SQL Server Management Studio much ideal for uploading database file to web server?
Thanks in advance.
Te latest versions of SSMS say "powered by Visual Studio" so your question could be moot. I think using SSMS gets you slightly closer to the database server itself -- which if you are doing admin too may be a good thing.
On my PC with Windows 8 there is Visual Studio 2012, SQL Server 2012 Express (x64), SQL Server 2012 (x64).
Visual Studio 2012 works perfectly with SQL Server 2012 Express and SQL Server 2012. It easily adds sqlexpress to data connections of server explorer by name .\SQLEXPRESS.
But now I'm trying to add SQLEXPRESS in Visual Studio 2010. But it cannot find it.
I thought it couldn't because of version of SQL Server 2012 Express. So I've tried to install SQLEXPR_x64_ENU (SQL Server 2008 Express), but installation stacks on "Setup Support Rules". There appears error "Performance counter registry hive consistency"
I don't know should and can I install SQL Server 2008 Express. Or the solution is somewhere else?
P.S. When I'm trying to add SQL Database Server to App_Data (asp.net mvc3) there is an 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..."
So I think I should edit register of Windows to let know Visual Studio 2010 where SQL Server Express is situated...
What are your suggestions?
Did you install Visual Studio 2010 Service Pack 1 prior to installing SQL Server Express 2012 (or at all)? See this article: http://www.formatyourbrain.com/sql-server-express-2012-visual-studio-2010/
The problem I have is that I'm unable to open my mdf file in Visual Studio 2010. I installed VS2010 along time ago, but just installed SQL server 2008 R2 few days ago.
I made the file in VS2010 and then attach it to SQL server in Management Studio to run a script I have to create all tables and such.
I then detach it in Management Studio and try to view it in VS2010 and get an error telling me that I cannot open database version 661. I can only go as high as 655.
I know this is because VS2010 is using SQL server 2008, but Management Studio is SQL Server 2008 R2.
How can I make VS2010 compatible with SQL Server 2008 R2?
You simply need to upgrade the local version 2008 Express to R2. You'd be able to open your file after that.
I had this problem too, but my problem was solved when I did this:
When you are opening SQL Server Managemnt Studio, in the connect to server window, type "\SQLEXPRESS" after the server name (your server name\SQLEXPRESS), then attach your database. When you detach it, it is compatible with VS2010. I hope this helps you.
I have Database project which I'm unable to load in VS2008 and I have SQL Server 2008 Express edition installed on my machine..
I get following error message, when I try to load
Database projects require a connection
to a local instance of Microsoft SQL
Server 2005 for design-time
validation. To perform this operation,
you must open the Tools menu, click
Options and specify an instance of SQL
Server 2005 that is running and to
which you can connect in the Database
Tools, Design-time Validation Database
property page. When that is corrected,
you must then refresh or reload the
database project.
Any suggestions/update to solve this issue?
You don't mention if you have VS2008 SP1 installed, but this is a requirement for SQL Server 2008 support in Visual Studio (KB956139)
Did you verify your instance name is correct? Tools > Options > Database Tools > Data Connections -> SQL server instance name: SQLEXPRESS (or the name you chose during install)
Does your instance accept remote connections? (mine always does, not sure if this is required) (Source)
I know this is an old thread, but...
Were you able to get this combination working? Visual Studio 2008 with SQL Server Express 2008? I had the same issue that no matter what I entered into the instance fields in the Tools->Options->Database Tools boxes, it said I did not have them entered.
From what I could find on the interwebs, everything indicated that SQL Server Express 2008 should work with Visual Studio 2008 as long as you have the SP1 installed. I tried reinstalling SP1, but received the same error - "no instance specified".
So I downloaded and installed SQL Express 2005 x64 and specified a new instance name, SQLEXPRESS2005. Then I plugged that into Visual Studio 2008's settings and it worked right away.