I deleted the DB. Created one fresh with new user mainDR2.
I logged into sql query analyzer with mainDR2
I wrote following
- Use MyDatabase
- Select from Member ------- shows invalid object name member
- Select from main.Member ------- shows all records properly
user main is coming from old database when i import in Plesk.
I am sure i am missing something silly
Even Select * into Member from main.Member works properly
I don't know if you have any experience with later versions of SQL Server, but if you have, SQL 2000 can certainly be confusing.
If you are logged as the user main and you say
CREATE TABLE Member
That table will be created in your default schema. Actually, this is true for all versions of SQL Server. But what is weird in SQL 2000 and earlier version is that your default schema is always your username and this cannot be changed. Or more specifically: on SQL 2000 owner and schema was the same, and we never talked about schema in those days.
Best advice: stay away from SQL 2000.