Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Access any Server Database
Message
From
18/05/2004 14:12:34
 
 
To
18/05/2004 12:13:36
General information
Forum:
Visual Basic
Category:
VBScript
Miscellaneous
Thread ID:
00904990
Message ID:
00905039
Views:
22
>I am starting to program in Java and have some problems accessing a Database.
>
>I Configured my PC with IIS, and i am working with ASP files, i made a test accessing a database that resides in a server through ADO, but i get a message saying the file path is not found, if i change the path to a local database it works.
>
>The attribute RUNAT is assignt to Server.
>
>Can someone tell me how can accomplish this.



Wilson:

The path is relative to the location of your files in IIS (generally under the wwwroot tree). At runtime, from you can read it with Server.MapPath("default.asp") where you would change default.asp to the name of your page.

Note: You mention you are starting to program in Java, then you talk about ASP. It doesn't make sense unless you meant JavaScript (or JScript) and mistyped as "Java". Note that Java and JavaScript are completely different animals, not even related to each other, except for the unfortunate choice of name for JavaScript by some genius in marketing somwhere.

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform