Using Transact-SQL is the fastest method to move data between SQL Server tables, so try to use Transact-SQL statements to move data whenever possible.
The BULK INSERT statement is much faster than bcp or the data pump to perform text file import operations, however, the BULK INSERT statement cannot export data from SQL Server to a data file.
The bcp utility is much faster than DTS, so try to use it whenever possible.
Because data pump operations that use ActiveX transformation scripts can be up to two to four times slower than copy operations, you should avoid using ActiveX transformation scripts, whenever possible.
Microsoft recommends to use VBScript because scripts written in VBScript run approximately 10 percent faster than scripts written in JScript, which in turn run approximately 10 percent faster than scripts written in PerlScript.
Use this tip only when the transformation contains many columns. If the transformation contains less than 20 columns, use columns name to refer to columns in ActiveX transformations to make the script easier to read.
The DTS Import/Export Wizard uses many-to-many column mappings. By default, the DTS Designer assigns one-to-one column mappings to transformations in order to improve readability. Because a single many-to-many copy column transformation is faster then many one-to-one copy column transformations, you can manually set your Transform Data task or Data Driven Query task to use many-to-many column mappings. For example, to set Transform Data task to use many-to-many column mappings in SQL Server 2000 DTS Designer, you can do the following:
1. Choose appropriate Transform Data task in the DTS Designer.
2. Right-click this task and select Properties.
3. On the Transformations tab click 'Select All' button.
4. Click 'Delete All' button.
5. Click 'New' button and choose 'Copy Column' in the Create New Transformation window.
6. Specify the transformation options and click 'OK' button.
To increase the DTS package priority in SQL Server 2000, try the following:
1. Run SQL Server Enterprise Manager.
2. Expand a server group; then expand a server.
3. Expand Data Transformation Services and choose appropriate package.
4. Right-click package and select 'Design Package'.
5. From the top menu of the DTS Designer click Package and select Properties.
6. On the General tab increase the package priority by moving the slider bar to the right one or two steps (the slider bar has three position, and the default setting is at the second setting).
To increase the Transform Data task priority in SQL Server 2000 DTS Designer, you can do the following:
1. Choose appropriate Transform Data task in the DTS Designer.
2. Right-click this task and select Workflow Properties.
3. On the Options tab increase the task priority by moving the slider bar to the right one or two steps (the slider bar has five position, and the default setting is at the third setting).
Because native OLE DB provider is faster than ODBC provider, you should use OLE DB provider whenever possible.
Because DTS lookups slow down performance, try to use the Transact-SQL statements to perform the same functions.
When you enable this option, the high-speed bulk-copy processing will be used. To enable this option in SQL Server 2000 DTS Designer, you can do the following:
1. Choose appropriate Transform Data task in the DTS Designer.
2. Right-click this task and select Properties.
3. On the Options tab check the 'Use fast load' option.
Change this registry setting from the default value (10 seconds): HKEY_LOCALMACHINE\SOFTWARE\Microsoft\Repository\Engine\ODBCQueryTimeout The ODBC query time-out values are measured in seconds.
This is the fastest way to transfer data using Transform Data task, so it should be used whenever possible.
No comments:
Post a Comment