Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Other SQL Server Topics (2005)
 sp_OAMethod AND SQL Assembly

Author  Topic 

natarshia
Starting Member

4 Posts

Posted - 2009-02-25 : 17:11:55
Does anyone know the correct syntax to generate the Assembly scripts using sp_OAMethod. I know you can generate the Assembly ddl using the gui, so there must be a way to code it in a stored procedure.

I can do tables, views, functions, etc.. but i keep getting an error when i try to use sp_OAMethod for Assemblies.

thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-02-25 : 17:19:32
I must ask, why do you need to do it from sp_OAMethod?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

natarshia
Starting Member

4 Posts

Posted - 2009-02-26 : 09:17:02
It's in a stored proc that is called by a job, so I can schedule it to run every week.
My client requested to have a copy of the backup and of DDL of all the database objects.
If this is schedule to output every week, i don't have to worry about running it throught the gui adhoc.
Also, if the GUI can do, so should code. I like to know how stuff work.

if you know how to do it, then that would be great.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-02-26 : 12:40:30
You do not need to use sp_OAMethod to create those objects, just use normal DDL commands.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

natarshia
Starting Member

4 Posts

Posted - 2009-02-26 : 12:43:23
i don't want to create them, i want to export the script of the ones already in the database, just like i do for the stored procedures and functions....

thanks
Go to Top of Page
   

- Advertisement -