![]() |
DB Connection Error... |
Post Reply ![]() |
Author | |
Eric ![]() Newbie ![]() Joined: 19-October-2009 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 19-October-2009 at 3:14pm |
I'm trying to add the 'Small Shopping Cart' resource to an existing HTML page, and am getting this error:
"Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified /[my site name]/[my renamed 'Product Cart folder']/pc/SmallShoppingCart.asp, line 88 Lines 87-88 in the SmallShoppingCart.asp file look like this: Set conTempSC=Server.CreateObject("ADODB.Connection") conTempSC.Open scDSN ==== I'm currently using a local test environment (SQL Express and the site are on the same box), and am using a local 'system' (the driver is 'SQL Server'--very generic) DSN connection to establish connectivity to the db. Any ideas as to what I'm doing wrong? |
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
Is this a .HTML page or a .ASP page. If it is a .ASP page, you need other included files such as storeconstants.asp, opendb.asp, and probably others for this to work.
If this is a .HTML page it won't work.
|
|
![]() |
|
Eric ![]() Newbie ![]() Joined: 19-October-2009 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Hi Greg,
It's an ASP page, but without the various includes you mention. It was created as a JavaScript ASP page, and uses the default page info as follows: <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> [etc] ==== Do you know where I might find documentation on what includes to put in? Many thanks! |
|
![]() |
|
Eric ![]() Newbie ![]() Joined: 19-October-2009 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
PS:
I've managed to get the connection issue resolved (I think) and am seeing the 'SmallShoppingCart.asp' page now, but am not parsing it properly: Microsoft JScript compilation (0x800A03EC) Expected ';' /[my site name]/[renamed Product Cart folder]/pc/SmallShoppingCart.asp, line 2, column 322 'This file is part of ProductCart, an ecommerce application developed and sold by Early Impact LLC. ProductCart, its source code, the ProductCart name and logo are property of Early Impact, LLC. Copyright 2001-2006. All rights reserved. You are not allowed to use, alter, distribute and/or resell any parts of ProductCart's source code without the written consent of Early Impact. To contact Early Impact, please visit www.earlyimpact.com. |
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
I'm not sure there really is documentation. The best starting point is to grab the includes from the top of viewprd.asp. Then there may be code which needs to be cloned over from that page in order, for example, to open the database connection. But that's the basic issue is that you need the database open and available for this to work.
If you are comfortable with ASP, this may get you close enough to get the job done. If not, you may want to hire a developer who can help get it done.
Good luck.
|
|
![]() |
|
Eric ![]() Newbie ![]() Joined: 19-October-2009 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Greg,
Thanks for that information. It's a great starting point, and I'll see how I get on with it. Many thanks again! |
|
![]() |
|
Eric ![]() Newbie ![]() Joined: 19-October-2009 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Greg,
I was able to get everything working properly by adding the 'ViewPrd'-listed includes. Thanks for the advice; you're a lifesaver! Eric |
|
![]() |
|
Guests ![]() Guest ![]() |
![]() ![]() ![]() ![]() ![]() |
Did you say this page was written JS ASP? Looks like you are missing an end line delimiter. In the JS syntax you have to end each line with the semi colon, unlike with VB Script.
|
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
I think he's already past that Sean. He said he got it all to work.
|
|
![]() |
|
Guests ![]() Guest ![]() |
![]() ![]() ![]() ![]() ![]() |
Seems I didn't have the latest on the thread for some reason when I posted.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |