Viewing 15 posts - 3,346 through 3,360 (of 6,036 total)
The above shows that there are crappy programmers in MS as well.
It's a good example how NOT to do triggers.
October 30, 2007 at 4:29 am
Graeme, if you open BOL on topic "CREATE TRIGGER" you'll read that trigger is just a stored procedure.
Don't make something supernatural from it.
You better check the logic of your...
October 30, 2007 at 2:41 am
Graeme100 (10/30/2007)
UPDATE y
SET y.col1 = getdate()
FROM table1 y
INNER JOIN
(select a.id1,a.column2
FROM Table1 a
LEFT OUTER JOIN Table2 b on CAST(b.id AS INT) = CAST(a.ID...
October 30, 2007 at 1:39 am
Select cannot block any process even if you not to use (NOLOCK).
Because it applies shared locks.
Look what blocks your SELECT process. There must be some updates involved.
Or probably you've got...
October 29, 2007 at 10:56 pm
Jeff Moden (10/29/2007)
Yeh... 2nd mistake today... 😉
Only second?
Man, you're good!
😉
October 29, 2007 at 9:28 pm
rog pike,
Did not have time to read all articles you referenced, but this one:
Itzik Ben-Gan and Sujata Mehta
OVER Clause and Ordered Calculations
http://www.insidetsql.com/OVER_Clause_and_Ordered_Calculations.doc
is horrible.
They use correlated subqueries everywhere, name it "set-based...
October 29, 2007 at 7:50 pm
Peter Gadsby (10/29/2007)
October 29, 2007 at 7:35 pm
Jeff,
At the end of the day you agreed with Kenneth.
You said that result was ordered wrong way because of wrong query.
Exactly as Kenneth stated from the very beginning: it's the...
October 29, 2007 at 7:15 pm
Kenneth, I could not answer you immediately, it gave you some time to withdraw your post.
But you did not use that chance.
So, it's your fault. 😉
Kenneth Wilhelmsson (10/25/2007)
October 29, 2007 at 7:06 pm
Adam Angelini (10/29/2007)
try thisdeclare @returnValue varchar(50)--make the datatype match your output
ReturnValue from ANY stored procedure ALWAYS is int.
October 29, 2007 at 4:47 pm
What that derived table is for?
Your LEFT JOIN eliminates any filter on the rows, and whole table gets updated.
Not sure thgis is what you're trying to achieve.
Try this:
SELECT y.ID, y.col1,...
October 29, 2007 at 4:39 pm
yogendra_shivhare (10/29/2007)
Hi,I can't reduce the number of columns.
Ask someone who can.
October 29, 2007 at 4:07 pm
Peter Gadsby (10/29/2007)
The ETL performs (generally) a full refresh of data
As I said - bad design.
Incremental updates are ALWAYS more effective.
"Full refresh" is something what should never exist in database.
October 29, 2007 at 5:44 am
Peter Gadsby (10/29/2007)
The amount of data stored in the other TRANSFORM table is around 0.8Million rows.Any ideas?
What kind of data do you load?
How often do you perform this process?
If assume...
October 29, 2007 at 5:39 am
Viewing 15 posts - 3,346 through 3,360 (of 6,036 total)