Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase «««123

Worst Practice - Not Qualifying Objects With The Owner Expand / Collapse
Author
Message
Posted Tuesday, December 12, 2006 12:22 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, July 11, 2013 1:01 AM
Points: 153, Visits: 59

Can I use the orders table like the following:

databaseName..orders     ????

if yes then where the SqlServer will search for the object first?

 

Regards,

Vivek

Post #329693
Posted Wednesday, December 13, 2006 1:14 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Thursday, September 18, 2014 7:56 AM
Points: 6,723, Visits: 8,462

yes.

prior to sql2005 sqlserver would search for ...

databaseName.YOURLOGINUSER.orders    

then for databaseName.DBO.orders    

with sql2005 it will start searching for ...

databaseName.YOURDEFAULTSCHEMA.orders    

then for databaseName.DBO.orders    



Johan


Don't drive faster than your guardian angel can fly ...
but keeping both feet on the ground won't get you anywhere

- How to post Performance Problems
- How to post data/code to get the best help


- How to prevent a sore throat after hours of presenting ppt ?


"press F1 for solution", "press shift+F1 for urgent solution"


Need a bit of Powershell? How about this

Who am I ? Sometimes this is me but most of the time this is me
Post #330055
« Prev Topic | Next Topic »

Add to briefcase «««123

Permissions Expand / Collapse