Viewing 15 posts - 7,081 through 7,095 (of 7,597 total)
AndrewSQLDBA (11/8/2012)
I just saw some of the data as only 3 digits. So 499 would need to be converted to 499.00 etc.....
There may also be a...
November 8, 2012 at 5:07 pm
It depends. Often it's faster just to keep the desired rows rather than delete all the undesired. That is, copy the good rows to another table, trunc the...
November 8, 2012 at 5:01 pm
There could definitely be some lag.
You can issue DBCC UPDATEUSAGE to force the row count to be updated before you use it.
November 8, 2012 at 4:54 pm
You're not changing the physical length of the column, so it shouldn't be too bad.
My guess is that logging the change is taking the time.
Try it again in test but...
November 8, 2012 at 4:52 pm
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
Viewing 15 posts - 7,081 through 7,095 (of 7,597 total)