Has the Database Structure Changed?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
igavemybest
Captain (CAPT)
Captain (CAPT)
Posts: 388
Joined: Sun Apr 06, 2008 5:47 pm

Has the Database Structure Changed?

Post by igavemybest » Tue Apr 06, 2010 12:06 am

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?

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Has the Database Structure Changed?

Post by jmestep » Tue Apr 06, 2010 7:26 am

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';
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

User avatar
igavemybest
Captain (CAPT)
Captain (CAPT)
Posts: 388
Joined: Sun Apr 06, 2008 5:47 pm

Re: Has the Database Structure Changed?

Post by igavemybest » Tue Apr 06, 2010 2:48 pm

Yes, the DBA has changed something so the user has its own schema for some reason. Thx :)

Post Reply