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
 General SQL Server Forums
 New to SQL Server Programming
 Sql 2005 lgoin issue

Author  Topic 

engcanada
Starting Member

39 Posts

Posted - 2008-06-26 : 20:28:07
I have just upgraded my database from sql 2000 to 2005 however all tables now preceded with login name in which forcing me to change all me sql statement to with tables login name followed by the table name i.e.
select * from loginname.tablename
instead of
select * from tablename

Did I miss any step when I brought my database from 2000 to 2005.

Any idea how to get around this without having to alter all y statements.

Thank you

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-06-26 : 20:32:02
How did you perform the upgrade? It doesn't sound like you did it via either recommended approach: detach/attach or backup/restore.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-06-26 : 20:53:18
Make that schema your default schema in Logins.
Go to Top of Page

engcanada
Starting Member

39 Posts

Posted - 2008-06-26 : 20:54:20
TASK>COPY DATABASE
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-06-26 : 22:04:29
You wouldn't have this issue if you'd used the methods I mentioned. Are you able to start over so that you don't have to change default schemas, code, or anything else?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

engcanada
Starting Member

39 Posts

Posted - 2008-06-26 : 22:20:59
Yes I can do that.
Thanks for all your help!
All the best
Go to Top of Page
   

- Advertisement -