Solved

Archive SQL table to file

Posted on 2010-09-23
3
286 Views
Last Modified: 2012-05-10
Hi,
I need to archive a table from my sql database to file. Some records within the table contain XML data so i don't think exporting to csv/xls is an option. This data need to be archived programmatically on a regular basis. Also I need to know how to access this data in future if required(Import back in to temp table etc).
Thanks in advance for your help.
0
Comment
Question by:ncollings
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 9

Accepted Solution

by:
radcaesar earned 500 total points
ID: 33742642
Use the bcp tool to export the data to flat files and use the pipe "|" delimiter.

If you want to schedule that for future use, Have the bcp command in a batch file (.bat) and schedule it.
0
 
LVL 15

Expert Comment

by:AmmarR
ID: 33743173
Dear ncollings

when you say archive file, do you mean you want to access this file or just store it.

because if you just need to archive to backup and storage, you can use sql db back up
by right clicking on a database --> task --> backup

but if you want to access it programmatically.
you can detach the database file as is dbname.mdf and connect to it using vb.net

hope it clarifies


0
 
LVL 3

Author Closing Comment

by:ncollings
ID: 33767756
Pointed me in the right direction
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are some very powerful Data Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a discu…
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

627 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