Red Gate forums :: View topic - Specification of argfile parameter
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Doc 2
SQL Doc 2 forum

Specification of argfile parameter

Search in SQL Doc 2 forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
benseaman



Joined: 04 Oct 2011
Posts: 5

PostPosted: Thu Nov 24, 2011 12:30 pm    Post subject: Specification of argfile parameter Reply with quote

Hi,

I see from the command-line help for SQLDoc there is an argfile parameter as with the other tools however I cannot find any help topics on the Red Gate website for this. Could someone please point me in the direction of this? Essentially i want to pick the server and database dynamically without having to creating a project.

thanks

Ben
Back to top
View user's profile Send private message Send e-mail
james.billings



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

PostPosted: Fri Nov 25, 2011 4:17 pm    Post subject: Reply with quote

Thanks for posting.

The argfile parameter, unfortunately, doesn't offer anything else than the other switches. We do have an internal 'bug' for the lack of documentation around it, but essentially, the same options can be used in the argfile as you can pass anyway.

So you could have an XML argfile containting, for instance:

<?xml version="1.0"?>
<commandline>
<project>MyProject.sqldoc</project>
<force />
</commandline>

but NOT

<?xml version="1.0"?>
<commandline>
<server>DevSvr</server>
<database>OrdersDB</database>
<force />
</commandline>

Therefore the argfile isn't much more useful.
I think the only way you could automate dynamically supplying the server and db would be to write a cleverer batch file that could take input and pass on the variables to the SQL Doc command.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. 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