What Brann of Visual Studio 2008 SP1 Team Suite says is version 1.4 of the Database Publishing Wizard. It is installed with SQL Server 2008 (perhaps only professional?) In \ Program Files \ Microsoft SQL Server \ 90 \ Tools \ Publishing \ 1.4. A VS call from the server explorer simply calls this. You can achieve the same functionality using the command line as:
sqlpubwiz help script
I donβt know if v1.4 had the same problems as v1.1 (users are converted to roles, restrictions are not created in the correct order), but this is not a solution for me, because it doesnβt "script objects in different files, such as the Tasks-> Generate Scripts in SSMS option.I am currently using a modified version of Scriptio (uses the MS SMO API) to act as an improved replacement for the database publishing wizard (sqlpubwiz.exe). It is currently not available for scripting from the command line, I could add this contribution in the future.
Scriptio was originally posted on Bill Graziano's blog, but was subsequently released on CodePlex by Bill and updated by others. Read the discussion to learn how to compile it for use with SQL Server 2008.
http://scriptio.codeplex.com/
EDIT: From now on, I started using the RedGate SQL Compare product for this. This is a very good replacement for everything the publication sql wizard should have done. You select the database, backup or snapshot as the source, as well as the folder as the output location, and it completely resets the folder structure. This is the same format that their other product, SQL Source Control, uses.
noobish May 6 '10 at 18:06 2010-05-06 18:06
source share