<?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/' xmlns:georss='http://www.georss.org/georss' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-25536822</atom:id><lastBuildDate>Mon, 04 May 2009 16:10:28 +0000</lastBuildDate><title>ASP Programming</title><description></description><link>http://www.calcaria.net/ASP/</link><managingEditor>noreply@blogger.com (.)</managingEditor><generator>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-25536822.post-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>I was getting the following error on our new Dell 6850 server with Win2003 64bit and SQL Server 2005 64bit:&lt;br /&gt;&lt;br /&gt;"&lt;span style="font-family:courier new;font-size:85%;"&gt;Provider not specified and there is no designated default provider&lt;/span&gt;"&lt;br /&gt;&lt;br /&gt;Having looked at this page:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codingforums.com/archive/index.php?t-66468.html"&gt;http://www.codingforums.com/archive/index.php?t-66468.html&lt;/a&gt; (Last post)&lt;br /&gt;&lt;br /&gt;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 /&gt;&lt;br /&gt;My old code looked like:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;color:#000099;"&gt;Set conn = Server.CreateObject("ADODB.Connection")&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;color:#000099;"&gt;conn.ConnectionString = "DSN=MyDSN;UID=MyUser;PWD=MyPassword"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;color:#000099;"&gt;conn.Mode = adModeReadWrite&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;color:#000099;"&gt;conn.Open&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;color:#000099;"&gt;Set rs = Server.CreateObject("ADODB.Recordset")&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Which I changed to:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;color:#000099;"&gt;Set conn = Server.CreateObject("ADODB.Connection")&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;color:#000099;"&gt;conn.ConnectionString = "Provider=SQLOLEDB;UserID=MyUser;Password=MyPassword;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;color:#000099;"&gt;Database=MyDatabase"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;color:#000099;"&gt;conn.Mode = adModeReadWrite&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;color:#000099;"&gt;conn.Open&lt;br /&gt;Set rs = Server.CreateObject("ADODB.Recordset")&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The fix works slightly different and does not rely on a DSN, which for me was no bad thing.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='http://res1.blogblog.com/tracker/25536822-114493560420187940?l=www.calcaria.net%2FASP'/&gt;&lt;/div&gt;</description><link>http://www.calcaria.net/ASP/2006/04/provider-not-specified-and-there-is-no.html</link><author>noreply@blogger.com (.)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>2</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-25536822.post-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>I was editing global.asa today and seeing no affect on my web app.&lt;br /&gt;&lt;br /&gt;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 /&gt;&lt;br /&gt;&lt;img src="http://www.calcaria.net/ASP/notwebapp.png" /&gt;&lt;br /&gt;&lt;br /&gt;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 /&gt;&lt;br /&gt;&lt;img src="http://www.calcaria.net/ASP/makewebapp.png" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='http://res1.blogblog.com/tracker/25536822-114433280526337639?l=www.calcaria.net%2FASP'/&gt;&lt;/div&gt;</description><link>http://www.calcaria.net/ASP/2006/04/globalasa-file-doesnt-work.html</link><author>noreply@blogger.com (.)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item></channel></rss>