I'm trying to figure out how to use FB to manage a set of database that have frequent changes and promotion cycles. I have some ideas, but I would really like to see an example where a set of stored procedures stored in a directory in VSS or TFS get dynamically loaded in a stack (or the like) and then get executed.
Anyone else out there using FB for something like this.
Same here. I need to execute SQL Server 2008 SQL DML scripts such as “CREATE DATABASE …” via FinalBuilder. These scripts run fine in SQL Server Managemenet Studio 2008 queries. They run fine as Stored Procedures in the Master database (a very bad idea). But they do not work from a FB ADO.NET Execute SQL task as either text or file, which is what we need to do.
Could someone from VSoft help us out here, thanks…
Their shouldn’t be a problem with running DDL (CREATE, ALTER, DROP, etc…) scripts from the either the ‘ADO Execute SQL’ or the ‘MSSQL Execute SQL’ actions. Does the action report an error, or does the table never get created?
Could you provide us with the exact query you’re attempting to execute, as well as the connection string being used (removing any sensitive information first)? If you’d prefer you can email it to support [at] finalbuilder.com instead of posting on the public forums.
The ‘GO’ separators are not actually valid T-SQL, you’ll either need to separate each command out and execute them one-by-one in the ‘ADO Execute Query’ action, or you can use the ‘MSSQL Execute Query’ with SQLCMD which will handle the batch processing automatically.
Posted By Paul Samways on 10 Dec 2008 08:26 PM The 'GO' separators are not actually valid T-SQL
Right. GO is what the client (SQL Studio or whatever) uses to separate commands. It is plastic, and client configurable. (That said, FB could be set up to emulate SQL Studio in that respect... I know we had a similar need at one point and coded it ourselves in our client.)