Results 1 to 4 of 4

Thread: Sql2005 - Create Assembly

  1. #1

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Sql2005 - Create Assembly

    Does anyone know good articles for integrating .NET assemblies into SQL Server?

    I'm trying to create an assembly at the moment and I'm getting this error:
    Code:
    Msg 6213, Level 16, State 1, Line 1
    CREATE ASSEMBLY failed because method "set_mobjClient" on type "fgoTest.Test" in safe assembly "TestAssembly" has a synchronized attribute. Explicit synchronization is not allowed in safe assemblies.
    I really have no idea what it means and can't find any help on it.
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Sql2005 - Create Assembly

    What is the code you are using?

  3. #3

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Re: Sql2005 - Create Assembly

    Do you mean in my assembly or in t-SQL?
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

  4. #4
    Fanatic Member kaffenils's Avatar
    Join Date
    Apr 2004
    Location
    Norway
    Posts
    946

    Re: Sql2005 - Create Assembly

    You'll have to set the database to allow EXTERNAL or UNSAFE asseblies. Take a look at those keywords in BOL.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width