473,503 Members | 3,721 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Copy tables from remote machine?

I have a routine that creates a new database and then copies a couple
of tables to the new database as backups. It works fine but I want to
split the database and run this routine from a machine that does not
have the actual tables on it. I am using the following

DoCmd.TransferDatabase acExport, "Microsoft Access", "Backup.mdb",
acTable, "TableName", "TableName"

Is there a way to use this and get the tables from a different
machine?

Thanks for any help.
Nov 13 '05 #1
4 2285
ShyGuy <sh****@shytown.com> wrote in message news:<ge********************************@4ax.com>. ..
I have a routine that creates a new database and then copies a couple
of tables to the new database as backups. It works fine but I want to
split the database and run this routine from a machine that does not
have the actual tables on it. I am using the following

DoCmd.TransferDatabase acExport, "Microsoft Access", "Backup.mdb",
acTable, "TableName", "TableName"

Is there a way to use this and get the tables from a different
machine?

Thanks for any help.


What if you use the UNC path instead of just "Backup.mdb"? e.g.

\\SomeComputer\SomeFolder\Backup.mdb
Nov 13 '05 #2
On 12 Oct 2004 20:50:05 -0700, pi********@hotmail.com (Pieter Linden)
wrote:
ShyGuy <sh****@shytown.com> wrote in message news:<ge********************************@4ax.com>. ..
I have a routine that creates a new database and then copies a couple
of tables to the new database as backups. It works fine but I want to
split the database and run this routine from a machine that does not
have the actual tables on it. I am using the following

DoCmd.TransferDatabase acExport, "Microsoft Access", "Backup.mdb",
acTable, "TableName", "TableName"

Is there a way to use this and get the tables from a different
machine?

Thanks for any help.


What if you use the UNC path instead of just "Backup.mdb"? e.g.

\\SomeComputer\SomeFolder\Backup.mdb


Thanks for the reply.

The Backuip.mdb is the database that is created on the drive of the
machine that is doing the backup (Drive A). I want to create this on
that drive so that if the machine that has the back end (Drive B)
crashes I will have the backup on Drive A. The problem, I think, is
getting the transferdatabase to take the tables from the backend, on
tDrive B, and "export" them to the "backup.mdb on the Drive A.
Nov 13 '05 #3
ShyGuy <sh****@shytown.com> wrote in message news:<mi********************************@4ax.com>. ..
On 12 Oct 2004 20:50:05 -0700, pi********@hotmail.com (Pieter Linden)
wrote:
ShyGuy <sh****@shytown.com> wrote in message news:<ge********************************@4ax.com>. ..
I have a routine that creates a new database and then copies a couple
of tables to the new database as backups. It works fine but I want to
split the database and run this routine from a machine that does not
have the actual tables on it. I am using the following

DoCmd.TransferDatabase acExport, "Microsoft Access", "Backup.mdb",
acTable, "TableName", "TableName"

Is there a way to use this and get the tables from a different
machine?

Thanks for any help.


What if you use the UNC path instead of just "Backup.mdb"? e.g.

\\SomeComputer\SomeFolder\Backup.mdb


Thanks for the reply.

The Backuip.mdb is the database that is created on the drive of the
machine that is doing the backup (Drive A). I want to create this on
that drive so that if the machine that has the back end (Drive B)
crashes I will have the backup on Drive A. The problem, I think, is
getting the transferdatabase to take the tables from the backend, on
tDrive B, and "export" them to the "backup.mdb on the Drive A.

