Viewing 15 posts - 3,721 through 3,735 (of 8,416 total)
Perry Whittle (4/21/2010)
WhetherIi explained it well or not is anybody's opinion, but then I wasn't aware we were splitting hairs. I just made an observation 😉
I blame Wayne - he's...
April 21, 2010 at 4:18 pm
Stefan_G (4/21/2010)
April 21, 2010 at 8:35 am
Sumanta-1056020 (4/21/2010)
Thank you all for the reply.Anybody knows T-SQL commands to get the data pages for a particular table.
Take a look at:
April 21, 2010 at 8:25 am
Stefan_G (4/21/2010)
select * from dbo.SafeDateAdd(cast('99991231' as datetime),1)declare @d datetime
set @d=cast('99991231' as datetime)
select * from dbo.SafeDateAdd(@d,1)
Both run without error for me on both 2005 and 2008.
Versions tested:
SQL Server 2005: 9.0.4285
SQL Server...
April 21, 2010 at 8:16 am
Stefan_G (4/21/2010)
The only reason I mentioned sysindexes is that it is the easiest way to get the information the OP asked originally asked for.
Fine. The only reason I mentioned...
April 21, 2010 at 8:04 am
Stefan_G (4/21/2010)
Nice function, the only problem is that this throws an error:select * from dbo.SafeDateAdd('99991231',1)
Works fine here. :w00t: :w00t: :w00t:
Have you tried passing it a date time rather than a...
April 21, 2010 at 7:53 am
Stefan_G (4/21/2010)
April 21, 2010 at 7:49 am
Grant Fritchey (4/21/2010)
It is a tad costly, but not like the DBCC check.
LIMITED mode just scans level 1 of the index structures (not the leaf) - or just the IAM...
April 21, 2010 at 7:31 am
Stefan_G (4/21/2010)
One problem with sys.dm_db_index_physical_stats is that it can take a fair amount of time and resources to run it on a large table.
This is true, but some quite widely-used...
April 21, 2010 at 7:24 am
PaulB-TheOneAndOnly (4/21/2010)
...but I'm sure some purist will say you can't have "referential integrity" and "null value" on the same phrase 😉
Yes, they probably will...
April 21, 2010 at 7:17 am
In-line function example:
Creation:
USE tempdb;
GO
CREATE FUNCTION dbo.SafeDateAdd
(
@BaseDate DATETIME,
...
April 21, 2010 at 7:15 am
Ionut Hrubaru (4/21/2010)
I just wish it was a bug 🙂
It is a bug, just not in SQL Server 😛
The optimiser in SQL Server can use a number of transformations...
April 21, 2010 at 6:48 am
Sumanta-1056020 (4/21/2010)
Is there any t-sql commands to get the no. of data pages contained by a particular table and the no. of index pages for a index?
I would probably use...
April 21, 2010 at 6:30 am
Dohsan (4/21/2010)
I was just reading up about possible collation issues using [Aa-Zz] etc, would it make much difference to performance to list them all?
CONSTRAINT CHK_TextCol CHECK (TextCol NOT LIKE '%[^abcedefghijklmnopqrstuvwxyzABCEDEFGHIJKLMNOPQRSTUVWXYZ]%')
That...
April 21, 2010 at 4:34 am
Viewing 15 posts - 3,721 through 3,735 (of 8,416 total)