Viewing 15 posts - 271 through 285 (of 5,356 total)
Ever had a beginners course in statistics? Results should be too volatile...
May 30, 2005 at 1:34 am
Since I started my statistics, my avg. postcount daily is about ~8, since I record yours, yours is ~6,32. Guess when both counts will intersect
May 27, 2005 at 6:43 am
Copy Chris' script into Query Analyzer, replace dbid and objectid with valid values, add a
SELECT * FROM #ind
DROP TABLE #ind
There you go.
May 27, 2005 at 3:39 am
Your posting made me aware of DBCC IND. Found it now in Inside SQL Server. Very, very useful at times
May 27, 2005 at 2:56 am
DBCC IND is undocumented.
Btw, would this help?
SELECT
CAST(OBJECT_NAME(sysind.id) AS CHAR(20)) AS TableName
, CAST(sysind.name AS CHAR(30)) AS IdxName
, FILENAME
, CAST(sysfg.groupname AS CHAR(10)) AS GroupName
FROM...
May 27, 2005 at 2:21 am
You can also set up a trace to monitor this.
See if this helps http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsqlmag01/html/TrackingDownEventClues.asp
May 27, 2005 at 1:53 am
Just to add.
Even if you don't supply a numeric value like 0, an empty string will also cause the 19000101 date in a date column:
select cast('' as datetime)
------------------------------------------------------
1900-01-01...
May 27, 2005 at 12:04 am
To me it looks like you're complicating things here
What's the purpose of this whole exercise? What should this calculation mean?
May 27, 2005 at 12:00 am
Thanks, I've never been away.
Just reducing activity to work, learn and read.
May 25, 2005 at 8:40 am
FWIW, another one:
select
convert(char(8),dateadd(ss,datediff(mi,'2005-05-16 15:02:33.347', '2005-05-17 09:23:30.813') ,0),108)
May 25, 2005 at 8:34 am
I'm not sure if I understand you correctly, but CASTing to DECIMAL works for me
declare @a float
set @a =8.5164835164835168E-2
select
@a
, round(cast(@a as decimal(5,3)),3)
, cast(round(@a,3) as decimal(5,3))
----------------------------------------------------- ------- -------...
May 25, 2005 at 7:44 am
Are you sure your front-end doesn't enter a 0 into the column?
May 25, 2005 at 7:27 am
FWIW, here's an interesting article by SQL Server MVP Itzik Ben-Gan on this topic
May 25, 2005 at 1:49 am
May 24, 2005 at 8:39 am
Viewing 15 posts - 271 through 285 (of 5,356 total)