Solved

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

Posted on 2007-11-29
7
5,847 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
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
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.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

747 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

12 Experts available now in Live!

Get 1:1 Help Now