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



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: SQL Server läuft nach Erstinstallation nicht
    ... SHAREPOINT-Instanz von SQL Server" bzw. "Installieren von SQL Server 2000 ... -> Microsoft SQL Server ...
    (microsoft.public.de.german.backoffice.smallbiz)
  • Re: Switching alarm system - can I convert my database?
    ... By SQL I assume you mean Microsoft SQL, probably MSDE, not a generic ... access systems say that they're database engine neutral and will use ... Vendor lock in might not be legal to do in our state in any case. ...
    (alt.security.alarms)
  • Re: establishing cause of access violation?
    ... code) if you need to implement this under SQL 2000. ... Extensions for C++ in either Microsoft SQL Server 7.0 or Microsoft SQL ... >>> won't step into the managed function. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: establishing cause of access violation?
    ... code) if you need to implement this under SQL 2000. ... Extensions for C++ in either Microsoft SQL Server 7.0 or Microsoft SQL ... >>> won't step into the managed function. ...
    (microsoft.public.vc.language)
  • Re: establishing cause of access violation?
    ... code) if you need to implement this under SQL 2000. ... Extensions for C++ in either Microsoft SQL Server 7.0 or Microsoft SQL ... >>> won't step into the managed function. ...
    (microsoft.public.sqlserver.programming)

Loading