<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-25536822</id><updated>2009-05-04T09:10:28.501-07:00</updated><title type='text'>ASP Programming</title><subtitle type='html'></subtitle><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25536822/posts/default'/><link rel='alternate' type='text/html' href='http://www.calcaria.net/ASP/'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.calcaria.net/ASP/atom.xml'/><author><name>.</name><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-25536822.post-114493560420187940</id><published>2006-04-13T06:29:00.000-07:00</published><updated>2006-04-13T06:41:08.356-07:00</updated><title type='text'>Provider not specified and there is no designated default provider</title><content type='html'>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;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/25536822/114493560420187940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=25536822&amp;postID=114493560420187940' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25536822/posts/default/114493560420187940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25536822/posts/default/114493560420187940'/><link rel='alternate' type='text/html' href='http://www.calcaria.net/ASP/2006/04/provider-not-specified-and-there-is-no.html' title='Provider not specified and there is no designated default provider'/><author><name>.</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25536822.post-114433280526337639</id><published>2006-04-06T06:57:00.000-07:00</published><updated>2006-04-06T07:13:25.280-07:00</updated><title type='text'>Global.asa file doesn't work</title><content type='html'>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;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/25536822/114433280526337639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=25536822&amp;postID=114433280526337639' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25536822/posts/default/114433280526337639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25536822/posts/default/114433280526337639'/><link rel='alternate' type='text/html' href='http://www.calcaria.net/ASP/2006/04/globalasa-file-doesnt-work.html' title='Global.asa file doesn&apos;t work'/><author><name>.</name><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry></feed>