Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exporting to Excel
Message
From
11/10/2021 11:26:05
 
 
To
10/10/2021 23:56:06
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01682467
Message ID:
01682479
Views:
41
>Come on, permutating the workable T-SQL should not take long
>give us a clue what differentiates working and not working solutions

CHAR(34)+substring(" " +Table.Field, 2, 999999)+CHAR(34)

Works

CHAR(34)+rtrim(Table.Field)+CHAR(34)

Works

CHAR(34)+cast(Table.Field as ...)+CHAR(34)

Works

CHAR(34)+stuff(Table.Field, with no working, "whatever")+CHAR(34)

Can't make this one work.

CHAR(34)+stuff(Table.Field, working, "whatever")+CHAR(34)

Can't make this one work.

CHAR(34)+Table.Field+CHAR(34)

Also works and simpler, but, I need to REPLACE quotes inside the content with a blank so it won't affect the delimiters. I still don't understand why this didn't work in the first place. Now, it does.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform