<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' version='2.0'><channel><atom:id>http://www.blogger.com/feeds/25536822/posts/full</atom:id><lastBuildDate>Mon, 06 Nov 2006 08:36:53 +0000</lastBuildDate><title>ASP Programming</title><description></description><link>http://www.calcaria.net/ASP</link><managingEditor>Paul Maddox</managingEditor><generator>Blogger</generator><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>15</openSearch:itemsPerPage><item><guid isPermaLink='false'>http://www.blogger.com/feeds/25536822/posts/full/114493560420187940</guid><pubDate>Thu, 13 Apr 2006 13:29:00 +0000</pubDate><atom:updated>2006-04-13T06:41:08.356-07:00</atom:updated><title>Provider not specified and there is no designated default provider</title><description>&lt;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:&lt;br />&lt;br />"&lt;span style="font-family:courier new;font-size:85%;">Provider not specified and there is no designated default provider&lt;/span>"&lt;br />&lt;br />Having looked at this page:&lt;br />&lt;br />&lt;a href="http://www.codingforums.com/archive/index.php?t-66468.html">http://www.codingforums.com/archive/index.php?t-66468.html&lt;/a> (Last post)&lt;br />&lt;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.&lt;br />&lt;br />My old code looked like:&lt;br />&lt;br />&lt;span style="font-family:courier new;font-size:85%;color:#000099;">Set conn = Server.CreateObject("ADODB.Connection")&lt;/span>&lt;br />&lt;span style="font-family:courier new;font-size:85%;color:#000099;">conn.ConnectionString = "DSN=MyDSN;UID=MyUser;PWD=MyPassword"&lt;/span>&lt;br />&lt;span style="font-family:courier new;font-size:85%;color:#000099;">conn.Mode = adModeReadWrite&lt;/span>&lt;br />&lt;span style="font-family:courier new;font-size:85%;color:#000099;">conn.Open&lt;/span>&lt;br />&lt;span style="font-family:courier new;font-size:85%;color:#000099;">Set rs = Server.CreateObject("ADODB.Recordset")&lt;/span>&lt;br />&lt;br />Which I changed to:&lt;br />&lt;br />&lt;span style="font-family:courier new;font-size:85%;color:#000099;">Set conn = Server.CreateObject("ADODB.Connection")&lt;/span>&lt;br />&lt;span style="font-family:courier new;font-size:85%;color:#000099;">conn.ConnectionString = "Provider=SQLOLEDB;UserID=MyUser;Password=MyPassword;&lt;/span>&lt;br />&lt;span style="font-family:courier new;font-size:85%;color:#000099;">Database=MyDatabase"&lt;/span>&lt;br />&lt;span style="font-family:courier new;font-size:85%;color:#000099;">conn.Mode = adModeReadWrite&lt;/span>&lt;br />&lt;span style="font-family:courier new;font-size:85%;color:#000099;">conn.Open&lt;br />Set rs = Server.CreateObject("ADODB.Recordset")&lt;/span>&lt;br />&lt;br />The fix works slightly different and does not rely on a DSN, which for me was no bad thing.&lt;/div></description><link>http://www.calcaria.net/ASP/2006/04/provider-not-specified-and-there-is-no.html</link><author>Paul Maddox</author></item><item><guid isPermaLink='false'>http://www.blogger.com/feeds/25536822/posts/full/114433280526337639</guid><pubDate>Thu, 06 Apr 2006 13:57:00 +0000</pubDate><atom:updated>2006-04-06T07:13:25.280-07:00</atom:updated><title>Global.asa file doesn't work</title><description>&lt;div xmlns="http://www.w3.org/1999/xhtml">I was editing global.asa today and seeing no affect on my web app.&lt;br />&lt;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.&lt;br />&lt;br />&lt;img src="http://www.calcaria.net/ASP/notwebapp.png" />&lt;br />&lt;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.&lt;br />&lt;br />&lt;img src="http://www.calcaria.net/ASP/makewebapp.png" />&lt;/div></description><link>http://www.calcaria.net/ASP/2006/04/globalasa-file-doesnt-work.html</link><author>Paul Maddox</author></item></channel></rss>