TextImage_On option bit for user-defined filegroup in SQL Server -
i created 2 tables this
create table t1 ( [c1] varchar(max), [c2] int ) on [primary] create table t2 ( [c1] varchar(max), [c2] int ) on [primary] textimage_on [myfilegroup] and inserted them same data unable find how different are. i'd know bit or flag value set on second table tell sql server 1 or more of columns being stored on [myfilegroup] , rest on default storage.
any helpful idea appreciated. thanks!
prior sql server 2005 there special iam chain dedicated lob pages, starting 2005 there allocation units contain information. can read more on here: inside storage engine: iam pages, iam chains, , allocation units
you can use script this:
select object_name(p.object_id) obj_name, --fg.data_space_id, fg.name, --fg.type_desc, au.* sys.partitions p inner join sys.allocation_units au on au.container_id = p.hobt_id inner join sys.filegroups fg on fg.data_space_id = au.data_space_id fg.name = 'myfilegroup' -- , p.object_id = object_id('t2'); to see page types belonging filegroup (this code shows aggregated information per object per page type)
and can detailed (per page) information joinig code sys.dm_db_database_page_allocations() (of course passing in db_id() , object_id() limit rows returned)
Comments
Post a Comment