Viewing 15 posts - 31 through 45 (of 105 total)
NBSteve (10/29/2014)
raulggonzalez (10/29/2014)
[text()] is a misleading alias in this case... Note that is wrapped with [square brackets]
just run
SELECT
DepartmentName + ';'...
October 29, 2014 at 12:38 pm
James_R_Alves (10/29/2014)
SELECT
SUBSTRING(Ms, 1, DATALENGTH(Ms)/ 2 - 1)
FROM
( SELECT
DepartmentName + ';' AS [text()]
...
October 29, 2014 at 9:01 am
Louis Hillebrand (10/29/2014)
Koen Verbeeck (10/29/2014)
Nice question, thanks.A bit curious as why you use DATALENGTH instead of just LEN.
With DATALENGTH you can also use a space as the separator, LEN strips...
October 29, 2014 at 3:45 am
Thanks for the question,
easy if you've been messing up with kerberos authentication...:hehe:
October 17, 2014 at 2:21 am
Vimal Lohani (10/14/2014)
happycat59 (10/14/2014)
Msg 156, Level 15, State 1, Procedure my_sp, Line 2
Incorrect syntax near the keyword 'FROM'.
because "Column" is a reserved keyword and needs to be delimited...
October 15, 2014 at 7:07 am
slash.young (5/8/2014)
September 25, 2014 at 5:17 am
twin.devil (7/18/2014)
July 18, 2014 at 3:10 am
obviously the first thing should be to backup the log, but what is the point when the database is offline and you will get an error?
BACKUP LOG [QODTest] TO DISK...
July 18, 2014 at 1:29 am
thanks for the question,
but why all answers say "only" at the end?? that's a bit confusing since no option has all the types listed in BOL. :w00t:
May 22, 2014 at 3:47 am
Steve Jones - SSC Editor (5/16/2014)
May 17, 2014 at 1:53 pm
If you have results to text and you WOULD NOT want them back to grid, the best answer is DO NOTHING... and it will stay as is.
Definitely, that negative did...
May 16, 2014 at 2:41 am
rhythmk (5/6/2014)
raulggonzalez (5/6/2014)
I guess the author goes more this way
--the smallest exact number integer data type that can't support a negative number
declare @bit bit
set @bit =...
May 6, 2014 at 4:20 am
Thanks for the question,
I guess the author goes more this way
--the smallest exact number integer data type that can't support a negative number
declare @bit bit
set @bit = -1
Command(s) completed...
May 6, 2014 at 2:34 am
Mighty (4/14/2014)
nenad-zivkovic (4/14/2014)
April 14, 2014 at 3:53 am
Viewing 15 posts - 31 through 45 (of 105 total)