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 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Where have all the commas gone?

Author  Topic 

SamC
White Water Yakist

3467 Posts

Posted - 2004-06-22 : 11:06:08
Sung to the tune of "Where have all the cowboys gone?"

I've got an EXCEL spreadsheet, the last 4 columns have headers, but no data.

When I save it as a CSV file, EXCEL correctly includes the trailing commas on the first 14 lines of CSV, then doesn't include the trailing commas on the rest of the data.

DTS isn't going to like this at all. Is anyone familiar with this problem ? Any workaround?

Sam

Kristen
Test

22859 Posts

Posted - 2004-06-22 : 13:31:58
Wild guess: Are the rogue cells in some way NULL rather than Empty? I don't know, but can you put
=""
in them?

Kristen

Go to Top of Page

SamC
White Water Yakist

3467 Posts

Posted - 2004-06-22 : 14:04:40
Thanks for the suggestion, it works great.

Now is there an EXCEL trick to paste a cell value of "" into all rows of the last column (there are 35000 rows)? I can select the entire column, but that results in pasting into additional rows beyond the rows that have data.

Sam
Go to Top of Page

Seventhnight
Master Smack Fu Yak Hacker

2878 Posts

Posted - 2004-06-22 : 15:10:39
1) go to column that you want to fill
2) hold shift and arrow to a column that is filled to 35000
3) still holding shift: hit ctrl-dwn (dwn: down arrow)
4) still holding shift: arrow back to correct column
5) ctrl-v to fill



Corey
Go to Top of Page

SamC
White Water Yakist

3467 Posts

Posted - 2004-06-22 : 15:11:40
Thanks Corey (and Kristen)

Sam
Go to Top of Page

Seventhnight
Master Smack Fu Yak Hacker

2878 Posts

Posted - 2004-06-22 : 15:13:10
read the edit...
i messed up the first time

Corey
Go to Top of Page
   

- Advertisement -