CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Raymond Lewallen

Framework Design, Agile Coach, President Oklahoma City Developers Group, Microsoft MVP C#, TDD, Continuous Integration, Patterns and Practices, Domain Driven Design, Speaker, VB.Net, C# and Sql Server

What happened to New Sql Project in Visual Studio 2005 Beta 2?

Ok, this is pretty annoyning.  I have Visual Studio 2005 Beta 2 installed along with Sql Server 2005 April CTP.  So I want to create a new stored procedure in C# to use in sql server.  Click New/Project and look around.  Hey!  No new sql server project!  What happened here?

So now I take my old C# stored procedures and open them up in Beta 2.  Don't try to convert from Beta1 to Beta2, it won't convert a single file of your project.  So I create a new project and add my old files to it.  Naturally, there are all types of compile time errors.  Most notably, that have moved System.Data.SqlServer to Microsoft.SqlServer.Server.  Ok, easy enough to deal with.  Change a couple of statements (GetPipe() is now just a read only property called Pipe, if I remember correctly from last night).  Now everything seems to be OK, except one thing.  I can't find what they did with SqlContext.GetCommand.  That was pretty important, as it returned a sql command object within the current context.  For the life of my have not been able to find out where that went.

So now what, we can't build UDFs or stored procedures in Beta2 now?  Even the April CTP of MSDN still references the Beta1 namespaces, so no help there.  Cannot find anything on the internet regarding these changes or what we're supposed to do in order to build sql clr code in VS Beta 2.  If anybody has any information, I'd be most grateful.  If I find any more information on this, I'll post it here.


Comments

Sahil Malik said:

From what I hear, standard doesn't have SQL Server integration. :-/ .. the VSTS might be worth a try (it takes time, but u can do something else in parallel).
# April 24, 2005 8:18 AM

Jim Carlson said:

I suppose you downloaded the Standard version as I did. Now I find that one needs the Professional version that comes with Team System in order to have database projects.
# April 25, 2005 7:05 AM

Lane Tharp said:

Nope. It's not even there with the professional if you want to import the schema from the database. I am on the same annoying odessy figuring out what happened to the database project.
# June 20, 2006 8:09 PM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add

About Raymond Lewallen

Working primarily in the public sector during his career, Raymond has designed and built several high profile enterprise level applications for all levels of the government. Raymond now works as a solutions architect for EMC. Raymond is an agile coach, Microsoft MVP C# and also president of the Oklahoma City Developers Group and Oklahoma Agile Developers Group. Raymond spends a lot of his time learning and teaching such things as Test Driven Development, Domain Driven Design, Design Patterns and Extreme Programming practices and principles, to name a few. Raymond is also an advocate of Alt.Net. Raymond is primarily a framework guy, so don't ask him anything about UI :) Check out Devlicio.us!