Re: Copying from one record set to another
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Wed, 18 Jun 2008 16:02:42 -0400
INTP56 wrote:
Hi, I am trying to do a workaround while I'm trying to resolve an
issue with the SQL Server implementation that does the same thing,
but is currently broken.
Basically, I have an MDB file with two tables in it, and two tables
in SQL Server that look just like the tables in the access database
Both tables have an auto increment field on the Access side. I want to
select the new records from the Access db and insert them into the
SQL DB.
I can get to both DBs from Excel. I can write code that pulls the new
records from Access into Excel,
Excel???
Stop. You're killing me :-)
There are some simple solutions for this situation:
1. In Access, simply create links to the two sql server tables in your
Access mdb and run a couple insert queries.
2. In SQL Server: create a linked server in SQL Server pointing at the
Access database and do the same thing: run a couple insert queries to
copy the data.
3. In SQL Server: use DTS (SSIS if SQL2005) to import the data from
Access into SQL Server?
OK, OK, I know the answer is that you probably don't know anything about
these concepts. Well, now's the time to start reading:
read about linked tables in Access online help - a linked table can be
treated just like a local Access table in a query
or
linked servers in SQL Server BOL (online help)
or
DTS/SSIS in SQL Server BOL (online help)
If you need help with option 1, post to an Access newsgroup.
For help with the other two options, post to a sql server newsgroup
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
.
- Follow-Ups:
- Re: Copying from one record set to another
- From: INTP56
- Re: Copying from one record set to another
- References:
- Copying from one record set to another
- From: INTP56
- Copying from one record set to another
- Prev by Date: Copying from one record set to another
- Next by Date: Re: Copying from one record set to another
- Previous by thread: Copying from one record set to another
- Next by thread: Re: Copying from one record set to another
- Index(es):
Relevant Pages
|