Create a dts package to produce a text file using the ‘update statistics’ command for the tables in a database with obsolete statistics.



Create a dts package to produce a text file using the ‘update statistics’ command for th..

Answer / Rampal Singh

To create a DTS (Data Transformation Services) package that produces a text file using the 'UPDATE STATISTICS' command, follow these steps:

1. Create a new DTS package by selecting File > New > Package from the SQL Server Business Intelligence Studio menu.
2. Add Script Tasks for each table with obsolete statistics and write Transact-SQL code to update statistics for each table within the script tasks.
3. Configure a destination connection manager for generating a text file (such as Flat File Destination).
4. Add a Data Transformation task between the Script Task and the Destination Task, and configure it to pass the output from the Script Task to the Destination Task.
5. Save and execute the DTS package.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL Server Interview Questions

Name 3 ways to get an accurate count of the number of records in a table?

1 Answers  


what is a schema in sql server 2005? : Sql server database administration

1 Answers  


What are the difficulties faced in cube development? : sql server analysis services, ssas

1 Answers  


What is row by row processing ?

2 Answers  


Which autogrowth database setting is good?

1 Answers  


Can you index views?

0 Answers  


What is the difference between sdf and mdf?

1 Answers  


what is the difference between sql query and google query?

10 Answers   TCS,


How many non clustered indexes there can be on table ?

1 Answers  


What is advantage data architect?

1 Answers  


List the different types of joins?

1 Answers  


explain different types of jions with examples briefly?

2 Answers   Accenture, Excellence, Zensar,


Categories