Viewing 15 posts - 12,886 through 12,900 (of 18,923 total)
SET ROWCOUNT @Variable
SELECT * FROM authors
ORDER BY au_lname, au_id
SET ROWCOUNT 0
September 26, 2005 at 3:10 pm
SELECT PERSON.LAST_NM, FIRST_NM, ADDRESS.Text
FROM PERSON INNER JOIN ADDRESS
ON PERSON.EMPLOYEE_ID=ADDRESS.EMPLOYEE_ID
where PERSON.LAST_NM = @LAST_NM AND FIRST_NM = @FIRST_NM
September 26, 2005 at 2:03 pm
Don't know how to confirm the stats... The reindex should've taken care of it (please correct me if I'm wrong).
September 26, 2005 at 1:35 pm
September 26, 2005 at 1:19 pm
There's the keyword... You shouldn't have hardcoding whenever possible. Imagine this app 3 years from now. You have coded that in 9-10 places and now you have to...
September 26, 2005 at 1:17 pm
The real question is why are they not already in such a table??
September 26, 2005 at 12:47 pm
Seems too much like an homework question...
This is just a simple inner join, there's no way a programmer can't figure this one out.
September 26, 2005 at 12:26 pm
Can't work, names are repeatable so you might have 2 John Smith>>returning 2 ids.
In what context would you want to do that?
September 26, 2005 at 12:18 pm
1 - Performance killer and also the db can do it for you so why bother??
2 - Yup you must know what you're doing... but even then dropping the constraint...
September 26, 2005 at 12:13 pm
I'd guess about 8
.
How many rows in each table?
Are the stats up to date and was the sp recompiled after that.
Did you check...
September 26, 2005 at 12:00 pm
Works great... but you now have unvalidated data in the table so you might has well drop the constraint altogether.
September 26, 2005 at 11:47 am
Can you start this from the begining??
What do you have to do exactly?
September 26, 2005 at 11:24 am
Can you imagine the overhead with 10K TPM??????
Might be usefull, bu that would have to be in a trace flag or something...
September 26, 2005 at 10:10 am
Viewing 15 posts - 12,886 through 12,900 (of 18,923 total)