When I use SQL-DMO library and VB to script out a User
Defined Function I get an error: 0x80045339
[SQL-DMO]Unexpected parameter value or other condition.
I'm using the Script() method of DBObject object. No
matter what flags I pass, I get the same error.
Surprisingly, when I use the same code to script out a
Stored Proc, a View or a Trigger, it works just fine.
I'm running SQL Server 2000.
Any suggestions would be highly appreciated.