April 24, 2008 at 4:38 pm
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
April 29, 2008 at 11:52 pm
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
April 30, 2008 at 1:14 pm
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.
October 31, 2008 at 6:37 am
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