Re: Status Column in sysobjects table...SQL2000
From: NB (NB_at_discussions.microsoft.com)
Date: 02/18/05
- Next message: Britney: "Re: can't force index"
- Previous message: NB: "Re: Status Column in sysobjects table...SQL2000"
- In reply to: Dan Guzman: "Re: Status Column in sysobjects table...SQL2000"
- Next in thread: Dan Guzman: "Re: Status Column in sysobjects table...SQL2000"
- Reply: Dan Guzman: "Re: Status Column in sysobjects table...SQL2000"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 18 Feb 2005 15:43:07 -0800
Hi Dan,
I mean when the same piece of code i.e. the stored procedure is compiled
using isql or query analyser , it behaves differently at run time with
identica; parameters it throws error in once case and executes successfully
in the query analyser compiled manner.
Also the status column of sysobjects is different in all three cases when
compiled from isql,osql or query analyser.
Please advise.
Regards,
Nishant
"Dan Guzman" wrote:
> The QUOTED_IDENTIFER setting may or may not prevent the proc from being
> created but it is unlikely that the setting will affect results. On the
> other hand, ANSI_NULLS will not affect the procedure create but you may get
> different run-time behavior.
>
> Can you elaborate on exactly what you mean when you say that the identical
> stored procedures behave differently?
>
> --
> Hope this helps.
>
> Dan Guzman
> SQL Server MVP
>
> "NB" <NB@discussions.microsoft.com> wrote in message
> news:95887047-E0CF-466B-95F0-548EFE5E32A8@microsoft.com...
> > Thanks for your prompt reply dan but I think if there was an issue with
> > the
> > Quoted_Identifiers and/or ANSI_NULLS it would not even compile. I did
> > check
> > using the code you posted all procudures have both the properties set. I
> > am
> > soory I should have also metioned that the databases compatibility level
> > for
> > the database is set to 6.5 due to backward compatibility reasons.
> >
> > I am not sure if there is any way to get this undocumented information. I
> > am
> > aware that Sybase usually includes such information in their manuals. I
> > will
> > try searching SYBOOKS.
> >
> > Any suggestions are eagerly sought and highly appreciated.
> >
> > Thanks once again!!!
> >
> > Regards,
> > Nishant
> > "Dan Guzman" wrote:
> >
> >> These values are undocumented in SQL 2000 but you can use OBJECTPROPERTY
> >> to
> >> determine the meaning.
> >>
> >> A likely cause of behavior differences in otherwise identical procs is
> >> the
> >> ANSI_NULLS setting. The ANSI_NULLS and QUOTED_IDENTIFIER settings at
> >> creation time are remembered. These override the connection settings at
> >> execution time. You can identify these settings using OBJECTPROPERTY:
> >>
> >> SELECT
> >> name,
> >> OBJECTPROPERTY(id, 'ExecIsQuotedIdentOn') AS QuotedIdentOn,
> >> OBJECTPROPERTY(id, 'ExecIsAnsiNullsOn') AS AnsiNullsOn
> >> FROM sysobjects
> >> WHERE type = 'P' AND
> >> OBJECTPROPERTY(id, 'IsMSShipped') = 0
> >>
> >> --
> >> Hope this helps.
> >>
> >> Dan Guzman
> >> SQL Server MVP
> >>
> >> "NB" <NB@discussions.microsoft.com> wrote in message
> >> news:B3C382E9-09B4-4AE1-87FB-66656A6126DD@microsoft.com...
> >> > Hi,
> >> >
> >> > Can anyone please guide me as to what the different values in the
> >> > Status
> >> > column of the Sysobjects table mean. I found the following values in my
> >> > SQL
> >> > 2000 server installation.
> >> >
> >> > 1610612736
> >> > -536870912
> >> > 16
> >> > 1610612736
> >> > 1610612993
> >> > 1610612736
> >> > 0
> >> >
> >> > The same procedure behave different if it is compiled and ends up with
> >> > a
> >> > different status, even though there are no compilation errors.
> >> >
> >> > Regards,
> >> > NB
> >>
> >>
> >>
>
>
>
- Next message: Britney: "Re: can't force index"
- Previous message: NB: "Re: Status Column in sysobjects table...SQL2000"
- In reply to: Dan Guzman: "Re: Status Column in sysobjects table...SQL2000"
- Next in thread: Dan Guzman: "Re: Status Column in sysobjects table...SQL2000"
- Reply: Dan Guzman: "Re: Status Column in sysobjects table...SQL2000"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|