Error Create Aggregate

  • Here is what I am trying to do

    GO

    CREATE ASSEMBLY ActiveDCom FROM '\Comms\ADCom\ActiveDirectoryCom.dll'

    WITH permission_set = unsafe

    go

    CREATE Aggregate ADUserFullName

    (@UserID char(100))

    Returns char(100)

    EXTERNAL NAME [ActiveDCom].[ActiveDirectoryCom.ADCom].[UserFullName];

    GO

    My dll Has a class ADCom with a function UserFull Name

    I get this error

    Incorrect syntax near '.'.

    I have also tried

    go

    CREATE Aggregate ADUserFullName

    (@UserID char(100))

    Returns char(100)

    EXTERNAL NAME [ActiveDCom].[ActiveDirectoryCom.ADCom.UserFullName];

    GO

    And I get

    CREATE AGGREGATE failed because it could not find type 'ActiveDirectoryCom.ADCom.UserFullName' in assembly 'ActiveDirectoryCom'.

    Any help would be greatly apprecated

  • Here is what I am trying to do

    GO

    CREATE ASSEMBLY ActiveDCom FROM '\Comms\ADCom\ActiveDirectoryCom.dll'

    WITH permission_set = unsafe

    go

    CREATE Aggregate ADUserFullName

    (@UserID char(100))

    Returns char(100)

    EXTERNAL NAME [ActiveDCom].[ActiveDirectoryCom.ADCom].[UserFullName];

    GO

    My dll Has a class ADCom with a function UserFull Name

    I get this error

    Incorrect syntax near '.'.

    Hi ,

    I think your error is in

    EXTERNAL NAME [ActiveDCom].[ActiveDirectoryCom.ADCom].[UserFullName];

    Try using like this

    EXTERNAL NAME [ActiveDCom].[ActiveDirectoryCom].[ADCom].[UserFullName];

    Regards,

    Rajesh

  • Thank you, I actually ended up Creating a Function. That was better to suit my needs. I finally got it to work using

    AS EXTERNAL NAME ActiveDCom.[ActiveDirectoryCom.ADCom].UserFullName

    Don't know why but this was the only way I could get it to work.

  • Format that works:

    For funs and procs:

    EXTERNAL NAME [NameOfAssembly].[namespaces.className].[funName]

    For Aggregates:

    EXTERNAL NAME [NameOfAssembly].[namespaces.className]

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply