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



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@xxxxxxxxx> wrote in message
news:fgvaa7$1rjb$1@xxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxx> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: news:OQEkOloFIHA.3980@xxxxxxxxxxxxxxxxxxxxxxx
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?





.



Relevant Pages

  • Re: TQL Debugger im SQL Server 2005
    ... SQL Client Verbindung ist mit dem "sa" erstellt. ... im Visual Studio - new Project - habe ich keine Database ... >> Ich habe den SQL Server 2005 Developer Edition mit SQL Server Database ... >> Services, Analysis Services, Integration Services und Client ...
    (microsoft.public.de.sqlserver)
  • Re: TQL Debugger im SQL Server 2005
    ... >>> Ich habe den SQL Server 2005 Developer Edition mit SQL Server ... >>> Database Services, Analysis Services, Integration Services und ... Ich habe ebenfalls Visual Studio 2005 ...
    (microsoft.public.de.sqlserver)
  • Visual Studio 2005 - VB or C#, etc - SOME ONE PLEASE EXPLAIN..
    ... I do development work in Ms Access using VBA and new to SQL Server and now ... learning what Visual Studio 2005 has to offer. ... In my mind Ms Access does so many little steps in the background for you (via ... the steps that Ms Access tools offer.(unless you are an advance programmer)? ...
    (comp.lang.basic.visual.misc)
  • RE: SQLXMLBULKLOAD question: Does it INSERT only, or can it UPDATE as
    ... in SQL 2008 you can use the new MERGE statement. ... I have been opening up the Schemas in ... manually to the xsd file based on the diagram Visual Studio shows me. ... When we run the bulkload utility, ...
    (microsoft.public.sqlserver.xml)
  • Re: Performance is slow when calling web services in SQL CLR
    ... I have done async before, but not with sql clr sp. ... We have SQL CLR stored procedures that call web services. ...
    (microsoft.public.sqlserver.programming)