Database issues

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
scuba
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Thu Apr 08, 2010 12:04 pm

Database issues

Post by scuba » Thu Apr 08, 2010 12:13 pm

For some reason, it seems that I cannot use SQL Server Management Studio (hereafter "SSMS") and access my AbleCommerce store web site (hereafter "AC") at the same time. If connect to the database in SSMS, then AC is unavailable (Server error in application). If I disconnect from SSMS and go to AC everything is fine, but I cannot reconnect to the DB in SSMS. If I close AC, I still cannot connect in SSMS (cannot access DB, it is being used by another process). After about 10 minutes has passed since I closed AC, I can get back into the DB through SSMS. Any help would be greatly appreciated. The support staff has not been able to help and told me to post my problem in the forums... Thanks.

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

Re: Database issues

Post by jmestep » Thu Apr 08, 2010 2:13 pm

There is a patch for a server unavailable message if the store cannot access the database
http://help.ablecommerce.com/upgrades/a ... _7.0.3.htm
down at the bottom.

The only reason I can think of that would be causing your issue is if you are only allowing one user at a time to connect to the database, like exclusive access.
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

scuba
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Thu Apr 08, 2010 12:04 pm

Re: Database issues

Post by scuba » Thu Apr 08, 2010 5:00 pm

Thanks, but that patch is for 7.0.3 and I am using 7.0.4 (which I would have to assume already includes the 7.0.3 patches, yes? I've also installed all of the 7.0.4 patches at the suggestion of the support staff... no dice). Where would I check to make sure I don't have exclusive access enabled? I doubt I do unless it is enabled by default in SQL Server Express 2008... :/

scuba
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Thu Apr 08, 2010 12:04 pm

Re: Database issues

Post by scuba » Thu Apr 08, 2010 5:27 pm

Okay, I checked the restricted access option and it is already set to Multi User, so that isn't the problem either... This is driving me crazy! Can you (or anyone else) offer any other advice? Should I export all my data and rebuild the database from scratch or what????

User avatar
Michael Ward
AbleCommerce Moderator
AbleCommerce Moderator
Posts: 132
Joined: Thu Mar 03, 2005 3:00 am

Re: Database issues

Post by Michael Ward » Thu Apr 08, 2010 6:19 pm

Hello
For clarification can you please tell us what version of SQL you are using?

Thanks
Thank you for your support

Michael Ward
Image.com
Follow us on Twitter http://twitter.com/AbleCommerce/

scuba
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Thu Apr 08, 2010 12:04 pm

Re: Database issues

Post by scuba » Fri Apr 09, 2010 11:18 am

I am using SQL Server Express 2008 and SQL Server Management Studio version 10.0.1600.22.

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

Re: Database issues

Post by igavemybest » Sat Apr 10, 2010 12:54 am

I would post it on asp.net forums or better yet here: http://www.sqlteam.com/forums/ . Doesnt sound like an ablecommerce issue.

afm
Captain (CAPT)
Captain (CAPT)
Posts: 339
Joined: Thu Nov 03, 2005 11:52 pm
Location: Portland, OR
Contact:

Re: Database issues

Post by afm » Sat Apr 10, 2010 12:25 pm

scuba wrote:I am using SQL Server Express 2008 and SQL Server Management Studio version 10.0.1600.22.
Are you connecting to the *.mdf file directly from either AC or SSMS? For example, does the AC connection string include "AttachDbFilename"?
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing

scuba
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Thu Apr 08, 2010 12:04 pm

Re: Database issues

Post by scuba » Wed Apr 14, 2010 6:15 pm

afm wrote:
scuba wrote:I am using SQL Server Express 2008 and SQL Server Management Studio version 10.0.1600.22.
Are you connecting to the *.mdf file directly from either AC or SSMS? For example, does the AC connection string include "AttachDbFilename"?
I did attach the database to SSMS--is that the problem?? If I don't attach it, how am I supposed to use SSMS to access the database? (I am a programmer, not a DBA, so a lot of this is new to me). I have no idea if the AC connection string has "AttachDbFilename" in it, as the connection string is encrypted in the database.config file.

afm
Captain (CAPT)
Captain (CAPT)
Posts: 339
Joined: Thu Nov 03, 2005 11:52 pm
Location: Portland, OR
Contact:

Re: Database issues

Post by afm » Wed Apr 14, 2010 8:30 pm

scuba wrote:I did attach the database to SSMS--is that the problem?? If I don't attach it, how am I supposed to use SSMS to access the database? (I am a programmer, not a DBA, so a lot of this is new to me). I have no idea if the AC connection string has "AttachDbFilename" in it, as the connection string is encrypted in the database.config file.
If you use server type of "Database Engine" when you form the connection in SSMS, then SSMS is not causing the problem.

There is an AC Admin setting in Security to remove the connection string encryption.

The bottom line is that if SSMS or AC is connecting to the database in single-user mode, it will lock out the other. Both SSMS and AC can attach directly to the database file, which forces the database into single-user mode. On the other hand, both SSMS and AC can attach to the database as normal SQL Server clients which is definitely multi-user.

If you are not sure, I think you should avoid using SSMS.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing

Post Reply