Unix Technical Forum

query analyzer returning messed up data

This is a discussion on query analyzer returning messed up data within the SQL Server forums, part of the Microsoft SQL Server category; --> I am using SQL7 Query Analyzer. A simple select * from myMLSview and then I save results as a ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 08:08 AM
ftw
 
Posts: n/a
Default query analyzer returning messed up data

I am using SQL7 Query Analyzer. A simple select * from myMLSview and
then I save results as a .csv file has the commas messed up in quite a
few places. The data is messed up before I save it to the .csv file. So
there are blank spaces being added here and there causing them to read
as 'add comma' when saving to .csv format. Even the column data is
messed up... example: ,photo_mod_time,photo_mo,d_date, should read
,photo_mod_time,photo_mod_date,
I have a view on a remote MS-SQL7 Server, the view has about 200
columns and the data returned from the my querys can be from 10 to 25MB
in size. Connection is via Roadrunner/cable. Should I use another
method, maybe command line? Any suggestions?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 08:09 AM
Simon Hayes
 
Posts: n/a
Default Re: query analyzer returning messed up data

I have no idea why the commas are messed up, but in general bcp.exe or
DTS would be a better way to create a .CSV - it's probably faster, and
you don't have to do anything manually as you can just script it and
run a batch file. There are more details in Books Online.

Simon

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 08:12 AM
ftw
 
Posts: n/a
Default Re: query analyzer returning messed up data

Do you know any good net sources of info to learn DTS?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-29-2008, 08:12 AM
Simon Hayes
 
Posts: n/a
Default Re: query analyzer returning messed up data


"ftw" <spammershere@yahoo.com> wrote in message
news:1114436559.082966.163370@o13g2000cwo.googlegr oups.com...
> Do you know any good net sources of info to learn DTS?
>


http://www.sqldts.com/

And Books Online, of course.

Simon


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:24 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com