HighTechTalks DotNet Forums  

easiest way to upload a C# class library to a SQL server 2005 and deploy as CLR function

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


Discuss easiest way to upload a C# class library to a SQL server 2005 and deploy as CLR function in the Dotnet Framework (CLR) forum.



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

Default easiest way to upload a C# class library to a SQL server 2005 and deploy as CLR function - 10-24-2007 , 06:00 PM






easiest way to upload a C# class library to a SQL server 2005 and deploy as
CLR function

Do I have to upload the .dll and then run sql command to load it into sql
server, or is there a more integrated way to do this in visual studio 2005
with a SQL Server Project? or do i have to manualu upload the DLL in all
cases? Any tutorial on CLR with Visual Studio 2005 IDE to Sql Server 2005?



Reply With Quote
  #2  
Old   
Alexander Vasilevsky
 
Posts: n/a

Default Re: easiest way to upload a C# class library to a SQL server 2005 and deploy as CLR function - 11-08-2007 , 10:34 AM






Please try CREATE ASSEMBLY (Transact-SQL)
Please see code below from BOL

DECLARE @SamplesPath nvarchar(1024)
SELECT @SamplesPath = REPLACE(physical_name,
'Microsoft SQL Server\MSSQL.1\MSSQL\DATA\master.mdf',
'Microsoft SQL Server\90\Samples\Engine\Programmability\CLR\')
FROM master.sys.database_files
WHERE name = 'master';
CREATE ASSEMBLY HelloWorld
FROM @SamplesPath + 'HelloWorld\CS\HelloWorld\bin\debug\HelloWorld.dll '
WITH PERMISSION_SET = SAFE;

http://www.alvas.net - Audio tools for C# and VB.Net developers


"DR" <softwareengineer98037 (AT) yahoo (DOT) com> сообщил/сообщила в новостях
следующее: news:OQEkOloFIHA.3980 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
Quote:
easiest way to upload a C# class library to a SQL server 2005 and deploy
as CLR function

Do I have to upload the .dll and then run sql command to load it into sql
server, or is there a more integrated way to do this in visual studio 2005
with a SQL Server Project? or do i have to manualu upload the DLL in all
cases? Any tutorial on CLR with Visual Studio 2005 IDE to Sql Server 2005?




Reply With Quote
  #3  
Old   
DR
 
Posts: n/a

Default Re: easiest way to upload a C# class library to a SQL server 2005 and deploy as CLR function - 11-13-2007 , 08:43 PM



thanks but it turns out that no one should EVER manualy issue a CREATE
ASSEMBLY command. this is done via visual studio project settings. manualy
deploying CLR creates unessicary maintinence issues.

"Alexander Vasilevsky" <alvas (AT) alvas (DOT) net> wrote

Quote:
Please try CREATE ASSEMBLY (Transact-SQL)
Please see code below from BOL

DECLARE @SamplesPath nvarchar(1024)
SELECT @SamplesPath = REPLACE(physical_name,
'Microsoft SQL Server\MSSQL.1\MSSQL\DATA\master.mdf',
'Microsoft SQL Server\90\Samples\Engine\Programmability\CLR\')
FROM master.sys.database_files
WHERE name = 'master';
CREATE ASSEMBLY HelloWorld
FROM @SamplesPath + 'HelloWorld\CS\HelloWorld\bin\debug\HelloWorld.dll '
WITH PERMISSION_SET = SAFE;

http://www.alvas.net - Audio tools for C# and VB.Net developers


"DR" <softwareengineer98037 (AT) yahoo (DOT) com> сообщил/сообщила в новостях
следующее: news:OQEkOloFIHA.3980 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
easiest way to upload a C# class library to a SQL server 2005 and deploy
as CLR function

Do I have to upload the .dll and then run sql command to load it into sql
server, or is there a more integrated way to do this in visual studio
2005 with a SQL Server Project? or do i have to manualu upload the DLL in
all cases? Any tutorial on CLR with Visual Studio 2005 IDE to Sql Server
2005?






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.