Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

SQL Best Practices Analyzer Rule: Use of Schema Qualified Tables/Views
SQL BPA says the following:

"One or more objects are referencing tables/views without
specifying a schema! Performance and predictability of the
application may be improved by specifying schema names."

"When SQL Server looks up a table/view without a schema
qualification, it first searches the default schema and then the
'dbo' schema. The default schema corresponds to the current
user for ad-hoc batches, and corresponds to the schema of a
stored procedure when inside one. In either case, SQL Server
incurs an additional runtime cost to verify schema binding of
unqualified objects. Applications are more maintainable and
may observe a slight performance improvement if object
references are schema qualified."

How important is to specify the schame (dbo. in my case) in
stored procedures? Will it really improve performance if I go
and fix each object that is missing "dbo."?

The problem is I have thousands and thousands of them
with no schemas. Before I invest a lot of time fixing them
I am trying to determine if it's really worth it or not?

Thank you



Report this thread to moderator Post Follow-up to this message
Old Post
serge
12-16-05 08:23 AM


Re: SQL Best Practices Analyzer Rule: Use of Schema Qualified Tables/Views
> How important is to specify the schame (dbo. in my case) in
> stored procedures? Will it really improve performance if I go
> and fix each object that is missing "dbo."?

It will improve performance but the 'slight performance improvement'
probably doesn't justify a significant effort to implement the
recommendation for thousands of instances.  However, you should
schema-qualify objects for new development and perhaps as you perform
maintenance.

--
Hope this helps.

Dan Guzman
SQL Server MVP

"serge" <sergea@nospam.ehmail.com> wrote in message
news:gOrof.14720$yf7.259350@weber.videotron.net...
> SQL BPA says the following:
>
> "One or more objects are referencing tables/views without
> specifying a schema! Performance and predictability of the
> application may be improved by specifying schema names."
>
> "When SQL Server looks up a table/view without a schema
> qualification, it first searches the default schema and then the
> 'dbo' schema. The default schema corresponds to the current
> user for ad-hoc batches, and corresponds to the schema of a
> stored procedure when inside one. In either case, SQL Server
> incurs an additional runtime cost to verify schema binding of
> unqualified objects. Applications are more maintainable and
> may observe a slight performance improvement if object
> references are schema qualified."
>
> How important is to specify the schame (dbo. in my case) in
> stored procedures? Will it really improve performance if I go
> and fix each object that is missing "dbo."?
>
> The problem is I have thousands and thousands of them
> with no schemas. Before I invest a lot of time fixing them
> I am trying to determine if it's really worth it or not?
>
> Thank you
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Dan Guzman
12-17-05 08:23 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

Microsoft SQL Server forum archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 11:26 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006