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.
Related
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
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.
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.
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.
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