Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 10-14-2004, 06:17 PM   #1
Member (7 bit)
 
surfmaster2000's Avatar
 
Join Date: Jun 2001
Location: Atlanta GA
Posts: 127
ODBC setup on NT webserver...help!

Ok, first off. Im not sure if this is the appropriate area of the forum for this question, but here goes:

I am creating a new feature for my employers website. I would like to allow a potential customer to enter his/her zipcode and be presented our company information that pertains to his/her area. I have a working ODBC connection to an access database and I have created the two web pages needed using the features built into dreamweaver MX. I have everything working wonderfully on my desktop PC running XP Pro, and built in IIS for testing purposes. Now I want to implement this on our company NT webserver. This is where I run into problems...I am unable to add an ODBC connection on the NT server. I go control panel>odbc connections>system DSN. When at system DSN tab I am prompted to select type of database. I choose the "microsoft access driver". It then shows the screen that would allow me to name the connection, give it a description, select the database in my file system, etc. There is an "ok" button at the upper right hand of the screen that must be clicked when I have completed entering my information. The "ok" button remains greyed out no matter what I enter or select. I can enter all of the necessary information, but can never click "ok". I cannot determine why this button stays greyed out. does anyone know or suggest anything? The "ok" button is greyed out on my XP desktop also, but the moment I enter a character into the text boxes it blackens and is then clickable. See pictures to illustrate. The images are from my XP desktop but the screen is identical to the NT screen.

Thanks for any help!!

Jeremy

[IMG]http://[/IMG]
Attached Images
File Type: gif odbc_xp.gif (8.1 KB, 84 views)
File Type: gif odbc_xp2.gif (8.1 KB, 67 views)
surfmaster2000 is offline   Reply With Quote
Old 10-15-2004, 07:50 AM   #2
Come in Ray...
 
faulkner132's Avatar
 
Join Date: Sep 2004
Posts: 1,668
Maybe this isn't what you want to do, but have you tried connecting through a server created object?
I am assuming you are using ASP.

Code:
Dim MyConn
Dim strConn

Set MyConn = New Server.CreateObject("ADODB.Connection")

strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
   "Data Source=C:\...\Database.MDB;" & _
   "Jet OLEDB:Database Password=MyPwd"
MyConn.Open strConn
DSN's are pretty dated and I have not used those in years.
faulkner132 is offline   Reply With Quote
Old 10-15-2004, 05:26 PM   #3
Member (7 bit)
 
surfmaster2000's Avatar
 
Join Date: Jun 2001
Location: Atlanta GA
Posts: 127
faulkner132, thanks for the reply. I am using ASP. I am kinda in-experienced in this area but i'm a pretty quick learner. I got the whole thing working on my own. So don't think i'm stupid when I ask, where do i place this code you have provided?

I am using a page called lookup.htm which has a textbox and a submit button.
then I have a results.asp page that returns the filtered results of the textbox.

I will try this, but I think there is somthing wrong with my server or it's configuration that could be causing the problem.

Thanks,
Jeremy
surfmaster2000 is offline   Reply With Quote
Old 10-15-2004, 09:08 PM   #4
Come in Ray...
 
faulkner132's Avatar
 
Join Date: Sep 2004
Posts: 1,668
The easiest place is at the top of your results.asp page. This will create (and destroy) a connection each time the page is created.

Here is a complete example which may help you a bit more:
http://support.microsoft.com/kb/q165671/
faulkner132 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:55 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2