<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://www.sqlines.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://www.sqlines.com/feed.php">
        <title>SQLines Tools sql-server:functions</title>
        <description></description>
        <link>https://www.sqlines.com/</link>
        <image rdf:resource="https://www.sqlines.com/lib/images/favicon.ico" />
       <dc:date>2026-04-14T06:36:43+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://www.sqlines.com/sql-server/functions/datediff?rev=1340719673&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.sqlines.com/sql-server/functions/error?rev=1343228962&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.sqlines.com/sql-server/functions/rtrim?rev=1323594555&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.sqlines.com/sql-server/functions/year?rev=1325163110&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://www.sqlines.com/lib/images/favicon.ico">
        <title>SQLines Tools</title>
        <link>https://www.sqlines.com/</link>
        <url>https://www.sqlines.com/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="https://www.sqlines.com/sql-server/functions/datediff?rev=1340719673&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-06-26T14:07:53+00:00</dc:date>
        <title>SQL Server - DATEDIFF - Datetime Difference in Seconds, Days, Weeks etc</title>
        <link>https://www.sqlines.com/sql-server/functions/datediff?rev=1340719673&amp;do=diff</link>
        <description>SQL Server DATEDIFF function returns the difference in seconds, minutes, hours, days, weeks, months, quarters and years between 2 datetime values. 

Quick Example:


   -- The difference is days between today and yesterday
   SELECT DATEDIFF(dd, GETDATE() - 1, GETDATE());
   -- Returns: 1

   -- The number of seconds in 24 hours
   SELECT DATEDIFF(ss, GETDATE() - 1, GETDATE());
   -- Returns: 86400</description>
    </item>
    <item rdf:about="https://www.sqlines.com/sql-server/functions/error?rev=1343228962&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-07-25T15:09:22+00:00</dc:date>
        <title>@@ERROR - Get Last Error Code - SQL Server for Oracle DBAs and Developers</title>
        <link>https://www.sqlines.com/sql-server/functions/error?rev=1343228962&amp;do=diff</link>
        <description>In SQL Server, @@ERROR function returns the error code of the last Transact-SQL statement executed. 

Note that even IF and PRINT statements reset  the error code, so you have to check it immediately after executing a DML or
DDL statement, or save it to a local variable and check later.</description>
    </item>
    <item rdf:about="https://www.sqlines.com/sql-server/functions/rtrim?rev=1323594555&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-12-11T09:09:15+00:00</dc:date>
        <title>SQL Server RTRIM Function - Features, Examples and Equivalents</title>
        <link>https://www.sqlines.com/sql-server/functions/rtrim?rev=1323594555&amp;do=diff</link>
        <description>RTRIM function truncates all trailing blanks from a string.

 Syntax  RTRIM(string)  Quick Example  SELECT RTRIM('A   ');  CHAR(160)  Non-breaking space (Unicode 160, or HTML &amp;nbsp;) is not removed by RTRIM  

Versions: SQL Server 2008 and 2005

Related Functionality in SQL Server


Related functions for RTRIM in SQL Server:</description>
    </item>
    <item rdf:about="https://www.sqlines.com/sql-server/functions/year?rev=1325163110&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-12-29T12:51:50+00:00</dc:date>
        <title>SQL Server YEAR Function - Features, Examples and Equivalents</title>
        <link>https://www.sqlines.com/sql-server/functions/year?rev=1325163110&amp;do=diff</link>
        <description>YEAR function returns the year of the specified datetime value.

 Syntax  YEAR(datetime)  Quick Example  SELECT YEAR('2010-09-17');  Return Type  INT  Alternative  DATEPART(YEAR, datetime)  Note  Returns 1900 if datetime contains only time part 

Version: SQL Server 2008 R2</description>
    </item>
</rdf:RDF>
