473,396 Members | 1,775 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,396 software developers and data experts.

Transferdatabase and UNC

I'm trying to copy a table using Transferdatabase.
It works fine in my test environment, but on the client's server (Server
2003), it only works if the destination file is in the full path syntax.
ie "M:\DataDir\DataFile.mdb" works.
but "\\server\DataFile.mdb" doesn't. (sorry, I can't get rid of the URL
formatting)
I get an error 31541 "Cannot open this file".
Both client and myself are using Access 2002
The same UNC is used for all back end connections.
Is this a known limitation or am I missing something obvious (again)?

--
Bob Darlington
Brisbane
Feb 19 '08 #1
4 1890
On 20 Feb., 00:50, "Bob Darlington" <b...@dpcmanAX.com.auwrote:
I'm trying to copy a table using Transferdatabase.
It works fine in my test environment, but on the client's server (Server
2003), it only works if the destination file is in the full path syntax.
ie "M:\DataDir\DataFile.mdb" works.
but "\\server\DataFile.mdb" doesn't. (sorry, I can't get rid of the URL
formatting)
I get an error 31541 "Cannot open this file".
Both client and myself are using Access 2002
The same UNC is used for all back end connections.
Is this a known limitation or am I missing something obvious (again)?
"M:\DataDir\DataFile.mdb" cannot translate to "\\server\DataFile.mdb".
It could translate to "\\server\ShareName\DataDir\DataFile.mdb" or
possibly to "\\server\DataDir\DataFile.mdb"

Methink

Marco P
Feb 20 '08 #2
>>
"M:\DataDir\DataFile.mdb" works.
but "\\server\DataFile.mdb" doesn't.
<<

Since Access is a file based RDBMS, as opposed to a service based RDBMS
like Orcale, Sql Server...,
using \\server\DataFile.mdb won't work. You have to use the file based
format
M:\DataDir\DataFile.mdb
Rich

*** Sent via Developersdex http://www.developersdex.com ***
Feb 20 '08 #3
You are correct of course, but the quote was for illustration purposes only.
I'll take more care next time.

--
Bob Darlington
Brisbane
"Marco Pagliero" <ma*****@web.dewrote in message
news:ae**********************************@s37g2000 prg.googlegroups.com...
On 20 Feb., 00:50, "Bob Darlington" <b...@dpcmanAX.com.auwrote:
>I'm trying to copy a table using Transferdatabase.
It works fine in my test environment, but on the client's server (Server
2003), it only works if the destination file is in the full path syntax.
ie "M:\DataDir\DataFile.mdb" works.
but "\\server\DataFile.mdb" doesn't. (sorry, I can't get rid of the URL
formatting)
I get an error 31541 "Cannot open this file".
Both client and myself are using Access 2002
The same UNC is used for all back end connections.
Is this a known limitation or am I missing something obvious (again)?

"M:\DataDir\DataFile.mdb" cannot translate to "\\server\DataFile.mdb".
It could translate to "\\server\ShareName\DataDir\DataFile.mdb" or
possibly to "\\server\DataDir\DataFile.mdb"

Methink

Marco P

Feb 20 '08 #4
Thanks Rich,
I guess you're right, but it seems odd that Access accepts the UNC as a link
connection but won't in other areas.
Do you know if there's a way to convert the UNC back to a file based format?
Thanks again for your response.

--
Bob Darlington
Brisbane
"Rich P" <rp*****@aol.comwrote in message
news:12**************@news.newsfeeds.com...
>>>
"M:\DataDir\DataFile.mdb" works.
but "\\server\DataFile.mdb" doesn't.
<<

Since Access is a file based RDBMS, as opposed to a service based RDBMS
like Orcale, Sql Server...,
using \\server\DataFile.mdb won't work. You have to use the file based
format
M:\DataDir\DataFile.mdb
Rich

*** Sent via Developersdex http://www.developersdex.com ***

Feb 20 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jer | last post by:
I am trying to export the results of a view from an .adp to an .mdb using TransferDatabase. The code I am using is DoCmd.TransferDatabase acExport, "Microsoft Access", _...
0
by: KJones | last post by:
Here is the setup There are three Machines all running Access97 & XP Pro \\readingtill1 \\redingback \\redingtill2 on a LAN And four dbs
6
by: dixie | last post by:
I am using the Docmd.TransferDatabase to transfer part of a table into another smaller database. The source comes from a select query that transfers the part of the table that I need. The...
2
by: Pachydermitis | last post by:
Hi all, I am trying to use transferdatabase to link tables to a shared backend. If someone is already using the back end, transferdatabase tries to lock the table and causes an error. Is there...
1
by: Jens Hofmeier | last post by:
Hello, i want to transfer a table from database sourceMDB to a password protected database named destMDB. I was not able to figure out where to specify the required password ind the parameters...
2
by: AccessStarters | last post by:
I am trying to Import a simple dbase file into my Ak2 TABLES. If I do this manually, it works fine. I get a new table called DBASE with all the data looking good. If I try and do this using VBA...
6
by: Dave Gehrig | last post by:
Hi guys, Using Access 2003 on XP. First time caller, long time listener. I am not a programmer per se, and all my training in coding in the past year or so has come from the wealth of info...
1
by: Danny J. Lesandrini | last post by:
Does anyone know if it's possible to use TransferDatabase to export data to MySQL? If not, how would one go about it? Below is the code I tried to use, but it doesn't work. sTable = "tblLead"...
1
by: solar | last post by:
In copying tables i use the command Transferdatabase shown below.It is a good command, but i need the following refinement. I want to copy the table only when the Yes/No field "accepted" in the...
0
by: rdemyan | last post by:
I'm trying to use TransferDatabase to transfer tables from an external secured DB to a database created in the code. I would like to kind of use automation, although OpenCurrentDatabase apparantly...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.