Red Gate forums :: View topic - /presql not working
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Packager 6
SQL Packager 6 forum

/presql not working

Search in SQL Packager 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
Wyatt70



Joined: 29 Jul 2005
Posts: 36
Location: Yonkers, NY

PostPosted: Wed Jan 19, 2011 7:29 pm    Post subject: /presql not working Reply with quote

I'm using version 6.3.1.122 SQL Packager, and it is not letting me use the "/presql" switch on the command line.

Here is the command I tried to execute:

Code:

C:\Program Files (x86)\Red Gate\SQL Packager 6>sqlpackager /argfile:"D:\SQL Projects\CLG Application\3.5 Deployment\SQL Packager Scripts\CLGTempDBConfig.xml" /location:"D:\SQL Projects\CLG Application\3.5 Deployment\SQL Packager Scripts" /presql:"Enable FileStream for CLGTempDB.sql" /postsql:"Drop and Create Clean Up CLGMMCTEMP.sql"


When I run this, I get this error:

Code:
Error: Invalid command-line argument: /presql. Please use SQLPackager.exe /? or
SQLPackager.exe /verbose /? for more information.


Is my syntax wrong?
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1121
Location: My desk.

PostPosted: Thu Jan 20, 2011 8:13 pm    Post subject: Reply with quote

/presql and /postsql are commandline options for the package you generate, not for Packager itself. So once you've generated your .exe from packager you can pass the pre + post sql commands to that.
Back to top
View user's profile Send private message
Wyatt70



Joined: 29 Jul 2005
Posts: 36
Location: Yonkers, NY

PostPosted: Fri Jan 21, 2011 4:31 pm    Post subject: Re: Reply with quote

james.billings wrote:
/presql and /postsql are commandline options for the package you generate, not for Packager itself. So once you've generated your .exe from packager you can pass the pre + post sql commands to that.


Ok. Thanks for the info.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group