SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Two part notation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mahesh_bote
Constraint Violating Yak Guru

India
298 Posts

Posted - 05/28/2007 :  07:56:30  Show Profile  Reply with Quote
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

Edited by - mahesh_bote on 05/28/2007 08:01:55

harsh_athalye
Flowing Fount of Yak Knowledge

India
5509 Posts

Posted - 05/28/2007 :  08:20:33  Show Profile  Visit harsh_athalye's Homepage  Click to see harsh_athalye's MSN Messenger address  Send harsh_athalye a Yahoo! Message  Reply with Quote
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

Slovenia
11750 Posts

Posted - 05/28/2007 :  08:20:52  Show Profile  Visit spirit1's Homepage  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000