Monday, February 20, 2012

Is capturesql the only way to script a drop using smo?

Is capturesql the only way to script a drop using smo?

You can set the ScriptingOptions.ScriptDrops to true and then pass it to Script(ScriptingOptions). This will return you the script to drop the object.

Thanks,
Kuntal

|||Aha...thanks. I knew there had to be an easy way to do this!

No comments:

Post a Comment