Viewing 15 posts - 6,826 through 6,840 (of 7,608 total)
Hmm, you could create a db with the new name, and create synonyms pointing back to the old db.
But synonyms can only be used for these types of objects:
Assembly (CLR)...
February 5, 2013 at 4:54 pm
nick.mcdermaid (2/5/2013)
I can try clustering SE on RowNum_Start and RowNum_End...
February 5, 2013 at 4:47 pm
If possible, you need to get rid of the massive GROUP BY (and also reduce the number of expensive joins required); that means using a subquery on CDBF.
I've taken my...
February 5, 2013 at 4:43 pm
CAST(CAST(CAST(ISNULL(char_value, 0) AS decimal(5, 2)) * 100 AS int) AS varchar(5))
SELECT
CAST(CAST(CAST(ISNULL(char_value, 0) AS decimal(5, 2)) * 100 AS int) AS varchar(5))
FROM (
SELECT...
February 5, 2013 at 4:18 pm
Code below should take care of the 'C' type.
The 'B' type is attempting to concatenate chars and numerics, which will always cause a conversion error, so it definitely needs changed...
February 5, 2013 at 4:09 pm
SELECT
Studentid,
MIN(dateid) AS First_Absence_Date,
MAX(dateid) AS Last_Absence_Date,
COUNT(*) AS Total_Consecutive_Absences
FROM (
...
February 5, 2013 at 3:46 pm
wnarretto (2/5/2013)
yes the original code is doing a select into. Your answer is what i was suggesting but a coworker mentioned that their was a filter...
February 5, 2013 at 1:25 pm
Are you doing a SELECT ... INTO?
If so, that may hold schema locks for the entire duration.
Instead, do an initial "dummy" SELECT ... INTO ... WHERE 1 = 0 to...
February 5, 2013 at 11:48 am
Want a cool sig (2/5/2013)
The link you are referring to is the first one in my signature. Unfortunately it doesn't do much good here because the OP is " in...
February 5, 2013 at 11:00 am
nick.mcdermaid (2/5/2013)
2. HOW can I give SQL Server the clue that the ranges are mutually exclusive? There are no constraints that I can put on the table to indicate this.
You...
February 5, 2013 at 10:56 am
If Dec 31, 1967 is the "border" date, and the date and time values really are separate integers::
For a date only:
SELECT
DATEADD(DAY, UniDataDays, CAST('19671231' AS date))
For a...
February 4, 2013 at 11:07 am
opc.three (1/31/2013)
February 4, 2013 at 10:32 am
GilaMonster (2/1/2013)
jfogel (2/1/2013)
One last question. I read that when executing the enable RCS command that there can't be any other connections or transactions open in that database.
Correct
Then the article goes...
February 1, 2013 at 3:23 pm
Ed Wagner (2/1/2013)
Also, btw, turn on IFI unless for security reasons you can't. That will dramatically speed up data file growth on all databases, including system ones.
What is IFI?
Try...
February 1, 2013 at 1:20 pm
I suspect the dbo.sales should really be clustered by date. If so, and you fix that, the rest of the query won't hurt the performance that much one way...
February 1, 2013 at 1:14 pm
Viewing 15 posts - 6,826 through 6,840 (of 7,608 total)