Solved

SQL to Access scheduling problem - disappearing tables

Posted on 2007-03-29
4
542 Views
Last Modified: 2013-11-30
I’m a database user who’s kind of getting forced into a data admin role, and I’m at the very edge of my expertise. I’m working with a company who doesn’t have a database administrator, but has a SQL 2000 w/SP3 database that they want to bring into MS Access 2003  in order to do some drill down data mining (I’m doing the mining, which is how I got wrapped up in this export project).

I’m using Enterprise Manager’s DTS Import/Export wizard to move the data from SQL into Access. The data transfers flawlessly, but I run into problems when I try to schedule the export to run daily. The first export works ok, but then tables start to drop out and disappear. Big problem! The tables that get updated look like they’re updating accurately…until they disappear.

I’m not running any queries in the wizard, just a straight copy of certain tables and views that I’m selecting in the “Select source tables and views” step. I’m also clicking on the “Transform” button to get a “Column Mappings and Transformations” window. In this window, “Create destination table” is already checked, and I also check the “drop and recreate destination table,” which I thought was necessary in order for the update to run correctly. In the next window “Save, schedule and replicate package” I check the “run immediately” box and the “schedule DTS package for later execution” box, selecting daily at 10pm. I save and name the DTS package (I leave the SQL server button checked).

When I complete the export, the process runs successfully, except that each of the “drop table” steps shows an error. I kind of thought this was normal, since I’m exporting into a blank Access database, and there wouldn’t be any table for the process to delete.

Can anyone help me solve the issue of the disappearing tables following the scheduled export? Please keep in mind my expertise is limited in this area of database management. A detailed step by step account of what has to be setup and configured would be most appreciated.
0
Comment
Question by:HDBee3
  • 2
4 Comments
 
LVL 30

Expert Comment

by:nmcdermaid
Comment Utility
Are the tables disappearing in MS Access or SQL Server?
0
 

Author Comment

by:HDBee3
Comment Utility
In response to nmcdermaid, the tables are disappearing in MS Access after the scheduled updates are being run exporting the data out of SQL server.
0
 
LVL 5

Expert Comment

by:MrNetic
Comment Utility
HDBee3,

I understand that you don't have deep knowledge in MSSQLSER, but i'll try to give you a strait forward solution.

Step 1 - Export the tables from SQLSERVER to ACCESS ( do not schedule DTS ), confirm the the data is exported correctly.

Step 2 - Build you own query ( build a select that return only the last day of data that you want) , then, in the Collumn Mappings and Transformations, disable the drop/create of tables and choose append data.

Step 3 - Schedule this last DTS to run daily.

Best Regards
0
 
LVL 5

Accepted Solution

by:
MrNetic earned 250 total points
Comment Utility
HDBee3,

I understand that you don't have deep knowledge in MSSQLSER, but i'll try to give you a strait forward solution.

Step 1 - Export the tables from SQLSERVER to ACCESS ( do not schedule DTS ), confirm the the data is exported correctly.

Step 2 - Build you own query ( build a select that return only the last day of data that you want) , then, in the Collumn Mappings and Transformations, disable the drop/create of tables and choose append data.

Step 3 - Schedule this last DTS to run daily.

Best Regards,

Paulo Condeça
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now