DTS to Excel File

DTS to Excel File

Question:
I tried a DTS export of a table to an Excel file. The data types of all the columns in the table are varchar. When it exports to the Excel file, Excel forces every column to be text. So every value of every cell has a single quote before it (not in the cell itself, but in the value shown right below the toolbar). Since the other system that’s going to process the Excel file does not expect the single quote, the process always fails.

How do I get rid of the single quote?

Answer:
This apostrophe is a formatting character that’s displayed in Excel as a (‘). I haven’t found a way to remove it during the DTS export.

In Excel, you can remove it by formatting a cell as text (Format, Cells…, select Text in the General tab). Copy the cell, select the cells with the apostrophe, click Paste Special, and then select the Add radio button. This method doesn’t affect the data but removes the leading apostrophe. You can do this manually or create a routine in VBA that runs those steps automatically.

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of