Why would TransferDatabase not work? Did you try it? If you did,
where's the code and what happened when you tried it? Have you played
with using the RENAME function from within a dummy DB? (so it can
effectively copy the database from one location to another)? Oh, and
do all this stuff on a backup. Don't want to hear "you rotten
so-and-so, you ruined my database..."
Nov 13 '05 #4
On 13 Oct 2004 21:52:18 -0700, pi********@hotmail.com (Pieter Linden)
wrote:
ShyGuy <sh****@shytown.com> wrote in message news:<mi********************************@4ax.com>. ..
On 12 Oct 2004 20:50:05 -0700, pi********@hotmail.com (Pieter Linden)
wrote:
>ShyGuy <sh****@shytown.com> wrote in message news:<ge********************************@4ax.com>. ..
>> I have a routine that creates a new database and then copies a couple
>> of tables to the new database as backups. It works fine but I want to
>> split the database and run this routine from a machine that does not
>> have the actual tables on it. I am using the following
>>
>> DoCmd.TransferDatabase acExport, "Microsoft Access", "Backup.mdb",
>> acTable, "TableName", "TableName"
>>
>> Is there a way to use this and get the tables from a different
>> machine?
>>
>> Thanks for any help.
>
>What if you use the UNC path instead of just "Backup.mdb"? e.g.
>
>\\SomeComputer\SomeFolder\Backup.mdb


Thanks for the reply.

The Backuip.mdb is the database that is created on the drive of the
machine that is doing the backup (Drive A). I want to create this on
that drive so that if the machine that has the back end (Drive B)
crashes I will have the backup on Drive A. The problem, I think, is
getting the transferdatabase to take the tables from the backend, on
tDrive B, and "export" them to the "backup.mdb on the Drive A.

Why would TransferDatabase not work? Did you try it? If you did,
where's the code and what happened when you tried it? Have you played
with using the RENAME function from within a dummy DB? (so it can
effectively copy the database from one location to another)? Oh, and
do all this stuff on a backup. Don't want to hear "you rotten
so-and-so, you ruined my database..."

Sorry I haven't replied sooner. I was away for a bit.
When I tried the TransferDatabase it seeme to just transfer the link
to the remote table, not the Table itself. Not sure what you mean
with RENAME and dummy DB.. Are you saying that I have to copy the
remote (backend) DB to the local machine and then do the transfer?
Nov 13 '05 #5

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

Similar topics

4
4741
by: oceanhai | last post by:
We currently have a PPTP connection set up for our developers to access our development SQL server through a VPN tunnel. When they need to copy tables up to the dev SQL from their local machine...
1
14202
by: PRM | last post by:
Hi I have an ASp.net application using C#. I need to copy a file present on the web server machine to a remote machine on the network. Although this seems to be a trivial matter I am having...
1
3880
by: POnfri | last post by:
Hi, I have a problem in a peace of code were i'm doing a file copy using File.Copy. The Source is local and the target is a remote machine. Example: File.Copy(C:\temp\hi.txt,...
0
1379
by: PRM | last post by:
Hi I have an ASp.net application using C#. I need to copy a file present on the web server machine to a remote machine on the network. Although this seems to be a trivial matter I am having...
3
2173
by: Johnny | last post by:
Hi, I have created an ASP.NET application (let's call it FooBar) with VS.NET on my local machine, residing in http://localhost/FooBar. Deploying it to another folder on my machine works well...
2
1625
by: Steve Franks | last post by:
The Copy Web tool provided with VS.NET 2005 is very convenient. However every once in a while it seems to think the files on the remote server have changed, which they have not. Then when I use...
5
4613
ak1dnar
by: ak1dnar | last post by:
Hi, I need to copy some tables from my local MsSQL(2000) database to remote MSSQL server.I think I should use DTS for this purpose. I can Connect to remote server and I cam copy the tables to...
2
5474
by: Bhavesh | last post by:
Hi everybody, I have problem in copying file from DatabaseServer to WebServer.Both machines are on LAN. Let me explain in details what i am doing & wht i want to achieve... I am using...
5
17656
by: =?Utf-8?B?QWRyaWFuTW9ycmlz?= | last post by:
Hello! I'm trying to copy a file from another computer on the network that I do not have permission with my current logon details to access. If I open the folder using the Windows file manager...
0
7192
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
7064
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7315
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
7445
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5559
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1492
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
369
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.