Home All Groups Group Topic Archive Search About

is it possible to mark my CLR function as UNSAFE in code or visual studio anywhere so that wehn vs d

Author
7 Nov 2007 12:47 AM
DR
is it possible to mark my CLR function as UNSAFE in code or visual studio
anywhere so that wehn vs deploys, it creates unsafe assembly? (instead of me
having to manualy deploy in tsql!)

Author
7 Nov 2007 7:55 AM
Miha Markic
What are you after?
I mean, why would you want to mark assembly unsafe?

--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

Show quote
"DR" <softwareengineer98***@yahoo.com> wrote in message
news:OojmIfNIIHA.3768@TK2MSFTNGP06.phx.gbl...
> is it possible to mark my CLR function as UNSAFE in code or visual studio
> anywhere so that wehn vs deploys, it creates unsafe assembly? (instead of
> me having to manualy deploy in tsql!)
>
Author
8 Nov 2007 5:50 AM
Cor Ligthert[MVP]
DR,

This is not the best newsgroup to ask this.

I suggest news:\\microsoft.public.dotnet.languages.csharp

Cor
Author
8 Nov 2007 6:34 PM
William Vaughn
Cor is confused. I think he meant microsoft.public.sqlserver.clr.
This is NOT a C# issue. All of my CLR Executable examples are in VB.NET.

As to the question: When the assembly is created in Visual Studio it's
possible to set the CREATE ASSEMBLY option as needed in the Project
Properties. It's also do write the TSQL yourself and specify the Unsafe
(whatever) in the CREATE.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant, Dad, Grandpa
Microsoft MVP
INETA Speaker
www.betav.com
www.betav.com/blog/billva
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------

Show quote
"Cor Ligthert[MVP]" <notmyfirstn***@planet.nl> wrote in message
news:D0315865-D1DB-4D1F-A1D9-64D9C8B72C92@microsoft.com...
> DR,
>
> This is not the best newsgroup to ask this.
> I suggest news:\\microsoft.public.dotnet.languages.csharp
>
> Cor

AddThis Social Bookmark Button