<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>SalesCart Forums : Could not open data c&#111;nnecti&#111;n</title>
  <link>http://forum.salescart.com/forum/</link>
  <description><![CDATA[This is an XML content feed of; SalesCart Forums : SalesCart Standard / PRO / SQL : Could not open data c&#111;nnecti&#111;n]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 02 May 2026 07:44:10 +0000</pubDate>
  <lastBuildDate>Mon, 17 Jul 2006 22:57:38 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.salescart.com/forum/RSS_post_feed.asp?TID=576</WebWizForums:feedURL>
  <image>
   <title><![CDATA[SalesCart Forums]]></title>
   <url>http://forum.salescart.com/forum/forum_images/web_wiz_forums.png</url>
   <link>http://forum.salescart.com/forum/</link>
  </image>
  <item>
   <title><![CDATA[Could not open data c&#111;nnecti&#111;n : Here is the more descriptive error: Type...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=576&amp;PID=2062&amp;title=could-not-open-data-connection#2062</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=367">kdonovan</a><br /><strong>Subject:</strong> 576<br /><strong>Posted:</strong> July/17/06 at 10:57pm<br /><br />Here is the more descriptive error:<br />Type mismatch: 'FGETVar' <br />/cgi-bin/view1.asp, line 2<br /><br />Thanks.]]>
   </description>
   <pubDate>Mon, 17 Jul 2006 22:57:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=576&amp;PID=2062&amp;title=could-not-open-data-connection#2062</guid>
  </item> 
  <item>
   <title><![CDATA[Could not open data c&#111;nnecti&#111;n : Okay. Two things. I was able to...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=576&amp;PID=2061&amp;title=could-not-open-data-connection#2061</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=367">kdonovan</a><br /><strong>Subject:</strong> 576<br /><strong>Posted:</strong> July/17/06 at 10:34pm<br /><br />Okay. Two things. I was able to fix the connection string issue. I found another connection string amongst the session variables in global.asa. I added the provider information there too. The "good and bad" news is that while the original error that started this thread disappeared, I'm getting a 500 Internal error in its place. I checked the Windows event viewer because oftentimes non-descript errors like 500 errors show up in the logs. But I did't see anthing that helped. Nonetheless, I'm copying the .asa files, hoping that you might see something helpful. Does a 500 error represent a permissions issue? Thanks for everything.<br /><br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copyright (C) 1995-2004 ComCity.  All Rights Reserved<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SalesCart 5<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;File: global.asa<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Revision: 4<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ASP file that controls application and session-wide variables<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DO NOT CHANGE- UNLESS YOU REALLY KNOW WHAT YOU'RE DOING!<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&lt;SCRIPT LANGUAGE=VBScript RUNAT=Server&gt;<br />Sub Application_OnStart<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'==FrontPage Generated - startspan==<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim FrontPage_UrlVars(2)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'--Project Data Connection<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Application("Database1_ConnectionString")  = "DSN=mydsn;DRIVER={Microsoft Access Driver (*.mdb)}"<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FrontPage_UrlVars(1) = "Database1_ConnectionString"<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Application("Database1_ConnectionTimeout")  = 15<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Application("Database1_CommandTimeout")  = 30<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Application("Database1_CursorLocation")  = 3<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Application("Database1_RuntimeUserName")  = ""<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Application("Database1_RuntimePassword")  = ""<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'--<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Application("FrontPage_UrlVars ") = FrontPage_UrlVars<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'==FrontPage Generated - endspan==<br />End Sub<br />Sub FrontPage_StartSession<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;On Error Resume Next<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if Len(Application("FrontPage_VRoot")) &gt; 0 then Exit Sub<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sFile = "global.asa"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sRootPath = Request.ServerVariables("APPL_PHYSICAL_PATH")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if Left(sRootPath,1) = "/" then sSep = "/" else sSep = "\"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if Right(sRootPath,1) &lt;&gt; sSep then sRootPath = sRootPath & sSep<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sRootPath = sRootPath & sFile<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' discover the VRoot for the current page;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' walk back up VPath until we match VRoot<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vroot = Request.ServerVariables("PATH_INFO")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iCount = 0<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;do while Len(Vroot) &gt; 1<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; idx = InStrRev(Vroot, "/")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if idx &gt; 0 then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vroot  = Left(Vroot,idx)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'  error; assume root web<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vroot  = "/"<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if Server.MapPath(Vroot & sFile) = sRootPath then exit do<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if Right(Vroot,1) = "/" then Vroot = Left(Vroot,Len(Vroot)-1)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iCount = iCount + 1<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if iCount &gt; 100 then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'  error; assume root web<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vroot  = "/"<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit  do<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;loop<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' map all URL= attributes in _ConnectionString variables<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Application.Lock<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if Len(Application("FrontPage_VRoot")) = 0 then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Application("FrontPage_VRoot") = Vroot<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UrlVarArray = Application("FrontPage_UrlVars")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for i = 0 to UBound(UrlVarArray)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if Len(UrlVarArray(i)) &gt; 0 then FrontPage_MapUrl(UrlVarArray(i))<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Application.Unlock<br />End Sub<br />Function FrontPage_FileExists(fspath)<br />On Error Resume Next<br />FrontPage_FileExists = False<br />Set fs = CreateObject("Scripting.FileSystemObject")<br />Err.Clear<br />Set istream = fs.OpenTextFile(fspath)<br />if Err.Number = 0 then<br />FrontPage_FileExists = True<br />istream.Close<br />end if<br />Set istream = Nothing<br />Set fs = Nothing<br />End Function<br />Sub FrontPage_MapUrl(AppVarName)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' convert URL attribute in conn string to absolute file location<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strVal = Application(AppVarName)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strKey = "URL="<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;idxStart = InStr(strVal, strKey)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If idxStart = 0 Then Exit Sub<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strBefore = Left(strVal, idxStart - 1)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;idxStart = idxStart + Len(strKey)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;idxEnd = InStr(idxStart, strVal, ";")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If idxEnd = 0 Then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strAfter = ""<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strURL = Mid(strVal, idxStart)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Else<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strAfter = ";" & Mid(strVal, idxEnd + 1)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strURL = Mid(strVal, idxStart, idxEnd - idxStart)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strOut = strBefore & Server.MapPath(Application("FrontPage_VRoot") & strURL) & strAfter<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Application(AppVarName) = strOut<br />End Sub<br />Sub Application_OnEnd<br />End Sub<br />Sub Session_OnStart<br />  FrontPage_StartSession '==FrontPage Generated==<br />  SC_StartSession '==SalesCart Generated==<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FrontPage_ConvertFromODBC '==FrontPage Generated==<br />End Sub<br />Sub SC_StartSession()<br />On Error Resume Next<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do session specific initialization<br />  Session("orderid") = 0<br />  Session("mallid") = 0<br />  Session("ConnectionString") = "DSN=mydsn;DRIVER={Microsoft Access Driver (*.mdb)}"<br />End Sub<br />Sub Session_OnEnd<br />End Sub<br />&lt;/SCRIPT&gt;<br />&lt;head&gt;&lt;title&gt;Web Site Settings for Active Server Pages&lt;/title&gt;&lt;html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"&gt;<br />&lt;!--&#091;if gte mso 9&#093;&gt;&lt;xml&gt;<br />&lt;mso:CustomDocumentProperties&gt;<br />&lt;mso:connectionstatus msdt:dt="string"&gt;SalesCart1=1 Database1=1&lt;/mso:connectionstatus&gt;<br />&lt;/mso:CustomDocumentProperties&gt;<br />&lt;/xml&gt;&lt;!&#091;endif&#093;--&gt;<br />&lt;/head&gt;<br /><br /><br />&lt;SCRIPT LANGUAGE=VBScript RUNAT=Server&gt;<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copyright (C) 1995-2004 ComCity.  All Rights Reserved<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SalesCart 5<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;File: SalesCart.asa<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Revision: 4<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ASP file that controls application and session-wide variables<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DO NOT CHANGE- UNLESS YOU REALLY KNOW WHAT YOU'RE DOING!<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />On Error Resume Next<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do session specific initialization<br /> Session("ConnectionString") = "DSN=mydsn;DRIVER={Microsoft Access Driver (*.mdb)}"<br />&lt;/SCRIPT&gt;]]>
   </description>
   <pubDate>Mon, 17 Jul 2006 22:34:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=576&amp;PID=2061&amp;title=could-not-open-data-connection#2061</guid>
  </item> 
  <item>
   <title><![CDATA[Could not open data c&#111;nnecti&#111;n : Ok now post the global.asa and...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=576&amp;PID=2057&amp;title=could-not-open-data-connection#2057</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=15">mikeb</a><br /><strong>Subject:</strong> 576<br /><strong>Posted:</strong> July/17/06 at 12:54pm<br /><br />Ok now post the global.asa and salescart.asa.]]>
   </description>
   <pubDate>Mon, 17 Jul 2006 12:54:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=576&amp;PID=2057&amp;title=could-not-open-data-connection#2057</guid>
  </item> 
  <item>
   <title><![CDATA[Could not open data c&#111;nnecti&#111;n : Okay. I set up a DSN. FrontPage...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=576&amp;PID=2056&amp;title=could-not-open-data-connection#2056</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=367">kdonovan</a><br /><strong>Subject:</strong> 576<br /><strong>Posted:</strong> July/17/06 at 10:47am<br /><br />Okay. I set up a DSN. FrontPage "verified" the connection, but I still receive the error in question. I also verified that session state is enabled. I was hoping that it wasn't since SalesCart holds the connection string in session. IUSR has modify permissions . . . Thoughts?]]>
   </description>
   <pubDate>Mon, 17 Jul 2006 10:47:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=576&amp;PID=2056&amp;title=could-not-open-data-connection#2056</guid>
  </item> 
  <item>
   <title><![CDATA[Could not open data c&#111;nnecti&#111;n : **DBQ=URL requires that it be...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=576&amp;PID=2053&amp;title=could-not-open-data-connection#2053</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=15">mikeb</a><br /><strong>Subject:</strong> 576<br /><strong>Posted:</strong> July/17/06 at 9:18am<br /><br />**DBQ=URL requires that it be a relative URL.  You CANNOT use C: there.  It sounds like you have the database now "outside" of the URL of the website.  That is good for security but it will require you to use a DSN.  <br /><br />Try using FrontPage to find the database and let it define the connection string instead of editing the file directly.]]>
   </description>
   <pubDate>Mon, 17 Jul 2006 09:18:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=576&amp;PID=2053&amp;title=could-not-open-data-connection#2053</guid>
  </item> 
  <item>
   <title><![CDATA[Could not open data c&#111;nnecti&#111;n : Okay, I made some changes, and...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=576&amp;PID=2050&amp;title=could-not-open-data-connection#2050</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=367">kdonovan</a><br /><strong>Subject:</strong> 576<br /><strong>Posted:</strong> July/16/06 at 9:06pm<br /><br />Okay, I made some changes, and still no luck. In response to you suggestions above:<br />1)I commented out that line.<br />2)Here is the connection string in SalesCart.asa: Session("ConnectionString") = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=URL=C:\mypath\shop.mdb" (where "path" repsents the actual path)<br />3)The global.asa path now looks similar to the connection string above: Application("Database1_ConnectionString") = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=URL=C:\mypath\shop.mdb"<br /><br />a)The database used to be located on a drive other than c: or d: -- but I moved it to c: and set up a web share to the rest of the application. The rest of the application is on a different drive. I used Access to establish the connection, and then I edited the connection string once I moved it to the remote web server.<br /><br />I believe that all of the permissions are correct, but let's tackle the connection strings first. Do they appear correct now? If you'd like me to re-copy the .asa file, I will.<br />Thanks.]]>
   </description>
   <pubDate>Sun, 16 Jul 2006 21:06:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=576&amp;PID=2050&amp;title=could-not-open-data-connection#2050</guid>
  </item> 
  <item>
   <title><![CDATA[Could not open data c&#111;nnecti&#111;n : 1)  You should comment this line...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=576&amp;PID=2046&amp;title=could-not-open-data-connection#2046</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=15">mikeb</a><br /><strong>Subject:</strong> 576<br /><strong>Posted:</strong> July/14/06 at 4:48pm<br /><br />1)  You should comment this line with a '.  Its the FrontPage bug.<br /><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'FrontPage_Convert FromODBC '==FrontPage Generated== <br /><br />2)  Not everything is here.  What connection string is the SalesCart.asa file looking for?<br /><br />3)  This does not look right...<br />  Application("SalesCart1_ConnectionString") = "Driver={Microsoft Access Driver (*.mdb)};PROVIDER=MSDASQL;Dbq=Drive:\path\mysite.com\fpdb\sh op.mdb;" <br /><br />a) Drive:  (Should be c:\ or d:\)<br />b) sh op.mdb (Should be shop.mdb &#091;but I would rename that for security reasons&#093;<br />c) PROVIDER=MSDASQl.  I'm not aware of this provider.  You look like your mixing a SQL provider with an Access provider.<br />d) Dbq means you don't need the drive letter.<br /><br />Summary: you should use FrontPage to recreate this connection string because its wrong.  Or try something more like this where the path and database name are corrected for your application.<br />  Application("SalesCart1_ConnectionString") =Driver={Microsoft Access driver  (*.mdb)};dbq=c:\webshare\wwwroot\somewebsite\hiddendb\sc_sho p_renamed.mdb;<br /><br />-or-<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Application("Database1_ConnectionString")  = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=URL=hidden_fp_db/some_shop_db.mdb"]]>
   </description>
   <pubDate>Fri, 14 Jul 2006 16:48:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=576&amp;PID=2046&amp;title=could-not-open-data-connection#2046</guid>
  </item> 
  <item>
   <title><![CDATA[Could not open data c&#111;nnecti&#111;n : I know what you mean :-) I apologize...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=576&amp;PID=2044&amp;title=could-not-open-data-connection#2044</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=367">kdonovan</a><br /><strong>Subject:</strong> 576<br /><strong>Posted:</strong> July/14/06 at 4:04pm<br /><br />I know what you mean :-)<br />I apologize for the length of the file. For the sake of brevity, I removed all of those Session variables towards the bottom. Let me know if you see anything . . .<br />============================================<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copyright (C) 1995-2004 ComCity.  All Rights Reserved<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SalesCart 5<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;File: global.asa<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Revision: 4<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ASP file that controls application and session-wide variables<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DO NOT CHANGE- UNLESS YOU REALLY KNOW WHAT YOU'RE DOING!<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&lt;SCRIPT LANGUAGE=VBScript RUNAT=Server&gt;<br />Sub Application_OnStart<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'==FrontPage Generated - startspan==<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim FrontPage_UrlVars(1)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'--Project Data Connection<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Application("SalesCart1_ConnectionString")  = "Driver={Microsoft Access Driver  (*.mdb)};PROVIDER=MSDASQL;Dbq=Drive:\path\mysite.com\fpdb\sh op.mdb;" <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Application("SalesCart1_ConnectionString")  = "DSN=myDSN;DRIVER={Microsoft Access Driver (*.mdb)}"<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Application("SalesCart1_ConnectionTimeout")  = 15<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Application("SalesCart1_CommandTimeout")  = 30<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Application("SalesCart1_CursorLocation")  = 3<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Application("SalesCart1_RuntimeUserName")  = ""<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Application("SalesCart1_RuntimePassword")  = ""<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'--<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Application("FrontPage_UrlVars ") = FrontPage_UrlVars<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'==FrontPage Generated - endspan==<br />End Sub<br />Sub FrontPage_StartSession<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;On Error Resume Next<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if Len(Application("FrontPage_VRoot")) &gt; 0 then Exit Sub<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sFile = "global.asa"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sRootPath = Request.ServerVariables("APPL_PHYSICAL_PATH")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if Left(sRootPath,1) = "/" then sSep = "/" else sSep = "\"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if Right(sRootPath,1) &lt;&gt; sSep then sRootPath = sRootPath & sSep<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sRootPath = sRootPath & sFile<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' discover the VRoot for the current page;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' walk back up VPath until we match VRoot<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vroot = Request.ServerVariables("PATH_INFO")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iCount = 0<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;do while Len(Vroot) &gt; 1<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; idx = InStrRev(Vroot, "/")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if idx &gt; 0 then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vroot  = Left(Vroot,idx)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'  error; assume root web<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vroot  = "/"<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if Server.MapPath(Vroot & sFile) = sRootPath then exit do<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if Right(Vroot,1) = "/" then Vroot = Left(Vroot,Len(Vroot)-1)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iCount = iCount + 1<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if iCount &gt; 100 then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'  error; assume root web<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vroot  = "/"<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit  do<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;loop<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' map all URL= attributes in _ConnectionString variables<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Application.Lock<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if Len(Application("FrontPage_VRoot")) = 0 then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Application("FrontPage_VRoot") = Vroot<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UrlVarArray = Application("FrontPage_UrlVars")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for i = 0 to UBound(UrlVarArray)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if Len(UrlVarArray(i)) &gt; 0 then FrontPage_MapUrl(UrlVarArray(i))<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Application.Unlock<br />End Sub<br />Function FrontPage_FileExists(fspath)<br />On Error Resume Next<br />FrontPage_FileExists = False<br />Set fs = CreateObject("Scripting.FileSystemObject")<br />Err.Clear<br />Set istream = fs.OpenTextFile(fspath)<br />if Err.Number = 0 then<br />FrontPage_FileExists = True<br />istream.Close<br />end if<br />Set istream = Nothing<br />Set fs = Nothing<br />End Function<br />Sub FrontPage_MapUrl(AppVarName)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' convert URL attribute in conn string to absolute file location<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strVal = Application(AppVarName)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strKey = "URL="<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;idxStart = InStr(strVal, strKey)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If idxStart = 0 Then Exit Sub<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strBefore = Left(strVal, idxStart - 1)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;idxStart = idxStart + Len(strKey)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;idxEnd = InStr(idxStart, strVal, ";")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If idxEnd = 0 Then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strAfter = ""<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strURL = Mid(strVal, idxStart)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Else<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strAfter = ";" & Mid(strVal, idxEnd + 1)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strURL = Mid(strVal, idxStart, idxEnd - idxStart)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strOut = strBefore & Server.MapPath(Application("FrontPage_VRoot") & strURL) & strAfter<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Application(AppVarName) = strOut<br />End Sub<br />Sub Application_OnEnd<br />End Sub<br />Sub Session_OnStart<br />  FrontPage_StartSession '==FrontPage Generated==<br />  SC_StartSession '==SalesCart Generated==<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FrontPage_ConvertFromODBC '==FrontPage Generated==<br />End Sub<br />Sub SC_StartSession()<br />On Error Resume Next<br />'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A whole bunch of session variables were here.<br />  Session("orderid") = 0<br />  Session("mallid") = 0<br />End Sub<br />Sub Session_OnEnd<br />End Sub<br />Sub FrontPage_ConvertFromODBC<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;On Error Resume Next<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if Len(Application("ASP_OS")) &gt; 0 then exit sub<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;str = "_ConnectionString"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;slen = Len(str)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set oKnown = Server.CreateObject("Scripting.Dictionary")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;oKnown.Add "DRIVER",""<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;oKnown.Add "DBQ",""<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;oKnown.Add "SERVER",""<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;oKnown.Add "DATABASE",""<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;oKnown.Add "UID",""<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;oKnown.Add "PWD",""<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Application.Lock<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For each item in Application.Contents<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if UCase(Right(item,slen)) = UCase(str) then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sName  = Left(item,Len(item)-slen)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sConn  = Application(item)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if InStr(LCase(sConn),"provider=") &lt; 1 and Len(Application(sName & "_ConnectionTimeout"))&gt;0 then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sArr = Split(sConn,";")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set oDict = Server.CreateObject("Scripting.Dictionary")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bUnknown = False<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for i = 0 to UBound(sArr)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s  = sArr(i)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; idx = InStr(s,"=")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s Key = UCase(Trim(Left(s,idx-1)))<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s Val = Trim(Mid(s,idx+1))<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;oDict.Add  sKey, sVal<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if Not oKnown.Exists(sKey) then bUnknown = True<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if bUnknown = False and oDict.Exists("DRIVER") then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s Drv = oDict.Item("DRIVER")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s New = ""<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if InStr(sDrv,"Microsoft Access") &gt; 0 and oDict.Exists("DBQ") and not (oDict.Exists("UID") or oDict.Exists("PWD")) then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s New = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & oDict.Item("DBQ")<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elseif  InStr(sDrv,"SQL Server") &gt; 0 and oDict.Exists("SERVER") and oDict.Exists("DATABASE") then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s New = "Provider=SQLOLEDB;Data Source=" & oDict("SERVER") & ";Initial Catalog=" & oDict("DATABASE")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if oDict.Exists("UID") then sNew = sNew & ";User ID=" & oDict("UID")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if oDict.Exists("PWD") then sNew = sNew & ";Password=" & oDict("PWD")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if sNew &lt;&gt; "" then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Application(item) = sNew<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set oDict = Nothing<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Next<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Application.Unlock<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set oKnown = Nothing<br />End Sub<br />&lt;/SCRIPT&gt;<br />&lt;head&gt;&lt;title&gt;Web Site Settings for Active Server Pages&lt;/title&gt;&lt;html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:000"&gt;<br />&lt;!--&#091;if gte mso 9&#093;&gt;&lt;xml&gt;<br />&lt;mso:CustomDocumentProperties&gt;<br />&lt;mso:connectionstatus  msdt:dt="string"&gt;SalesCart1=1&lt;/mso:connectionstatus&gt ;<br />&lt;/mso:CustomDocumentProperties&gt;<br />&lt;/xml&gt;&lt;!&#091;endif&#093;--&gt;<br />&lt;/head&gt;]]>
   </description>
   <pubDate>Fri, 14 Jul 2006 16:04:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=576&amp;PID=2044&amp;title=could-not-open-data-connection#2044</guid>
  </item> 
  <item>
   <title><![CDATA[Could not open data c&#111;nnecti&#111;n :   kdonovan wrote:Hmmm. It&amp;#039;s...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=576&amp;PID=2043&amp;title=could-not-open-data-connection#2043</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=15">mikeb</a><br /><strong>Subject:</strong> 576<br /><strong>Posted:</strong> July/14/06 at 1:55pm<br /><br /> <table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by kdonovan" alt="Originally posted by kdonovan" style="vertical-align: text-bottom;" /> <strong>kdonovan wrote:</strong><br /><br />Hmmm. It's certainly pointing correctly to shop.mdb. I copied the path right out of Windows Explorer. And I also set up a DSN, which let's you browse right to the .mdb file.</td></tr></table> <br />It needs to be the path on the server not on your local computer.<br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by kdonovan" alt="Originally posted by kdonovan" style="vertical-align: text-bottom;" /> <strong>kdonovan wrote:</strong><br /><br /><br />I am using the FrontPage version of SalesCart, but I've been editing the connection string directly on the server with Visual Studio. Could FP still be the culprit somehow? Would it help if I sent you my global.asa file? I suppose that I could post it here (sans usernames and pwds, etc.). Please let me know. Thanks.</td></tr></table> <br />Cut and past it here and then modify the real path and any username, password or other sensitive information as to something different.  Eventhough it will be different, the jist of the problem may be evident and/or will be transferrable to the real path.  Just replace any real sensitive information with fake alternatives...if you know what I mean.]]>
   </description>
   <pubDate>Fri, 14 Jul 2006 13:55:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=576&amp;PID=2043&amp;title=could-not-open-data-connection#2043</guid>
  </item> 
  <item>
   <title><![CDATA[Could not open data c&#111;nnecti&#111;n : Hmmm. It&amp;#039;s certainly pointing...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=576&amp;PID=2042&amp;title=could-not-open-data-connection#2042</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=367">kdonovan</a><br /><strong>Subject:</strong> 576<br /><strong>Posted:</strong> July/14/06 at 1:49pm<br /><br />Hmmm. It's certainly pointing correctly to shop.mdb. I copied the path right out of Windows Explorer. And I also set up a DSN, which let's you browse right to the .mdb file.<br /><br />I am using the FrontPage version of SalesCart, but I've been editing the connection string directly on the server with Visual Studio. Could FP still be the culprit somehow? Would it help if I sent you my global.asa file? I suppose that I could post it here (sans usernames and pwds, etc.). Please let me know. Thanks.]]>
   </description>
   <pubDate>Fri, 14 Jul 2006 13:49:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=576&amp;PID=2042&amp;title=could-not-open-data-connection#2042</guid>
  </item> 
 </channel>
</rss>