HighTechTalks DotNet Forums  

new with clr project

Dotnet Framework (CLR) microsoft.public.dotnet.framework.clr


Discuss new with clr project in the Dotnet Framework (CLR) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Font
 
Posts: n/a

Default new with clr project - 08-16-2007 , 12:37 AM






Hi.. I have Visual Studio Standard edition and I wish to develpment a CLR
store procedure but I don't find the database project template.

Is possible to make a CLR Store Procedure in VS Standard Ed. or not? if is
possible, how I can do that?

Thaks


Reply With Quote
  #2  
Old   
Ben Schwehn
 
Posts: n/a

Default Re: new with clr project - 09-18-2007 , 08:43 AM






Font wrote:
Quote:
Hi.. I have Visual Studio Standard edition and I wish to develpment a
CLR store procedure but I don't find the database project template.

Is possible to make a CLR Store Procedure in VS Standard Ed. or not? if
is possible, how I can do that?
Hello Font,

According to
http://msdn2.microsoft.com/en-us/vstudio/aa700921.aspx you can't do that

Just create a normal assembly and mark the (static) method with the
SqlProcedure attribute:


public class SPClass
{
[Microsoft.SqlServer.Server.SqlProcedure]
public static void Foo()


then import into sql server using sql (using create assembly from and
create proceure external_name

like

create assembly [assemblyname] from 'x:\SPClass.dll' with permission_set
= safe (or whatever permission set you want)

create procedure [procname]
as external name [assemblyname][classname]


Run the sql script as a post build event.

Ben


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.