Viewing 15 posts - 196 through 210 (of 268 total)
Have you tried bulk insert or bcp? These are non logged inserts so might be even quicker.
Jeremy
April 17, 2003 at 7:54 am
The obvious checks are whether you have got the indexes and statistics on the tables. Depending on how you scripted the database, you can sometimes leave behind the indexes.
This...
April 17, 2003 at 7:03 am
No - the backup deletes old backups after it has successfully completed the current backup. If it didn't, you could end up with the situation where you don't have...
April 16, 2003 at 8:58 am
When you say 'the date a table was last modified', do you mean the last change to the schema of the tables (new or changed column, new index etc) or...
April 15, 2003 at 8:39 am
I suspect that the problem in on the AS400.
Two things come to mind:
1. Updating did not meet the schema requirements - could this be that the rows you are...
April 15, 2003 at 8:34 am
Are you using char or varchar?
SQL will pad a char field with spaces upto the max length.
Jeremy
April 15, 2003 at 7:37 am
A couple of ways:
select *
from products
where not exits (select productId from InvoicePos
where products.productId = invoices.productID)
or
select *
from products a
where 0 =
(select count(*)
from InvoicePos b
where a.productID = b.productID)
The first...
April 15, 2003 at 7:24 am
One way you could do this is to put the countries into a temporary table, with an idenitity column, in the order in which you want them ordered by and...
April 15, 2003 at 1:37 am
One way is:
declare @count tinyint, @days tinyint
select @days = days
from service
where cds = 1
set @count = 1
while @count <= <number of days> begin
/* Insert statements in here...
April 10, 2003 at 7:39 am
ShrinkDB will shrink the whole database, shrinkfile (where available) shrinks a single file within a database.
ShrinkDB is probably what you need.
Jeremy
April 10, 2003 at 4:08 am
Triggers are 'in process' commands - they execute within the same process as the command that invokes them. Adding a delay into a trigger will add a delay, and...
April 10, 2003 at 3:22 am
Can you give me some tips as to where to look for memory leaks?
In my app, I create a lot of temporary tables, dynamic SQL and cursors. I may...
April 9, 2003 at 7:53 am
In clause vs join. I converted the in clause to a multi table join and I was surprised that the table join performed significantly better than the in clause....
April 9, 2003 at 5:50 am
Viewing 15 posts - 196 through 210 (of 268 total)