Not able to modify tables on remote SQL Server 2012 database - visual-studio-2010

I have Visual Studio 2010 installed on my Windows 10 PC. My website is on a shared hosting environment and utilizes a SQL Server 2012 database.
The hosting provider doesn't have web interface to manage database so I connect from the Visual Studio 2010 itself for management purposes.
Right now I am able to connect to the database and run my website locally but when I attempt to open table definition, I get this error:
This server version is not supported. Only servers up to Microsoft SQL Server 2008 are supported
Before upgrading to Windows 10, I was able to edit/add tables from Visual Studio 2010 Server explorer but now limited to read purposes only. This Windows 10 and Visual Studio is completely fresh install with nothing kept or saved from earlier windows version. I don't remember if I installed any SQL Server 2012 tools in earlier windows for managing the database from Server Explorer in Visual Studio.
I have searched a lot and even tried installing SQL Server 2012 Express which failed. Now, I am downloading SQL Server 2012 Management Studio from the same link to see if that will work. It will download in an hour or so but I don't remember downloading it earlier so wanted to ask you what can be done.
All I want is the ability to add/modify tables of SQL Server 2012 database from Server Explorer in Visual Studio 2010. Please tell me how can that be done and which tools are required for this purpose.

Related

One development machine with multiple versions of SSDT for BI development

With the announcement of VS2013 i need to be able to have the following:
-Main Development IDE: Visual Studio 2013
-Integration Services with SQL Server 2008 and SQL Server 2008/R2.
-Integration Services with SQL Server 2012.
Unfortunately i cant upgrade all my SQL Servers to the latest release so i have to maintain a diversified dev env in my laptop.
What i need to do in order to have all the above in one machine?
Probably this is the answer :(
Interoperability and Coexistence (Integration Services)
Also a post made yesterday specifically for SQL Server 2012/2014
SQL Server Data Tools – Business Intelligence downloads
Separate install for each SSIS version i need to develop for.
So it may be like:
Full Visual Studio 2013 for all development except SSIS
VS2012 Shell for SSIS SQL Server 2012
VS2008 Shell for SSIS SQL Server 2008 and 2008/R2

Differences: creating sql database in visual studio & sql sever 2008

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.

what is the proper install order for visual studio 2012 and SQL Server Management Studio 2012 on win7?

I am preparing to do some web development against a SQL Server 2012 server on a fresh install of win 7 x64 development VM.
What should I install first, visual studio or SSMS?
This is my favorite order:
Windows update before installing anything.
SQL Server 2012
If you have SP1 integrated with you ISO file, skip to step 4.
If you have both SP1 and U5 integrated with your ISO file, skip to step 5
Unselect SQL Server Data Tools during installation (step 8 will install the VS 2012 templates instead of these old 2010 ones)
SQL Server 2012 SP1
SQL Server 2012 SP1 U5
Visual Studio 2012
If you have U3 integrated with you ISO file, skip to step 7.
Unselect SQL Server Data Tools during installation because we'll install the updated bits in step 7
Visual Studio 2012 U3
SQL Server Data Tools - BI (adds BI project templates to Visual Studio 2012)
SQL Server Data Tools (allows you to manage SQL Server 2012 from within visual Studio 2012)
Windows Update
ReSharper
StyleCop
SQL ToolBelt
Neither - you can install them in any order. While you do get the occasional question about it in various different forums, I have done this and never had an issue.
SQL does have a Visual Studio dependency (formerly) called BIDS, but Visual Studio can install over/around this no problem.
Note that this answer is correct when using the initial SQL 2012 release (as that was the latest edition when this question was asked). Subsequent releases may have changed things. I have made this answer CW to encourage others to edit it as necessary to include info about later versions.
I don't know if there is a different way for VMs but on Windows we used to install SQL Server first, as some of the configurations of Visual studio conflict with SQL Server configurations if it was installed before
No direct dependencies found between the two components, installing Visual Studio first then ensure that .NET Framework installed properly is my approach, then installing SQL Server, but in all cases the SQL Server installation installs the following software components - 2008:
NET Framework 3.5
SQL Server Native Client
SQL Server Setup support files
My approach:
Visual Studio 2008.
Visual Studio SP1.
SQL Server 2008.
Run Windows updates.
Useful question here

Visual studio wont open mdf file

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.

Unable to Load Database project in VS2008

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.

Resources