Discussion Overview
The discussion revolves around the issue of saving an Excel spreadsheet as a tab-delimited text file, specifically addressing the problem of fields containing commas being enclosed in quotes. Participants explore various methods to prevent this behavior and discuss alternative approaches for transferring data into a SQL Server database.
Discussion Character
- Technical explanation
- Debate/contested
- Experimental/applied
Main Points Raised
- One participant seeks a method to save an Excel file without quotes around fields containing commas when saved as a tab-delimited text file.
- Another participant suggests that changing the cell format from Text to General or Custom might resolve the issue with quotes.
- A participant reports that changing cell formats did not eliminate the quotes, speculating that Excel may be trying to prevent a comma-separated value error.
- One participant proposes using a text editor for a search and replace method to remove quotes after saving the file, expressing frustration over the inconsistent quoting behavior of Excel.
- Another participant mentions the possibility of writing a macro to remove quotes from the output, indicating that editing the output is not their preferred solution.
- Discussion shifts to the database system into which the data is being imported, with one participant sharing their experience of using SQL Server and Access for data import and export.
- A later reply provides detailed steps on using DTS (Data Transformation Services) in SQL Server for importing Excel data, suggesting it as an alternative to saving as a text file.
- One participant inquires about the version of Excel being used, noting that their version does not have issues exporting as a tab-delimited text file without quotes.
Areas of Agreement / Disagreement
Participants express differing views on how to handle the quoting issue, with no consensus on a definitive solution. Some propose changing cell formats, while others suggest alternative methods like using a macro or importing directly into SQL Server.
Contextual Notes
Participants mention various Excel versions and their experiences, indicating that the behavior may vary depending on the software version used. There is also a lack of clarity on the underlying reasons for the quoting behavior in Excel.
Who May Find This Useful
This discussion may be useful for users dealing with data export from Excel to text files, particularly those encountering issues with formatting and importing data into SQL databases.