3

I've been googeling and testing this issue now for a while. Here is my question:

We develop in Visual Studio 2010 the C# part and Microsoft SQL Server Management Studio for the Views/Stored Procedures/... part.

What I want to do is combine both systems so that:

  • The developer writes the C# code in the C# project
  • The developer writes the stored procedure in the SQL project
    • He can test the stored procedure against the test environment database from VS
  • When he wants to test the C# code, the stored procedure is beeing created runtime ONLY. When The application stops (break) the object is beeing destroyed.

Maybe you can help me.

4
  • Have you considered Entity Framework Code First as an option? Commented Jan 23, 2014 at 16:37
  • 1
    It sounds like you want to use a Visual Studio database project (instead of SQL Server Management Studio) and you want the developer to work against a local development database when debugging (which he should be doing anyway). In the latter case, if the database project is set to deploy to the database as part of running the project then it would update the stored procedure(s) (and other database objects) when the solution is built/deployed as part of invoking the debugger. Commented Jan 23, 2014 at 16:38
  • Look at CLR Object in SQL Server. I've never done it, though Commented Jan 23, 2014 at 16:39
  • @websch01ar: Entity Framework Code First looks very promising but, unfortunately can not be used in my case. Thanks Commented Jan 24, 2014 at 8:21

1 Answer 1

2

If you are using Visual Studio 2010 you may need to install the sql server data tools (used to create database projects). It's installed with VS 2012 but I'm not sure about VS2010.

Here are some links for more information: Site: http://msdn.microsoft.com/en-us/library/hh272686(v=vs.103).aspx Blog: http://blogs.msdn.com/b/ssdt/

Sign up to request clarification or add additional context in comments.

1 Comment

For Visual Studio 2010 you can download SSDT from the links you posted. It also supports database unit testing and using local/test databases during development so it definitely sounds like it would meet Jeppen's needs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.