Example of Automated SQL Optimizer for a table

Posted by jgenovese@gencotech.net on 14-Apr-2010 08:26

Has anyone create something that will automate running the query optimizer for a particular table?

Ideas would be greatly appreciated.

Thank  you,

Joe Genovese

All Replies

Posted by Thomas Mercer-Hursh on 14-Apr-2010 11:49

Do you mean Update Statistics?

Posted by jgenovese@gencotech.net on 14-Apr-2010 12:35

Yes, update statistics for the entire table autmatically.  Do I need a special client to connect?  Maybe a little java app?

Posted by Thomas Mercer-Hursh on 14-Apr-2010 12:50

It is a SQL client thing.

Posted by jgenovese@gencotech.net on 14-Apr-2010 14:36

Yes, I am still looking for a batch method of updating the statistics with a sql client.

Posted by Admin on 14-Apr-2010 15:06

Yes, I am still looking for a batch method of updating the statistics with a sql client.

Not that I'm familiar with SQL92 at all, but

%DLC%\bin\sqlexp -db ... -S ... -H ... -char -infile yourscript.sql

should exactly allow you to do that in batch mode.

Posted by jgenovese@gencotech.net on 14-Apr-2010 15:22

Mike,

Thank you, I will give this a try.

Posted by Admin on 14-Apr-2010 15:31

sqlexp -help will give you details about the parameters.

This thread is closed