Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 stored procedures and assembly

Author  Topic 

pelegk2
Aged Yak Warrior

723 Posts

Posted - 2008-11-26 : 15:41:34
i have created the following stored procedure with the assembly file from this article :
[url]http://www.sqldbatips.com/showarticle.asp?ID=23[/url]
the thing is that i have tried
the only change that i did i nthe vb.net class is in the function parameters :

Public Shared Sub WriteToFile(ByVal content As String, _
ByVal filename As String, _
Option ByVal sEnc As String)
...........
end sub

and in the creation of the stoed procedure i wanted to give it a default value :

create procedure writetofile
(
@content nvarchar(max),
@filename nvarchar(255),
@end nvarchar(50)=''
)
as external name writetofile.SQLCLRIO.WriteToFile

and it didn't work
any idea why?
thnaks in advance
peleg

Israel -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)
   

- Advertisement -