Suppose, I've created a new database DB1 n i've created a table DB1.T1.Now, DESC T1 --> desplaying the table structure butselect * from DB1.T1 ---->giving--> table or view does not exist.. Can any one explain possible reason behind this.

Questions by shamim909   answers by shamim909

Showing Answers 1 - 14 of 14 Answers

dyaneshwaran

  • Nov 1st, 2006
 

bcos Owner names is missing in the select

use

Select * from DB1.dbo.T1

  Was this answer useful?  Yes

You cannot use the database name before the table name like db1.t1.


we can only use a user name and then table name. eg. let we have a user "deepak" then we can write select * from deepak.t1 .  We can't write select * from db1.t1 coz db1 is a database name not a user name and tables are owned by users not by the database. Database is just the way to store the data.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions