Viewing 15 posts - 6,661 through 6,675 (of 7,185 total)
Raj
So do you only ever insert one row at a time? Is it during the insert itself that you experience the poor performance, or during the duplicate checking?
John
December 21, 2006 at 6:27 am
David
You will need to build a script dynamically. Something like this rough-and-ready effort, which generates a script that returns all rows where at least one of the columns has a...
December 21, 2006 at 5:10 am
Raj
So you're doing this once for every row you're inserting into the table? Are you using a cursor or a WHILE loop to do that? I think this is probably...
December 21, 2006 at 4:17 am
Anchelin
OK. Can you please put a PRINT @Query3 statement just before the EXEC command and post the result of that.
Thanks
John
December 21, 2006 at 4:04 am
Probably what you need, then, is to create a trigger in the table that checks the time of the previous insert, and if it was less than ten minutes ago,...
December 21, 2006 at 4:00 am
Anchelin
How many columns are in the result set when you run sp__DBBackupInfo on the remote server?
John
December 21, 2006 at 3:32 am
Raj
I'm sorry, I don't know anything about Materialized views in Oracle so I can't advise you on that.
If you had a unique constraint on CUST_PRODUCT_ID, ATTRIBUTE_ID and DATA then that...
December 21, 2006 at 3:29 am
Would this not work?
SELECT Titleid AS tit FROM title WHERE Titleid=11
John
December 21, 2006 at 3:08 am
What are the circumstances under which you wish to discard the less recent value? Is it when it is less than an hour before the previous one? Or is it...
December 21, 2006 at 2:39 am
Raj
OK. It looks as if your database design here is not ideal. There is no primary key constraint on the table. Is there a column (or combination of columns) that...
December 21, 2006 at 2:35 am
Anchelin
Perhaps you ought to include a "USE DBName" statement at the beginning of @Query2. If that doesn't work, please post the result of this query:
USE DBName
SELECT COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE...
December 21, 2006 at 2:27 am
So you have several temp tables, all with the same structure, but each named according to a user in the database? My advice would be to normalise your design so...
December 21, 2006 at 2:04 am
Raj
Please will you post the table DDL so that we can see what constraints you have on the data (primary keys and so on).
Thanks
John
December 21, 2006 at 1:53 am
Anchelin
You need to substitute the actual names of the columns in tablename (why do you have that enclosed in quotes in your script?) otherwise it will look for columns named...
December 21, 2006 at 1:48 am
Mike
No worries. That kind of linking table is called a junction table, and it's the kind of database design aspect that would have taken me ages to think up on...
December 21, 2006 at 1:35 am
Viewing 15 posts - 6,661 through 6,675 (of 7,185 total)