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

what does [dbo].[Accounts] mean?
What does the "[dbo]." mean in the following sql script stmts?

use [IBuyAdventure]
GO

if exists (select * from dbo.sysobjects where
id = object_id(N'[dbo].[Accounts]')
and  OBJECTPROPERTY(id,N'
IsUserTable') = 1)
drop table [dbo].[Accounts]
GO

and if you please, what does the "N" in N'IsUserTable' mean?

thanks,

-Steve


Report this thread to moderator Post Follow-up to this message
Old Post
Steve Richter
04-25-05 01:23 AM


Re: what does [dbo].[Accounts] mean?
> What does the "[dbo]." mean in the following sql script stmts?

'dbo' is the schema (a.k.a object owner).  A schema is essentially a
namespace in a relational DBMS.

> and if you please, what does the "N" in N'IsUserTable' mean?

The 'N' string literal prefix is mnemonic for 'National' and denotes a
Unicode character string.

--
Hope this helps.

Dan Guzman
SQL Server MVP

"Steve Richter" < StephenRichter@gmail
.com> wrote in message
news:1114389431.733096.158430@f14g2000cwb.googlegroups.com...
> What does the "[dbo]." mean in the following sql script stmts?
>
> use [IBuyAdventure]
> GO
>
> if exists (select * from dbo.sysobjects where
>  id = object_id(N'[dbo].[Accounts]')
>  and  OBJECTPROPERTY(id,N'
IsUserTable') = 1)
> drop table [dbo].[Accounts]
> GO
>
> and if you please, what does the "N" in N'IsUserTable' mean?
>
> thanks,
>
> -Steve
>



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


Re: what does [dbo].[Accounts] mean?
You can also have {DB].[dbo].[accounts] where DB is the database name

Madhivanan


Report this thread to moderator Post Follow-up to this message
Old Post
Madhivanan
04-25-05 12:23 PM


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 08:06 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006