Before Sql server 2017 we only had LTRIM and RTRIM function available to remove spaces from left and right separately. With trim function now being available in sql server 2017 it can be used for two purposes.
Lets look at the syntax of Trim function first.
TRIM ( [ characters FROM ] string )
Trim in sql server 2017 can be used to remove space character or other characters from the start and the end of the string.
Lets now look at the two usage of trim function with example.
SELECT TRIM( ‘ sqlag ‘) AS RESULT, ‘First example’
SELECT TRIM( ‘. , #’ FROM ‘ # sqlag . ‘) AS RESULT,’Second example’
2,032 total views, 4 views today
The attribute value in Dimension table are going to change slowly over time and they…
Changing Database compatibility level will be required when you upgrade your database from one…
To know what is compatibility Level check this post link. You can view the compatibility…
SQL Server Compatibility level will be used to decide how SQL will use it features.…
A view is a virtual table. View will not store any data physically. The data…
Below is the error which I was getting today while deploying the SSIS pacakge for…