Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 8th, 2004, 10:54 AM
Registered User
 
Join Date: May 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default UpLoad Problem

I am a newbie.
I am trying to setup my asp pages with some databases in my company intranet. But when i use the PC and log into that webpages, all of the database cannot been loaded out to the pages. why?

<%
Dim DataConn, dbpath
dbpath = server.mappath("EmScheduler.mdb")
Set DataConn =Server.CreateObject("ADODB.Connection")
Dataconn.Provider="Microsoft.Jet.OLEDB.4.0"
Dataconn.connectionstring = "Data source =" & dbpath
Dataconn.open
%>
this is how the connection go, is that correct. the pages work well at my own home PC. so when i upload to the company intranet, everythg goes wrong. My company is using SQLserver 7.0, so is there any changes i need to do in case to settle this?

Thanks for helping.

 
Old May 8th, 2004, 12:40 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

In your code there, I could see that you are using ACCESS mdb file.

Quote:
quote:the pages work well at my own home PC. so when i upload to the company intranet, everythg goes wrong. My company is using SQLserver 7.0,....
Are you trying to use MSAccess or SQL server 7.0?

I am confused. If everything goes wrong, then what is the error you get? You haven't mentioned about that. Can you post the error?

For help on connection strings you can take a look at http://www.connectionstrings.com/

This is how I do use, if it is for SQL server.
Dim conn
Set conn = Server.CreateObject("ADODB.CONNECTION")
conn.ConnectionTimeout = 30
conn.Open "Provider=sqloledb;Data Source=Aron1;Initial Catalog=pubs;User Id=sa;Password=asdasd;"

-Vijay G
 
Old May 9th, 2004, 07:11 AM
Registered User
 
Join Date: May 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Actually, the problem i found is

1. when i key in information to the pages and submit. the data cannot b save into the database.

2. i also unable to call out the database that i save in my access.

i trying my pages at home using access.
if my company server is SQL7.0, then wat should i do, in order to match with the server.


 
Old May 23rd, 2004, 03:42 PM
Registered User
 
Join Date: May 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey vieritlc,

I've played with both Access and SQL. For the problem that you are refering too sounds more like a privileges issue. If you can view however cannot add or update then the best thing is to go into the SQL Server (Enterprise Manager) and check the setting that show who can update what kind of information. I would make sure that iuser is allowed to make changes.

From there just know that if you don't want everyone on the intranet to be able to make changes then you'll probably want to setup a password protected area in which only the admins can login and make the changes to the database.

For the difference between the connections reference the connection strings happygv provided.

Hope this helps,
James






Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload File problem khb3283 ASP.NET 2.0 Basics 1 October 3rd, 2008 01:14 PM
upload problem MunishBhatia ASP.NET 2.0 Professional 0 May 4th, 2007 04:32 AM
File upload problem! Ashleek007 Beginning PHP 0 July 15th, 2005 11:08 AM
upload problem Regornil Pro JSP 5 March 9th, 2005 03:12 AM
upload problem.... pls help life_s Ng ASP.NET 1.0 and 1.1 Basics 7 September 16th, 2003 11:20 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.