473,405 Members | 2,279 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

SQL 2005 - Export table to a fixed width file.

I want to export a table into a "fixed width" file using SQL 2005
import export wizard.

This is the version I have:
SQL Server 2005 - 9.00.2047.00

For some reason it joins all the rows together. For EX: if the table
is like this:
Create table Mytable (col1 varchar(50) null, col2 varchar(60) null,
col3 varchar (100) Null)

Insert into MyTable values ("abcdef", "12345", "8900")

Insert into MyTable values ("xxxxxxx", "11111111", "22222222")
Insert into MyTable values ("yyyyyyyyy", "5555555555555555",
"6666666666")

Insert into MyTable values ("abcdef", "12345", "8900")

Insert into MyTable values ("xxxxxxx", "11111111", "22222222")
Insert into MyTable values ("yyyyyyyyy", "5555555555555555",
"6666666666")

It is not exporting every row in a single line. Actually if I open it
in "Ultra Edit", it is all in one line.
I used to do this regularly with SQL 2000 import export wizard and it
exported every row in one line.

I looked at the setting:

The header row delimiter has {CR}{LF}
Code page has 1252 Ansi-Latin.
In the Advanced tab:
String:dt_str.

I tried changing the header row delimiter to just {CR} or just {LF}.
Also I tried changing the string to dt_text and nothing seems to help.

Please help.

Thank you

Oct 31 '06 #1
0 1796

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ted Theodoropoulos | last post by:
i posted an earlier thread about exporting data from a subform in an ..ADP to an .MDB file. i had only one gracious response but it wouldn't work in the given situation. so i thought i would...
5
by: Reggie | last post by:
Hi and TIA! I have a query that I want to save as a fixed-width text file. I can get the export to work using an export specification with one exception. This is a government message and they need...
10
by: Neil | last post by:
Hi guyz, just trying out this google feature so if i post if in the wrong area i appologize. now to my question. BTW i'm new to access programming, i've done a little vb6.0 and vb.net but access...
1
by: ANDRESUK | last post by:
Everyone, I'm trying to export a table containing numeric fields with formats such as "00000000" which would return the value with some leading zeros. It works fine in the table as it is...
3
by: Daniel Wetzler | last post by:
Dear MSSQL- experts, I have a strange problem with SQLSERVER 2000. I tried to export a table of about 40000 lines into a text file using the Enterprise manager export assitant. I was astonished...
1
by: gelangov | last post by:
I am sorry, I am posting this message again, since I did not get any reply. I want to export a table into a "fixed width" file using SQL 2005 import export wizard. This is the version I have:...
1
by: jpetrie | last post by:
We're using Access 2003, on XP systems. All users are on SP2. We've written a database that works fine in IT, but the end users are not able to run it. The process includes exporting a table to...
3
by: Wayne | last post by:
I'm trying to automate the export of a query to a text file using code. If I export the query manually I get the exact result that I want i.e. If I select the query then choose File/Export from...
0
by: Max | last post by:
Hi I am trying to export an Access table to a fixed-width text file. The table contains 2 memo fields of approx. 1000 characters each. I am using the 'Export text wizard' to export. In this...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.