Re: How to set FILLFACTOR

From: Thomas Kejser (thomas_at_kejser.org)
Date: 01/03/05


Date: Mon, 3 Jan 2005 17:52:32 +0100

Hi Nags

If you copy the data from another table using a SELECT INTO statement is a
VERY fast way to move data. try this:

SELECT col1, col2, ..., col1
INTO TargetTable
FROM SourceTable

Be aware that SELECT INTO create the TargetTable, so you must delete it
first if it already exists

Hope that helps

-- 
Yours sincerely
Thomas Kejser
M.Sc, MCDBA
"Nags" <nags@RemoveThishotmail.com> wrote in message 
news:eLve5Nb8EHA.2180@TK2MSFTNGP12.phx.gbl...
> All the data comes from another set of tables.  So, we do not use BULK
> INSERT at all.
>
> -Nags
> "Jéjé" <willgart@BBBhotmailAAA.com> wrote in message
> news:#B9J2Cb8EHA.2876@TK2MSFTNGP12.phx.gbl...
>> how many rows are inserted?
>>
>> standard inserts ALWAYS use the log and this slow down your system. its
> not
>> recommended when you have to load a large amount of data.
>>
>> the bulk inserts allow you to load your data by batch, for example by 50
>> 000rows
>>
>> another way to watch: your HD config! are you in Raid? (which one; how
> many
>> drives)
>> and how your HD buffer is configured?
>> have you a dedicated HD raid for your tempdb database?
>>
>> your bottleneck can come another hardware limitation (not enough memory,
>> slow proc....)
>>
>> "Nags" <nags@RemoveThishotmail.com> wrote in message
>> news:Ol09ZHa8EHA.2572@tk2msftngp13.phx.gbl...
>> >I use procedures to load the data and I use SQL Commands, like INSERT &
>> > UPDATE statements.
>> >
>> > -Nags
>> >
>> > "Thomas Kejser" <thomas@kejser.org> wrote in message
>> > news:OMA0vDN8EHA.824@TK2MSFTNGP11.phx.gbl...
>> >> Hi Nags
>> >>
>> >> What utility do you use to load the data into the tables?
>> >>
>> >> In order of load performance the follwing are the best utilities for
> SQL
>> >> 2000
>> >>
>> >> - BULK INSERT command
>> >> - DTS data pump with the correct settings
>> >> - BCP
>> >>
>> >> Though you would expect BCP to perform very good you can gain better
>> >> performance by using the BULK INSERT command - it seems  that this
>> >> command
>> >> uses the netlib to bulk insert whereas BCP uses OLEDB
>> >>
>> >> Yours sincerely
>> >> Thomas Kejser
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>>
>>
>
> 


Relevant Pages

  • Re: How to set FILLFACTOR
    ... In order of load performance the follwing are the best utilities for SQL ... Though you would expect BCP to perform very good you can gain better ... performance by using the BULK INSERT command - it seems that this command ...
    (microsoft.public.sqlserver.datawarehouse)
  • Re: How to set FILLFACTOR
    ... I use procedures to load the data and I use SQL Commands, ... > Though you would expect BCP to perform very good you can gain better ... > performance by using the BULK INSERT command - it seems that this command ...
    (microsoft.public.sqlserver.datawarehouse)
  • Re: Bulk insert
    ... bcp does not report any error but does not copy either. ... > check out BCP (bulk copy program) in the BOL ... When i run the bulk insert command as below, ... >> Make sure the field terminator and row terminator are specified ...
    (microsoft.public.sqlserver.programming)
  • Re: Bulkinsert Problem
    ... An alternative approach may me to use the SQL Server Bulk Copy Command ... For more details refer to the "bcp Utility" article in SQL ...
    (microsoft.public.sqlserver.programming)
  • Re: BCP limit
    ... There's a LASTROW parameter available in BCP via the command line. ... would load only the first 4000 rows from the file. ...
    (microsoft.public.sqlserver.dts)