Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Two part notation

Author  Topic 

mahesh_bote
Constraint Violating Yak Guru

298 Posts

Posted - 2007-05-28 : 07:56:30
refering tables in two part notation means what?

can anybody tell me, what is Two Part Notation? or does it means adding alias to the table following by the table name?

Thanks in advance,

Mahesh

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-05-28 : 08:20:33
Normally there are four parts to refer to a database object.

ServerName.DatabaseName.OwnerName.ObjectName

So I guess the two-part naming refers to Ownername.tablename, like dbo.someTable

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-05-28 : 08:20:52
4 part:
serverName.dbName.schemaName.tableName
3 part:
dbName.schemaName.tableName
2 part:
schemaName.tableName
1 part:
tableName

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page
   

- Advertisement -