Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.news-service.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Erland Sommarskog Newsgroups: comp.databases.ms-sqlserver Subject: Re: Generate script for few objects only using SqlPubWiz.exe (command line) Date: Sun, 01 May 2011 11:11:49 +0200 Organization: Erland Sommarskog Lines: 19 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="DD6dU+BfJNjsjSP4/K/V7w"; logging-data="724"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+PzZVYTgbYkw5aEw9E0AI2" User-Agent: Xnews/2006.08.24 Mime-proxy/2.1.c.0 (Win32) Cancel-Lock: sha1:bdUXfonvpZzTcbmrEiYD69BvCsU= Xref: x330-a1.tempe.blueboxinc.net comp.databases.ms-sqlserver:276 omtechguy (omtechguy@gmail.com) writes: > I am using SqlPubWiz.exe command line to generate scripts for entire > database but i couldn't find a command line parameter that will allow > me to generate script for few objects only and not for the entire > database. for specific object i am using the GUI but i want to do it > using a command line for automation.... I have not used the Wizard on command-line, but since this a "bonus tool" so to speak, it may not have that capability. You may reached the point where you need use Powershell or similar for your work. -- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx