Viewing 15 posts - 106 through 120 (of 209 total)
Johnny,
I'd go along with most of Ivan's suggestions, but I would offer a note of caution about using the index tuning wizard. It can be a very useful...
July 7, 2006 at 5:33 am
John,
ANY index on the target table is a performance killer. If an index is present, BCP is forced to log every row insert.
Without any indexes, and if...
July 7, 2006 at 5:27 am
John,
I replied to this in your original posting ...
Use the "-b" switch anywhere in amongst your other switch options
e.g. To set a batch size of 1000 rows ...
SET @Dynamic_SQL =...
July 4, 2006 at 9:00 am
An indication of the number of table rows would help, but let's assume there are a lot.
Now, your PK:
Firstly, it's potentially very large (varchar(50)), and I really wouldn't recommend using...
July 4, 2006 at 8:49 am
John,
Use the "-b" switch anywhere in amongst your other switch options
e.g. To set a batch size of 1000 rows ...
SET @Dynamic_SQL = 'bcp ' + My_Database + '..'+@TabletobeOutput+' IN...
July 3, 2006 at 9:34 am
Bryan,
I'm not sure how you're getting your "||" syntax to work (presumably this is an OR statement?). I've tried this and get syntax errors.
More generally, for this particular query...
July 3, 2006 at 8:38 am
Thinus,
Are you actually moving your PK to the date column, or just the clustered index (leaving a NON-clustered PK on the identity field)? If you are putting the PK...
July 3, 2006 at 8:24 am
Arun,
Can you please post all table and index structures, together with the actual query you are running? An indication of the approx number of rows in the table(s)...
July 3, 2006 at 8:07 am
Physically, there is no difference between the two. A clustered constraint is physically implemented as a clustered index.
A Constraint is a logical concept, and the index structure is simply...
June 30, 2006 at 10:45 am
I can't see an index seek on col2. There is an index seek on col3, but this is in the Search argument, so doesn't come as a total surprise:
WHERE...
June 30, 2006 at 3:04 am
hi Trin,
You don't mention an index on t1.entry_date in your description, yet you say that the query plan does an index seek via this index? What does this index...
June 29, 2006 at 11:15 am
Hi Carl,
I don't think this is possible in the way you might expect.
If you try it using SQL2005 Profiler, which is more detailed in its description of settings and filters,...
June 29, 2006 at 8:41 am
Hmm. Spooky. Clearly it's coming from somewhere - I'd try running a profiler trace, filtering on DBCC commands only, and including the Host_Name column. This...
June 26, 2006 at 10:12 am
Check the properties of the database, under the "Options" tab. I think you'll find the "AutoClose" box is checked. Personally, I'd uncheck it - it should stop...
June 26, 2006 at 10:11 am
Here's another approach you could try:
Use [enter your database here]
go
--Turn off auto truncate log
sp_dboption 'your database here', 'trunc. log on chkpt.', false
go
-- Truncate the transaction...
June 26, 2006 at 10:08 am
Viewing 15 posts - 106 through 120 (of 209 total)