Wednesday, March 7, 2012

Db object script

Hi,
While generating the script for dbobjects iam getting the following
script ,
I would like to know the significance of this statement or direct me to
the place where I can get the information.
Regards
Gopinath
update syscolumns
set typestat = (Convert(int, 0xff) ^ 0x02) & typestat
where syscolumns.id = object_id(dbo.tName) and
syscolumns.name in (fQuestion) and
syscolumns.xoffset <> 0Hi
typestat in sycolumns is an internal value that should not be modified.
Actually, any direct update of any system tables should not be attempted as
that functionality breaks in SQL Server 2005.
The script yopu are running sets the bit flag for TrimTrailingBlanks On.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Gopinath S" wrote:

> Hi,
> While generating the script for dbobjects iam getting the following
> script ,
> I would like to know the significance of this statement or direct me to
> the place where I can get the information.
> Regards
> Gopinath
>
> update syscolumns
> set typestat = (Convert(int, 0xff) ^ 0x02) & typestat
> where syscolumns.id = object_id(‘dbo.tName’) and
> syscolumns.name in (‘fQuestion’) and
> syscolumns.xoffset <> 0
>|||Mike Epprecht (SQL MVP) wrote:[vbcol=seagreen]
> Hi
> typestat in sycolumns is an internal value that should not be modified.
> Actually, any direct update of any system tables should not be attempted a
s
> that functionality breaks in SQL Server 2005.
> The script yopu are running sets the bit flag for TrimTrailingBlanks On.
> Regards
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
>
> "Gopinath S" wrote:
>
Thanks for the information

No comments:

Post a Comment