Can't add an existing database to a project - visual-studio-2012

I have a SqlServer Compact Edition database that I developed and use in a project. I want to use the database in a new application. I create a new project, click Project|Add New Data Source. I choose Database/Dataset. On the "Choose your Data Connection" screen, I click the New Connection button. On the "Add Connection" screen, I select my Data Source, SQL Server Compact Edition, and click Browse under Connection Properties. At this point, I get a message that Visual Studio has stopped working, and is restarting. It then shuts down and restarts.
I have used a database created in one application in another several times without a problem.
I have uninstalled VS via Programs and Features, and reinstalled it, and it still does it.
I have tried vs_ultimate.exe /uninstall /force. That does not give me the option to uninstall, it just reinstalls VS.
I'm using VS 2012.
What's going on?
Thanks

Related

How do I debug a visual studio project in IIS instead of IIS express?

This deals with the "debug in web browser" button specifically.
I can debug a running project by clicking "attach to process" and that works... sort of. It does not allow us to debug javascript or html inside visual studio, and that is what we want to do. Currently we are forced to debug in the web browser's tools, and that is less than ideal.
We are using visual studio 2017 community.
Each of our dev computers has a cloned client database on it. Publishing locally to that works fine. What i would like to happen is that the debug (play) button ALSO hook to that database. Currently it is creating a new blank database in IIS. I am positive this is possible, but i do not know how to configure it.
The resulting answer is silly. The main connection string in the project needed to point at the sql database, and that's it. We alias it out for each client, but evidently the run button doesn't do the aliasing.

How to get latest or commit with TFS server from Windows Explorer?

My need
Currently I have to open Visual Studio to make a get latest or a commit pending changes.
I want to do that the same way with TortoiseSVN right in Windows Explorer.
What I have tried
I made google research and comes down to using the tool called TFS 2012 Power Tools
Someone also mentioned about this issue here
Though after installed, I got nothing working as espected. Wondering did I do wrong then...
I'm using Windows 8.1 and Visual Studio 2012 Web Express.
Question
How should I do to install it properly and get it work after all then?
Assuming that when you installed the power tools you enabled shell integration and then logged out/back in to active them, then you need to do a few things:
Do an initial 'get' from TFS using Visual Studio Team Explorer and make a note of your workspace folder.
In Windows Explorer, right click that workspace folder. You should see the context menu items appear.
Most people having trouble with the context menu appearing have forgotten that to log out and log back in, as Windows Explorer needs to be restarted to pick up the new shell extension.

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.

Cannot add new SQL data tables in Visual Studio 2012 PRO

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.

Execute stored procedure from Visual Studio 2012 Database project

I have imported a SQL Server database into a Visual Studio 2012 database project. I am able to see the tables and stored procedures just fine. I would now like to execute stored procedures from that database within Visual Studio. Does anyone know if this is possible and if so how?
I know I could simply use Server Explorer but it would be desirable to work exclusively in the database project as that is the one synced to our version control system.
If you're using SQL Projects, you can open the SQL Server Object Explorer within SSDT and look at the database connections for (localdb). After building your database, you should have a connection to the (localdb) server or whatever is set in your Project Debug setting.
You can also launch the Transact-SQL Editor under the SQL menu and connect to an existing database server that way. Most likely, you'll want to use your debug settings as they'd be directly connected to your project on each build.

Resources