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

Nicky 121 Reputation points
2020-09-03T13:03:21.193+00:00

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 Other
{count} votes

2 answers

Sort by: Most helpful
  1. Olaf Helper 47,436 Reputation points
    2020-09-03T14:09:42.5+00:00

    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,661 Reputation points
    2020-09-04T02:23:55.457+00:00

    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.