473,385 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Database share

hello everybody,

i create program asp use database *.dbf with odbc
if the database in the local pc ok, but if the database in the other pc use network the result error,"not valid path".

and try use database mdb, in local pc ok,but in the other pc use network is the same error.

why is error?......

please!....

thank's and best regrads
Oct 14 '08 #1
3 1705
jeffstl
432 Expert 256MB
How did you key in your database path in the code?

Did you use a letter mapping or a absolute path? (C:\.mdb or \\TheserverName\Root\.mdb)

Do the users have access to the network drive the file is on? If not this could also be the problem.
Oct 14 '08 #2
I use windows XP Pro sp1 and ODBC driver for Microsoft Dbase Driver (.dbf)
in ODBC select directory I using Mapping Drive (Z:\)


Dim cn, rs, rs1
Dim StkOpn


Set cn=Server.CreateObject("ADODB.Connection")
Set rs=Server.CreateObject("ADODB.Recordset")
Set rs1=Server.CreateObject("ADODB.Recordset")

cn.open "DSNWEBHERO","",""
mysql = "Select * From Product Where ProdCode='" & request.Form("txtSearch") & "'"
mysql1 = "Select * From opname Where ProdCode='" & request.Form("txtSearch") & "'"

rs.Open mysql,cn,2,3



rs.close
rs1.close
cn.close

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC dBase Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.



I can access for mapping drive in the network

Thank's and best regrads
Oct 15 '08 #3
jeffstl
432 Expert 256MB
I use windows XP Pro sp1 and ODBC driver for Microsoft Dbase Driver (.dbf)
in ODBC select directory I using Mapping Drive (Z:\)


Dim cn, rs, rs1
Dim StkOpn


Set cn=Server.CreateObject("ADODB.Connection")
Set rs=Server.CreateObject("ADODB.Recordset")
Set rs1=Server.CreateObject("ADODB.Recordset")

cn.open "DSNWEBHERO","",""
mysql = "Select * From Product Where ProdCode='" & request.Form("txtSearch") & "'"
mysql1 = "Select * From opname Where ProdCode='" & request.Form("txtSearch") & "'"

rs.Open mysql,cn,2,3



rs.close
rs1.close
cn.close

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC dBase Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.



I can access for mapping drive in the network

Thank's and best regrads
At best without seeing the configuration of the DSN I would say that pc that is having the problem may have access rights denied for that dsn...but even then if this is a web app that shouldnt be happening...

Obviously though according to the error the problem is with your database path in some way shape or form. You can prove this by changing your connection string to have a direct path instead of using DSN and then test it on the problem pc.
Oct 15 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

24
by: Hardy | last post by:
I'm pretty new in this field. when reading some 70x material, I met with this term but cannot catch its accurate meaning. who can help me? thanks in advance:)~
68
by: rkusenet | last post by:
http://www.eweek.com/article2/0,1759,1820667,00.asp The database market grew by 10.3 percent in 2004, fueled largely by hunger for business intelligence and analytics, according to numbers...
6
by: alanknipmeyer | last post by:
Hi, I`m in the process of migrating a Access 2002 (Run in 2000 mode) from Windows 98 to Win2K Server. It is a shared resource via a file share on the 98 Server. Client systems are Win98 with the...
7
by: isamusetu | last post by:
anybody knows how to share the dll between the process? I know there is a way to set the #pragma data_seg in the visual studio 6.0 C++, that can make the dll can be shared between the multiple...
3
by: Russell Read [MSFT] | last post by:
Hi all, I am using VB script in ASP to access a MS Access database. This works fine until I want to access the same db placed on a file share. The code I am using is... 'create connection...
0
by: John Fleming | last post by:
Hello, I am building a web application with the following components: 2 Web Servers - Windows Server 2003 - IIS 6 - .Net Framework version 2.0 - Reside in Domain A 2 Clustered Database...
3
by: sadanjan | last post by:
Hi , Appreciate if someone can clarify if database Share Memory Limit (2 GB ) in Unix 32 bit boxes is the top limit for all the databases put together in a database or is it for each of the...
10
by: shsandeep | last post by:
The ETL application loaded around 3000 rows in 14 seconds in a Development database while it took 2 hours to load in a UAT database. UAT db is partitioned. Dev db is not partitioned. the...
1
by: crystalgal | last post by:
I created a database that contains 2 tables and 2 forms which allow data entry. I have set the database to "share mode" for the default open. When I have it open and someone else tries to open it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.