Hello,
I have an access database and an SQL database and using data transformation services, i want to update the access database using the SQL data.
Can anyone tell me the syntax for referencing the access database?
Is it something like: [TABLENAME].dbo.FIELDNAME ?
Just to clarify, i have
Microsoft Access Database
Table 1 (UnitHistory)
SQL Database
Table 1 (UnitHistory)
How do i reference these seperately? I want to update the microsoft access database based on the SQL database data.
Eventually i'm trying to update an access database using the data held on my SQL server. Is DTS the best way for me to acomplish this or should i use another method?
Thanks guys1. look up in Sql book online for the syntax to create a linked server to Access.
2. do something like this to update Access:
Update A
set UnitHistory = S.UnitHistory
from [Access_linkedserver]...[Tb_name] A, [Sql_Tb_Name] S
where A.pkid=S.pkid
-- and
Tuesday, March 20, 2012
Referencing other databases in SQL Statements
Labels:
access,
database,
databases,
microsoft,
mysql,
oracle,
referencing,
server,
services,
sql,
statements,
transformation,
update
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment