Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
|
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 11th, 2005, 08:27 AM
Authorized User
 
Join Date: Aug 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access to SQL Server using Package

Hi All,

I have to create a package which will take the records of an access table and update the values in an sql server table with the corresponding id.

I have a table in each db called person with the following fields, ID name, country.

So If the ID value from the access table is in the sql server table, i want to update the rest of the fields in the sql server table.

So far I have connection objects to each db and an execute sql task object to get the records from the access table then store them in a global variable.

I'm I going about this the right way.

Any help would be appreciated.

Thanks:(

 
Old October 13th, 2005, 03:40 AM
Authorized User
 
Join Date: Aug 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have a solution:

01) Create a table in SQL Server which will temporarily hold the records you are importing.

02) Use the DTS import wizard to import the records from access into sql server and save the package.

03) Create a stored procedure to update the primary table from the temp then delete the temp records.

04) Add to the package sql task to execute the stored procedure on success of record import.

I hope someone finds this useful, apart from myself.

:)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Access sql server from on different host sdagger SQL Server ASP 1 October 29th, 2008 06:14 PM
Access to SQL Server 2000 jgferguson Access 3 December 1st, 2006 12:52 PM
Using Access with SQL Server Data npepin Access 4 July 21st, 2004 03:36 PM
SQL in Access and in SQL Server mikko SQL Server 2000 1 July 29th, 2003 06:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.