<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>

<feed xmlns="http://purl.org/atom/ns#" version="0.3" xml:lang="en-US">
<link href="https://www.blogger.com/atom/25536822" rel="service.post" title="ASP Programming" type="application/atom+xml"/>
<link href="https://www.blogger.com/atom/25536822" rel="service.feed" title="ASP Programming" type="application/atom+xml"/>
<title mode="escaped" type="text/html">ASP Programming</title>
<tagline mode="escaped" type="text/html"/>
<link href="http://www.calcaria.net/ASP" rel="alternate" title="ASP Programming" type="text/html"/>
<id>tag:blogger.com,1999:blog-25536822</id>
<modified>2006-11-06T08:36:53Z</modified>
<generator url="http://www.blogger.com/" version="6.72">Blogger</generator>
<info mode="xml" type="text/html">
<div xmlns="http://www.w3.org/1999/xhtml">This is an Atom formatted XML site feed. It is intended to be viewed in a Newsreader or syndicated to another site. Please visit the <a href="http://help.blogger.com/bin/answer.py?answer=697">Blogger Help</a> for more info.</div>
</info>
<convertLineBreaks xmlns="http://www.blogger.com/atom/ns#">true</convertLineBreaks>
<entry xmlns="http://purl.org/atom/ns#">
<link href="https://www.blogger.com/atom/25536822/114493560420187940" rel="service.edit" title="Provider not specified and there is no designated default provider" type="application/atom+xml"/>
<author>
<name>Paul Maddox</name>
</author>
<issued>2006-04-13T06:29:00-07:00</issued>
<modified>2006-04-13T13:41:08Z</modified>
<created>2006-04-13T13:40:04Z</created>
<link href="http://www.calcaria.net/ASP/2006/04/provider-not-specified-and-there-is-no.html" rel="alternate" title="Provider not specified and there is no designated default provider" type="text/html"/>
<id>tag:blogger.com,1999:blog-25536822.post-114493560420187940</id>
<title mode="escaped" type="text/html">Provider not specified and there is no designated default provider</title>
<content type="application/xhtml+xml" xml:base="http://www.calcaria.net/ASP" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">I was getting the following error on our new Dell 6850 server with Win2003 64bit and SQL Server 2005 64bit:<br/>
<br/>"<span style="font-family:courier new;font-size:85%;">Provider not specified and there is no designated default provider</span>"<br/>
<br/>Having looked at this page:<br/>
<br/>
<a href="http://www.codingforums.com/archive/index.php?t-66468.html">http://www.codingforums.com/archive/index.php?t-66468.html</a> (Last post)<br/>
<br/>It seemed the problem was due to Windows not having a 64 bit version of a database driver. After looking at the advice on the linking page I was still not able to get it going, so I did some experimenting and found the answer.<br/>
<br/>My old code looked like:<br/>
<br/>
<span style="font-family:courier new;font-size:85%;color:#000099;">Set conn = Server.CreateObject("ADODB.Connection")</span>
<br/>
<span style="font-family:courier new;font-size:85%;color:#000099;">conn.ConnectionString = "DSN=MyDSN;UID=MyUser;PWD=MyPassword"</span>
<br/>
<span style="font-family:courier new;font-size:85%;color:#000099;">conn.Mode = adModeReadWrite</span>
<br/>
<span style="font-family:courier new;font-size:85%;color:#000099;">conn.Open</span>
<br/>
<span style="font-family:courier new;font-size:85%;color:#000099;">Set rs = Server.CreateObject("ADODB.Recordset")</span>
<br/>
<br/>Which I changed to:<br/>
<br/>
<span style="font-family:courier new;font-size:85%;color:#000099;">Set conn = Server.CreateObject("ADODB.Connection")</span>
<br/>
<span style="font-family:courier new;font-size:85%;color:#000099;">conn.ConnectionString = "Provider=SQLOLEDB;UserID=MyUser;Password=MyPassword;</span>
<br/>
<span style="font-family:courier new;font-size:85%;color:#000099;">Database=MyDatabase"</span>
<br/>
<span style="font-family:courier new;font-size:85%;color:#000099;">conn.Mode = adModeReadWrite</span>
<br/>
<span style="font-family:courier new;font-size:85%;color:#000099;">conn.Open<br/>Set rs = Server.CreateObject("ADODB.Recordset")</span>
<br/>
<br/>The fix works slightly different and does not rely on a DSN, which for me was no bad thing.</div>
</content>
<draft xmlns="http://purl.org/atom-blog/ns#">false</draft>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="https://www.blogger.com/atom/25536822/114433280526337639" rel="service.edit" title="Global.asa file doesn't work" type="application/atom+xml"/>
<author>
<name>Paul Maddox</name>
</author>
<issued>2006-04-06T06:57:00-07:00</issued>
<modified>2006-04-06T14:13:25Z</modified>
<created>2006-04-06T14:13:25Z</created>
<link href="http://www.calcaria.net/ASP/2006/04/globalasa-file-doesnt-work.html" rel="alternate" title="Global.asa file doesn't work" type="text/html"/>
<id>tag:blogger.com,1999:blog-25536822.post-114433280526337639</id>
<title mode="escaped" type="text/html">Global.asa file doesn't work</title>
<content type="application/xhtml+xml" xml:base="http://www.calcaria.net/ASP" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">I was editing global.asa today and seeing no affect on my web app.<br/>
<br/>The problem was that my app was a sub-directory, and hence was not a proper web app, and therefore didn't execute the global.asa file.<br/>
<br/>
<img src="http://www.calcaria.net/ASP/notwebapp.png"/>
<br/>
<br/>The fix for this is to turn your sub-directory into an application. This is done by right-clicking and selecting Properties, and then clicking the 'Create' button to make it into an app.<br/>
<br/>
<img src="http://www.calcaria.net/ASP/makewebapp.png"/>
</div>
</content>
<draft xmlns="http://purl.org/atom-blog/ns#">false</draft>
</entry>
</feed>
