|
|
-
|
|
SQL Server Denali brings us new string function, FORMAT function. It will make formatting of date/time and number values easier.
Syntax: FORMAT (value, format [,culture])
Formatting Date/Time
Let’s see how it works:
DECLARE @a datetime = getdate()
-- If the culture argument is not provide......
|
|
-
|
|
CONCAT() is new string function in SQL Server Denali. It returns a string that is the result of concatenating two or more string values (or values that can be converted to string).
Syntax: CONCAT (string_value1, string_value2 [, string_valueN ] )
With CONCAT function, you can concatenate between 2......
|
|
-
|
|
SQL Server Denali introduced 2 new logical functions: IIF and CHOOSE.
IIF function
IIF function returns one of two values, depending on whether Boolean expression evaluates to true or false.
Syntax: IIF (boolean_expression, true_value, false_value)
IIF function is simple replacement for:
Case ......
|
|
-
|
|
Microsoft has released a Product Guide for SQL Server Denali CTP3. It contains white papers, presentations, datasheets, demos and links to online videos and references. It’s excellent source of information for everyone who want to experience and evaluate Microsoft SQL Server Denali.
......
|
|
-
|
|
I’ve tried Denali CTP3 SQLPS and noticed some great changes. Here I will describe my first experience with Denali SQLPS.
I’ve started SQLPS by right-clicking on server node in SSMS Object Explorer and selecting “Start PowerShell”. I read that sqlps is no longer a mini-shell, so I first executed Get......
|
|
-
|
|
SQL Server Denali introduces 7 new date and time built-in functions. One of these functions is EOMONTH(). EOMONTH() returns the date value that represents the last day of the month for given date.
Syntax: EOMONTH( start_date [, months_to_add] )
Pre- Denali, to calculate the date value that represe......
|
|
-
|
|
TRY_CONVERT is new conversion function in SQL Server Denali. Unlike the CAST and CONVERT functions, TRY_CONVERT allows us to test whether it is possible to convert a value to specific data type.
TRY_CONVERT converts passed value to the specified data type, if conversion isn’t possible null is retur......
|
|
-
|
|
SQL Server Denali introduced new conversion functions: PARSE() and TRY_PARSE().
PARSE() function
PARSE() function converts expression (string value) to date/time and number data types if conversion is possible. If conversion isn’t possible it raises an error.
-- Parse to datetime specifying cul......
|
|