Create a dts package to produce a text file using the ‘update statistics’ command for the tables in a database with obsolete statistics.
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 |
Name 3 ways to get an accurate count of the number of records in a table?
what is a schema in sql server 2005? : Sql server database administration
What are the difficulties faced in cube development? : sql server analysis services, ssas
What is row by row processing ?
Which autogrowth database setting is good?
Can you index views?
What is the difference between sdf and mdf?
what is the difference between sql query and google query?
How many non clustered indexes there can be on table ?
What is advantage data architect?
List the different types of joins?
explain different types of jions with examples briefly?
2 Answers Accenture, Excellence, Zensar,
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)