UDF to wrap a string in double quotes for an output
On 11 Apr, 2015
By : Charith Silva
No Comments
Views : 3129
Below user-defined scalar function help you to wrap a string in double quotes for a formatted text output .
|
USE [databasename]; GO CREATE FUNCTION [dbo].[DoubleQuoted_String](@string nvarchar(3500)) RETURNS nvarchar(4000) AS BEGIN RETURN('"' + @string + '"') END |
Related
About The Author
Charith Silva is a Microsoft certified SQL Server developer and database administrator who was graduated at Buckinghamshire New university in the UK. His career was started in 1998, primarily into Web application development, and later diversified into database development.
He has got a vast experience in SQL Server database development, Database administration and Business Intelligence development. He believes that sharing the knowledge is key to the success.
Number of Posts :
87
Leave a Comment