Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Text qualifier "

Author  Topic 

sqlpal2007
Posting Yak Master

200 Posts

Posted - 2011-11-22 : 13:22:48
Hello All,

My SSIS package exports the SQL data to CSV file. The first column doesn't show the text qualifier.

(Microsoft Visual Studio 2008)
For example:
FName|"LName"|"Age"|"Department"
Amy|"Green"|"30"|"Sales"

These are the settings -
Text qualifier: "
Header row delimiter: {CR}{LF}
Header rows to skip: 0
checked column names in first row.
Row delimiter: {CR}{LF}

Can any one tell me why the first column is not around the double quotes?

Thanks,

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-11-22 : 23:59:30
Its working for me

WHats the datatype of Fname?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

sqlpal2007
Posting Yak Master

200 Posts

Posted - 2011-11-23 : 00:06:29
It is varchar. I tried shuffling int and varchar type columns but didn't show the qualifier for both the situations.

Thanks
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-11-23 : 00:29:00
do you've some unprintable characters present in it. try taking DATALENGTH() and see

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

sqlpal2007
Posting Yak Master

200 Posts

Posted - 2011-11-23 : 08:57:45
The DATALENGTH match to the actual length of the data. Could it be due to the service pack?
Go to Top of Page
   

- Advertisement -