Share via

How to use |~ together in Custom Delimiter in SSMS ?

Nicky 121 Reputation points
Sep 3, 2020, 1:03 PM

I have to specify two custom delimiter in SSMS to retrieve results in a file '|~'. Custom delimiter in SSMS accepts only one character. How can I achieve this ? I have access only to SSMS on machine.

Thanks In advance!

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,494 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Olaf Helper 46,376 Reputation points
    Sep 3, 2020, 2:09 PM

    Not clear how you try to import the file using SSMS?
    Do you mean the Import/Export wizard? That one accepts more then one delimiter sign, just enter them instead selecting a predefined delimiter.

    Olaf

    0 comments No comments

  2. Cris Zhan-MSFT 6,646 Reputation points
    Sep 4, 2020, 2:23 AM

    Hi,

    As Olaf said, If you are using the Import/Export wizard to import results in a file into a SQL Server table (Or export from SQL Server to file), you can manually enter the'|~' In the column delimiter selection box.Then click Refresh to check the results. As follows:

    22612-capture.png

    ===============================================

    If the response helped, do "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.