The Artima Developer Community
Sponsored Link

.NET Buzz Forum
A few changes from Beta 1 to Beta 2 when writing code for SQLCLR

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Raymond Lewallen

Posts: 312
Nickname: rlewallen
Registered: Apr, 2005

Raymond Lewallen is a .Net developer and Sql Server DBA
A few changes from Beta 1 to Beta 2 when writing code for SQLCLR Posted: Apr 29, 2005 7:09 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Raymond Lewallen.
Original Post: A few changes from Beta 1 to Beta 2 when writing code for SQLCLR
Feed Title: Raymond Lewallen
Feed URL: /error.htm?aspxerrorpath=/blogs/raymond.lewallen/rss.aspx
Feed Description: Patterns and Practices, OOP, .Net and Sql
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Raymond Lewallen
Latest Posts From Raymond Lewallen

Advertisement

First of all, if you only downloaded the standard Visual Studio 2005 Beta 2, you will have have available the “New Sql Project”.  You must download the VSTS in order to get the professional version where you will find sql projects in visual studio.

So I took some of my SQL Server projects from Beta 1 and moved them to Beta 2.  A few things you’ll want to be aware of, and looking in the April CTP of MSDN will not provide you the answers. 

The old System.Data.SqlServer namespace has been replaced by Microsoft.SqlServer.Server in Beta 2.  The server side provider has been merged with the client side, so you no longer reference sqlaccess.dll.

SqlContext.GetPipe has changed to just SqlContext.Pipe.  That one was easy enough to find.

This was a bit harder, as I kept looking and looking for it.  You can no longer do SqlContext.Connection/Command etc.  If you done some of this in Beta 1 you’ll remember using SqlContext.GetCommand which returned a command object within the current context.  That has alltogether been removed.  Now you obtain a connection by using SqlConnection conn = new SqlConnection("Context Connection=true"); or Dim conn As SqlConnection = New SqlConnection(“Context Connection=true”) in VB.  By including the parameter Context Connection, this provides the same functionallity as SqlContext.GetCommand was providing.

Pablo Castro over at Microsoft wrote an article up on MSDN here for more information.

Read: A few changes from Beta 1 to Beta 2 when writing code for SQLCLR

Topic: Class Diagrams in Visual Studio.NET Beta 2 Previous Topic   Next Topic Topic: 250 * x64 = 25

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use