473,396 Members | 2,052 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.

Copy table from backend?

Is ther a way to copy a table, from the backend of a split database,
into a database on another machine from the front end?
Dec 13 '06 #1
7 2698
ShyGuy wrote:
Is ther a way to copy a table, from the backend of a split database,
into a database on another machine from the front end?
You could do something like

SELECT * FROM [BE_TABLE_NAME] INTO [FE_TABLE_NAME];

You will have to set up the index(es) yourself afterward.

Did you mean "... copy ... into a database on a machine different than
where my FE is"? This is still doable, assuming you have access to the
remote machine, but the syntax is a bit different.

--
Smartin
Dec 14 '06 #2
On Wed, 13 Dec 2006 19:01:06 -0500, Smartin <sm********@yahoo.com>
wrote:
>ShyGuy wrote:
>Is ther a way to copy a table, from the backend of a split database,
into a database on another machine from the front end?

You could do something like

SELECT * FROM [BE_TABLE_NAME] INTO [FE_TABLE_NAME];

You will have to set up the index(es) yourself afterward.

Did you mean "... copy ... into a database on a machine different than
where my FE is"? This is still doable, assuming you have access to the
remote machine, but the syntax is a bit different.

Thanks for the reply. Sorry I didn't give enough info.

I have a DB that is not split and I have code that crates a DB on a
remote machine and then copies a table form the DB I'm working on into
the newly created DB. It works fine but when I split the DB the code
only copies the link. I need to copy the actual table from the back
end.
Dec 14 '06 #3
ShyGuy wrote:
On Wed, 13 Dec 2006 19:01:06 -0500, Smartin <sm********@yahoo.com>
wrote:
>ShyGuy wrote:
>>Is ther a way to copy a table, from the backend of a split database,
into a database on another machine from the front end?
You could do something like

SELECT * FROM [BE_TABLE_NAME] INTO [FE_TABLE_NAME];

You will have to set up the index(es) yourself afterward.

Did you mean "... copy ... into a database on a machine different than
where my FE is"? This is still doable, assuming you have access to the
remote machine, but the syntax is a bit different.


Thanks for the reply. Sorry I didn't give enough info.

I have a DB that is not split and I have code that crates a DB on a
remote machine and then copies a table form the DB I'm working on into
the newly created DB. It works fine but when I split the DB the code
only copies the link. I need to copy the actual table from the back
end.
Then this ought to work:

SELECT * INTO [dest_table_name] IN 'path_to_dest_MDB'
FROM [source_table]

--
Smartin
Dec 17 '06 #4
On Sat, 16 Dec 2006 19:31:44 -0500, Smartin <sm********@yahoo.com>
wrote:
>ShyGuy wrote:
>On Wed, 13 Dec 2006 19:01:06 -0500, Smartin <sm********@yahoo.com>
wrote:
>>ShyGuy wrote:
Is ther a way to copy a table, from the backend of a split database,
into a database on another machine from the front end?
You could do something like

SELECT * FROM [BE_TABLE_NAME] INTO [FE_TABLE_NAME];

You will have to set up the index(es) yourself afterward.

Did you mean "... copy ... into a database on a machine different than
where my FE is"? This is still doable, assuming you have access to the
remote machine, but the syntax is a bit different.


Thanks for the reply. Sorry I didn't give enough info.

I have a DB that is not split and I have code that crates a DB on a
remote machine and then copies a table form the DB I'm working on into
the newly created DB. It works fine but when I split the DB the code
only copies the link. I need to copy the actual table from the back
end.

Then this ought to work:

SELECT * INTO [dest_table_name] IN 'path_to_dest_MDB'
FROM [source_table]

ere do I put this code? I tried behind a button and get an expected
Case error.

I tried it in the SQL window of a query and it wouldn't let me save or
return to design view. Seems to have locked up.
Dec 17 '06 #5
ShyGuy wrote:
On Sat, 16 Dec 2006 19:31:44 -0500, Smartin <sm********@yahoo.com>
wrote:
>ShyGuy wrote:
>>On Wed, 13 Dec 2006 19:01:06 -0500, Smartin <sm********@yahoo.com>
wrote:

ShyGuy wrote:
Is ther a way to copy a table, from the backend of a split database,
into a database on another machine from the front end?
You could do something like

SELECT * FROM [BE_TABLE_NAME] INTO [FE_TABLE_NAME];

You will have to set up the index(es) yourself afterward.

Did you mean "... copy ... into a database on a machine different than
where my FE is"? This is still doable, assuming you have access to the
remote machine, but the syntax is a bit different.

Thanks for the reply. Sorry I didn't give enough info.

I have a DB that is not split and I have code that crates a DB on a
remote machine and then copies a table form the DB I'm working on into
the newly created DB. It works fine but when I split the DB the code
only copies the link. I need to copy the actual table from the back
end.
Then this ought to work:

SELECT * INTO [dest_table_name] IN 'path_to_dest_MDB'
FROM [source_table]


ere do I put this code? I tried behind a button and get an expected
Case error.

I tried it in the SQL window of a query and it wouldn't let me save or
return to design view. Seems to have locked up.
That was straight SQL that works for me, it should work in the SQL query
view. Would you post what you tried?

--
Smartin
Dec 19 '06 #6
On Mon, 18 Dec 2006 20:19:47 -0500, Smartin <sm********@yahoo.com>
wrote:
>ShyGuy wrote:
>On Sat, 16 Dec 2006 19:31:44 -0500, Smartin <sm********@yahoo.com>
wrote:
>>ShyGuy wrote:
On Wed, 13 Dec 2006 19:01:06 -0500, Smartin <sm********@yahoo.com>
wrote:

