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 workany idea why?thnaks in advancepelegIsrael -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)