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.
| Author |
Topic |
|
TRACEYSQL
Aged Yak Warrior
594 Posts |
Posted - 2007-07-24 : 11:20:49
|
| I just imported a database from SQL 2000 to SQL 2005In SQL 2000 i have two users WEBFORMS WEBFORMSUSERI see in 2005 it created two schemas and two users.Database is called WEBFORMSAll tables are dbo.Is it best to make all the tables become WEBFORMS.Employeeand then have one Schema called WEBFORMSOne user called WEBFORMSUSER that access WEBFORMS Schema.Any directions would be appreciated |
|
|
mcrowley
Aged Yak Warrior
771 Posts |
Posted - 2007-07-24 : 11:44:29
|
| If there is nothing in either the WebForms or WebFormsUsers schemas, you may be able to drop them, or at the least ignore them. Schemas are a way of simplifying permissions. You can grant select permissions on a schema, instead of either granting each table individually, or adding someone to the db_datareader role (which would give the user access to EVERYTHING in the database). It sounds like you do not need any of that here, so I would leave everything as is, and let the tables remain under dbo. |
 |
|
|
TRACEYSQL
Aged Yak Warrior
594 Posts |
Posted - 2007-07-24 : 12:21:59
|
| Thanks...I did remove both the schema and users I made all tables become WEBFORMS.TABLECreate schema WEBFORMSUser WEBFORMSUSER assigned to WEBFORMS SchemaSome tables were still dbo.TABLEWhen i log in as WEBFORMSUSERS I did select * fromdbo.TABLE and was expecting this not to work but it gave me the records...I was thinking on select * from WEBFORMS.TABLE would work |
 |
|
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2007-07-24 : 14:32:48
|
| Looks like dbo still owns tables. Maybe table has two copies, one owned by dbo and the other owned by WEBFORMS. |
 |
|
|
TRACEYSQL
Aged Yak Warrior
594 Posts |
Posted - 2007-07-24 : 14:46:08
|
| Gosh silly me yes i was changing the schema but i did it the hard way copy table structure and import data and forgot to delete the dbo.TABLE1Thanks |
 |
|
|
|
|
|