ShyGuy wrote:
>Is ther a way to copy a table, from the backend of a split database,
>into a database on another machine from the front end?
You could do something like
>
SELECT * FROM [BE_TABLE_NAME] INTO [FE_TABLE_NAME];
>
You will have to set up the index(es) yourself afterward.
>
Did you mean "... copy ... into a database on a machine different than
where my FE is"? This is still doable, assuming you have access to the
remote machine, but the syntax is a bit different.

Thanks for the reply. Sorry I didn't give enough info.

I have a DB that is not split and I have code that crates a DB on a
remote machine and then copies a table form the DB I'm working on into
the newly created DB. It works fine but when I split the DB the code
only copies the link. I need to copy the actual table from the back
end.
Then this ought to work:

SELECT * INTO [dest_table_name] IN 'path_to_dest_MDB'
FROM [source_table]


ere do I put this code? I tried behind a button and get an expected
Case error.

I tried it in the SQL window of a query and it wouldn't let me save or
return to design view. Seems to have locked up.

That was straight SQL that works for me, it should work in the SQL query
view. Would you post what you tried?

I just retried the code and for some reson, user error on previous try
;-( , it worked fine. I think I tried to use a variable in the
destination db name.

I had wanted to generate a date on the destination but I guess I can
live without that.

Thanks you so much for your help.
Dec 21 '06 #7
ShyGuy wrote:
On Mon, 18 Dec 2006 20:19:47 -0500, Smartin <sm********@yahoo.com>
wrote:
>ShyGuy wrote:
>>On Sat, 16 Dec 2006 19:31:44 -0500, Smartin <sm********@yahoo.com>
wrote:

ShyGuy wrote:
On Wed, 13 Dec 2006 19:01:06 -0500, Smartin <sm********@yahoo.com>
wrote:
>
>ShyGuy wrote:
>>Is ther a way to copy a table, from the backend of a split database,
>>into a database on another machine from the front end?
>You could do something like
>>
>SELECT * FROM [BE_TABLE_NAME] INTO [FE_TABLE_NAME];
>>
>You will have to set up the index(es) yourself afterward.
>>
>Did you mean "... copy ... into a database on a machine different than
>where my FE is"? This is still doable, assuming you have access to the
>remote machine, but the syntax is a bit different.
Thanks for the reply. Sorry I didn't give enough info.
>
I have a DB that is not split and I have code that crates a DB on a
remote machine and then copies a table form the DB I'm working on into
the newly created DB. It works fine but when I split the DB the code
only copies the link. I need to copy the actual table from the back
end.
Then this ought to work:

SELECT * INTO [dest_table_name] IN 'path_to_dest_MDB'
FROM [source_table]
ere do I put this code? I tried behind a button and get an expected
Case error.

I tried it in the SQL window of a query and it wouldn't let me save or
return to design view. Seems to have locked up.
That was straight SQL that works for me, it should work in the SQL query
view. Would you post what you tried?


I just retried the code and for some reson, user error on previous try
;-( , it worked fine. I think I tried to use a variable in the
destination db name.

I had wanted to generate a date on the destination but I guess I can
live without that.

Thanks you so much for your help.
Ahh, a PEBKAC error (^: I'm sure I've never done that (^;

You can generate an additional (date) field if you desire. A couple
things I discovered:

// inserts NEW_FIELD at "left" of others
SELECT *, Date() AS NEW_FIELD INTO [dest_table_name] IN 'path_to_dest_MDB'
FROM [source_table]

// inserts NEW_FIELD at "right" of others
SELECT [source_table].*, Date() AS NEW_FIELD INTO [dest_table_name] IN
'path_to_dest_MDB'
FROM [source_table]

--
Smartin
Dec 23 '06 #8

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

Similar topics

1
by: Juris Krumins | last post by:
Couple a weeks ago (19.08.03 Subject: Temporaty tables) I've posted message with question about errors I'm getting while using create temporaty table command. So I'm start digging in src code as...
17
by: Dr NoName | last post by:
Help! I have a table that multiple processes must be able to write to concurrently. However, it for some reason gets locked in exclusive mode. I narrowed it down to one SQL statement + some...
6
by: MAB71 | last post by:
There should be a way to copy an access database ( .mdb file ) without closing connections to it. Unfortunately the FileCopy statement in VB gives an error if users are connected to the db. But I...
17
by: Jon Ole Hedne | last post by:
I have worked on this problem some hours now (read many-many...), and I can't solve it: In vba-code I create a table with Connection.Execute, and add some data to it. This table is saved in the...
4
by: ShyGuy | last post by:
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...
1
by: Knepper, Michelle | last post by:
Hi out there, I'm a first-time user of the "Copy ... From..." command, and I'm trying to load a table from a text flat file. http://www.postgresql.org/docs/7.4/static/sql-copy.html I don't...
2
by: Mark | last post by:
I have been developing a new application (FE on local drive) which is attached to tables in a BE on a server. For testing purposes I had a copy of the BE in the same folder as the live BE and the...
6
by: rdemyan via AccessMonster.com | last post by:
I have a situation where I need to create a copy of the back-end for a person who goes on the road (Remote Back-End). It needs to be as current as possible, so this will generally mean that others...
4
by: Jim Devenish | last post by:
I wish to copy a table on a SQL Server backend to a table on an Access (.mdb) front end in the simplest way. I have the following to get the recordset but am seeking something easier. Dim...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.