Cannot add new SQL data tables in Visual Studio 2012 PRO - visual-studio-2012

Don't know what happened but for some reason MS Visual Studio is no longer letting me to add or edit tables in Sever Explorer. When I right click on the "Tables" the only options I got are; refresh and properties. I tried re-installing MS Visual Studio and SQL Express Server but still having that same problem. Have no idea what else to do. I'm logged in as an Administrator on my computer.
IMG: http://i.stack.imgur.com/xpgNL.png

You need to install SQL Server Data Tools. I had the same problem and the option apppeared after I installed SQL Server Data Tools.

Related

Unable to set datasource in VS2010 for reporting service

I was unable to make datasource connection in Visual Studio 2010 for reports. I've already tried refresh many times but still, the list of server name is empty.
How could I solve this issue?
Reporting Service Configuration Manager in my machine is working fine.
I have installed SQL server express advanced and using Visual Studio 2012.

What does "need migration" mean for a SQL Server Database Project in Visual Studio 2012

Sometime opening my solution, the database project is disabled and marked as need migration as below snapshot.
I don't know how to deal with that. What should I do to unlock it?
It sounds like your database project is in the old VS 2010 format, as opposed to the new SQL Server Data Tools format.
In that case you'll need to upgrade the project. There should be an upgrade option if you right-click the project in Solution Explorer.

Visual Studio for Web 2012 - Cant create table in SQL database

In Visual Studio For Web, I created a new SQL Database. When in the database explorer in the past i have been able to right click "Tables" and select "Create new table". I am no longer able to do that with the current setup. See below:
Visual Studio For Web 2012
SQL Server 2012
However, If I install SQL Server 2008r2 instead of SQL Server 2012 the functionality returns within Visual Studio for Web 2012.
Any idea why it will not work as intended using SQL 2012?
With SQL Server 2012, you also need to install the SQL Server Data Tools update:
http://msdn.microsoft.com/en-us/jj650015
Remove the database file in the database connection. Click mouse right button on the xxx.mdf and select the [delete] to delete the original database connection.
Then rebuilt sql server contenction. Click mouse right button on the Database Conection.
Build a new connection for your database

Error opening SQL File from TFS 2012

When I try to view a .sql file from Source Control Explorer in Visual Studio 2012 (TFS 2012) I get the following error message:
TF10187: Could not open document
FilePath\FileName
User canceled out of save dialog
It's only happening for SQL files. The file does exist in the TFSTemp folder and I can double click and open it from there. What do I need to change to fix this error message?
Install SQL Server Data Tools - September 2013 update things will be fine. http://msdn.microsoft.com/en-us/jj650015
For us, this seems to be linked to a .NET Framework 4.6 upgrade and is not limited to SQL files. Users have issues opening files from Source Control Explorer and Solution Explorer.
Delete the contents from the following folders:
C:\Users\<>\AppData\Local\Microsoft\Team Foundation
C:\Users\<>\AppData\Local\Microsoft\VisualStudio
C:\Users\<>\AppData\Local\Microsoft\VSCommon
The first step fixed it in my case, but you can try this if it doesn't: Navigate to the Visual Studio IDE folder in command prompt or windows explorer and Run the following command "devenv /resetuserdata". Ie: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE. To minimize the potential loss of the user’s personal environment, you should consider creating a backup using the Export Settings wizard, and the Import Settings wizard to restore the settings if and when needed.
Note: The side effects of running the /resetuserdata option is that any customizations will have to be reconfigured (ie: TFS server and proxy settings) as well as many, if not all, Visual Studio extensions have to be re-installed.
Source: http://blogs.msdn.com/b/willy-peter_schaub/archive/2010/09/15/if-you-have-problems-with-tfs-or-visual-studio-flush-the-user-cache-or-not.aspx
Looks like you need to uninstall Redgate and then re-install the data tools. This is probably because an add-in was trying to grab the .SQL files and do something with them that VS wasn't expecting.

What about Sql Server Data Tools for VS2012 being incompatible with Sql Server 2012?

In what seems to be a very odd turn, I am trying to create a Sql Database project in Visual Studio 2012, and am getting this nutty error:
And clicking on either link leads to a Page Not Found at Microsoft.com, which is odd in itself.
From the bare text of the error message, which is (for search purposes):
Unable to open Database Project
This version of SQL Server Data Tools is not compatible with the
database runtime components installed on this computer.
Considering that I have Sql Server 2012 Developer Edition installed on the workstation, this seems incredible. I can open or create a database project in VS2008 with Sql Server 2012 DE installed, so why not VS 2012?
I Installed SQL Server 2012 Service pack 1 yesterday and then I started getting the problem you describe in Visual Studio 2012. Not only with database projects; I could not use the SQL Server Object Explorer, not open sql-scripts and lots of other weird database related errors. Always with the same message:
"This version of SQL Server Data Tools is not compatible with ... bla, bla, bla ..."
This solution helped me: https://web.archive.org/web/20150315060703/http://blog.wharton.com.au/2012/11/16/sql-server-2012-sp-1-breaks-sql-server-database-projects/
Hope this can help you too
Update:
With the March 2013 Release it seems you have to also update the SQL Server Data Tools available here See the comments in this post for more details.
Just downloading and installing the SQL Server Data Tools cured this for me;
http://go.microsoft.com/fwlink/?LinkID=274984
This happened to me in visual studio 2012 on an existing project after I installed visual studio 2013. Installing the 2012 tools fixed it as others have said but the link provided in previous answers wasn't the one I needed. the link that did it for me is here
Just in case the downloaded SQL Server Data Tools is not working. You can try to download this version:
SQL Server Data Tools download
I faced a similar issue but in my case its due to version difference.Refer attached image. so once upgrade with right version then prob solved to me. enter image description here

Resources