Has the Database Structure Changed?
- igavemybest
- Captain (CAPT)
- Posts: 388
- Joined: Sun Apr 06, 2008 5:47 pm
Has the Database Structure Changed?
Why do the database tables, when I do a new install, have my store/user name as a prefix to all the tables instead of dbo? I have some custom importers that use it, is there any way to change this?
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Has the Database Structure Changed?
It must be something to do with your SQL user permissions.Here is how you change it:
http://www.mssqltips.com/tip.asp?tip=1396
Change Object Owner/Schema
To change the ownership of objects you can use the ALTER SCHEMA command for SQL 2005 or the sp_changeobjectowner for SQL 2000.
Example: change the schema for table Test from the dbo schema to schema TestSchema
--SQL 2005
ALTER SCHEMA TestSchema TRANSFER dbo.Test
--SQL 2000
sp_changeobjectowner 'Test', 'TestSchema';
http://www.mssqltips.com/tip.asp?tip=1396
Change Object Owner/Schema
To change the ownership of objects you can use the ALTER SCHEMA command for SQL 2005 or the sp_changeobjectowner for SQL 2000.
Example: change the schema for table Test from the dbo schema to schema TestSchema
--SQL 2005
ALTER SCHEMA TestSchema TRANSFER dbo.Test
--SQL 2000
sp_changeobjectowner 'Test', 'TestSchema';
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
- igavemybest
- Captain (CAPT)
- Posts: 388
- Joined: Sun Apr 06, 2008 5:47 pm
Re: Has the Database Structure Changed?
Yes, the DBA has changed something so the user has its own schema for some reason. Thx 
