Solved

MS SQL Server 2000/2005 - Export data to text file (ASCII) in binary format?

Posted on 2007-11-29
7
5,855 Views
Last Modified: 2012-06-27
I thought I read this some where but is it possible to routinely export data from SQL Server into a text file (ASCII) in a binary format? I have the pleasure of creating an interface to deliever data to a mainframe system using COBOL (a middleware service converts the file I'm sending).
0
Comment
Question by:xizwyck
  • 4
  • 2
7 Comments
 
LVL 15

Expert Comment

by:spprivate
ID: 20373943
You can hae SQL Jobs and DTS package or BulkCopy to do this trick.Is the source file name going to be the same althrough?
0
 
LVL 3

Author Comment

by:xizwyck
ID: 20374441
The source file name would be the same.

When you say BulkCopy, do you mean BCP?
0
 
LVL 15

Expert Comment

by:spprivate
ID: 20374733
yes,just look into a post we answered few days back.
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 15

Expert Comment

by:spprivate
ID: 20374754
0
 
LVL 15

Accepted Solution

by:
spprivate earned 500 total points
ID: 20374809
Oh mY bad
I misread the question.You wanted to exprt data rather than import it to SQL.Hmm
well
You can use SQL Import Export wizard and create the destination as flat file source .Now create this as an SSIS package(DTS in 2000) and schedule it.
0
 
LVL 5

Expert Comment

by:MrNetic
ID: 20374919
You can create a SSIS package that for example will export the data to a txt file, then export the file using ftp tp the mainframe and in the end receive a e-mail report.
You can do this just by developing a SSIS package.

Hope this helps.
0
 
LVL 3

Author Comment

by:xizwyck
ID: 20479510
Sorry, been busy. Thanks everyone!
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how the fundamental information of how to create a table.

863 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

25 Experts available now in Live!

Get 1:1 Help Now