Viewing 15 posts - 7,096 through 7,110 (of 7,608 total)
Langston Montgomery (11/7/2012)
When I add the NOLOCK hint, the query literally joins rows that are not equal, and returns the wrong results.
Something else is going on there. If you...
November 8, 2012 at 4:32 pm
It will increase the size of the index, but only for leaf pages. The non-leaf pages of the index will be the same size as before.
November 8, 2012 at 4:25 pm
Jeff Moden (11/3/2012)
ScottPletcher (11/2/2012)
November 5, 2012 at 9:34 am
I do see one potential valid use for a heap (an unclustered table): as a bulk staging table. That is, if you just need a table to quickly bulk-load...
November 5, 2012 at 9:25 am
mmallkc (10/30/2012)
Whenever I try to insert a new record in violation of this constraint, I get an error as expected. However, when I update the table in violation of this...
November 2, 2012 at 5:20 pm
capnhector (11/1/2012)
David92595 (11/1/2012)
November 2, 2012 at 5:03 pm
How many columns can a table have?
Haven't a clue. If you get even close, you've got a horrible table design anyway.
Who would ask such a Mickey Mouse q??
November 2, 2012 at 4:47 pm
You could also use WHERE with NOT:
...
WHERE NOT (
(CARS = 'Volvo' AND Year = 2006) OR
(CARS = 'Buick' AND Year =...
November 2, 2012 at 4:39 pm
scogeb (11/2/2012)
Michael Valentine Jones (11/2/2012)
scogeb (11/2/2012)
November 2, 2012 at 4:34 pm
I think technically this is the last time the table was accessed since SQL was last (re)started.
October 30, 2012 at 8:54 am
/* Author: ScottPletcher */
SELECT
start_date,
end_date AS end_date,
CAST(
DATEDIFF(YEAR, start_date, end_date) - CASE...
October 29, 2012 at 5:12 pm
What is the problem? Do you have NULLs in the the MainZip when it's not present/used?
SELECT D.*
FROM Doctors D
INNER JOIN ZipCodes Z ON
(D.MainZip IS...
October 29, 2012 at 4:41 pm
Don't rely solely on the missing index recommendations from those tables. SQL typically suggests way too many indexes. You need to have someone review all available information before...
October 24, 2012 at 9:40 am
I would have to know the version of SQL to know how to answer this.
For 2008+, you have CDC.
For SQL prior to that, they probably wouldn't like my answer, but...
October 22, 2012 at 2:27 pm
Viewing 15 posts - 7,096 through 7,110 (of 7,608 total)