Viewing 15 posts - 1,726 through 1,740 (of 18,926 total)
Simpler if you change the datatype in the temp table ;-).
CREATE TABLE #dbs
(
DBNAME sysname
, DBID INT
, [Total Size in MB] DECIMAL(18,2)
, [Available Space in MB] DECIMAL(18,2)
, DriveLetter CHAR(1)
)
INSERT...
October 26, 2011 at 6:28 am
dick.baker (10/26/2011)
Removed
Even with all that crap you have nothing against the fk points (which is what the question is ALL about)?
So I guess that means it's a great...
October 26, 2011 at 6:19 am
1 of those numbers need to be a decimal.
int / int * int = int.
Try with 100.0 (yes 100 dot 0).
October 26, 2011 at 5:57 am
You're that short on space that a few KB matters??
That's a whole other problem ;-).
As previously mentionned use / 128.0. That way it auto-casts to decimal.
October 26, 2011 at 5:47 am
AFAIK, those can't really be tuned other than changing the cursor type & locations and "batch" size.
However the query itself that fills those datasets is where you can make a...
October 26, 2011 at 5:42 am
@Cadavre We stopped wasting our time proving wrong JC (not short for Jesus-Christ).
However this is a great proof that theory is not real life and that performance is still...
October 26, 2011 at 5:39 am
Quite possibly.
What's the definition of the columns on that index?
Are those columns getting lots of updates?
October 25, 2011 at 1:38 pm
Try LEFT(middlename + '.', 1) instead.
That'll work depending on your concat_null_yields_null setting.
October 25, 2011 at 10:01 am
SELECT ID FROM dbo.Table
GROUP BY ID
HAVING COUNT(DISTINCT DepartmentId) > 1
October 25, 2011 at 9:56 am
SELECT ID FROM dbo.Table GROUP BY ID HAVING COUNT(*) > 1
October 25, 2011 at 9:46 am
The real purpuse of the script I gave you was to do forecasting and growth planning.
Maybe when you're ready ;-).
October 25, 2011 at 8:00 am
derekr 43208 (10/25/2011)
Ninja's_RGR'us (10/25/2011)
derekr 43208 (10/25/2011)
Apologies for that - Doesnt look goodPlease see attached
C:\Users\derekr\Desktop\Result.jpg
I can't see what's on your c drive. You need to upload it here.
If you want...
October 25, 2011 at 7:49 am
derekr 43208 (10/25/2011)
Apologies for that - Doesnt look goodPlease see attached
C:\Users\derekr\Desktop\Result.jpg
I can't see what's on your c drive. You need to upload it here.
If you want you can copy...
October 25, 2011 at 7:46 am
Excluding the last 2 columns that are used to link the backup sequence together, what's unclear??
October 25, 2011 at 7:42 am
Fine, what does this do??
SELECT
...
October 25, 2011 at 7:29 am
Viewing 15 posts - 1,726 through 1,740 (of 18,926 total)