Viewing 15 posts - 1 through 15 (of 245 total)
declare @string varchar(50) = 'ABC Property Management Inc.'
SELECT string_agg(x.value,' ') FROM (
select top 2 * from string_split(@string,' ') y)x
March 10, 2023 at 4:14 pm
all these jobs should only take a couple of minutes to run, and usually run on a schedule of every 5 minutes, but sometimes they get stuck on something and...
February 7, 2019 at 5:44 am
November 30, 2018 at 9:42 am
is it considered a currency symbol somewhere?
all these return 0.00
select \
select £
select $
select ¥
select €
November 30, 2018 at 4:07 am
i found this. never heard of it before, though.
May 30, 2018 at 7:37 am
james.brown 6144 (11/21/2014)
Not that this really helps but..
The MSDN entry for the TRY_CONVERT function (http://technet.microsoft.com/en-us/library/hh230993(v=sql.110).aspx) has the remarks "TRY_CONVERT is a new keyword in compatibility level 110"...
November 21, 2014 at 7:06 am
i've been trying to get TRY_CONVERT to work but it states its an unrecognized built in function for sql server 2012 (even though sql server *does* recognises it because i...
November 21, 2014 at 5:07 am
briiiiiliant!!
i shall hold you to that. 🙂
July 14, 2014 at 7:04 am
i see. thought so, but was still hoping!
do you have any good articles you can point me to, about proper partitioning?
April 11, 2014 at 1:36 am
;WITH cte_Client AS (SELECT 1 AS ClientID ,'bob' AS NAME UNION SELECT 2,'john')
,cte_Services AS (SELECT 1 AS ServicesID, 1 AS ClientID, GETDATE() AS ServiceDate UNION select 2,1,DATEADD(DAY,-82,GETDATE()) UNION SELECT 1,2,DATEADD(DAY,-81,GETDATE()))
SELECT...
March 4, 2014 at 2:01 am
have you tried this?
DECLARE @5YearsAgo SMALLDATETIME = dateadd(yy, -5, GETDATE())
DECLARE @SetVal INT = (select settingvalue from ApplicationSettings_tbl where appsettingid = 1136)
select pd.companyId, asOfDate as scoreDate, Convert(numeric(38,10),pd.PDValue) * 100...
January 22, 2014 at 3:08 am
i'm presuming that the code in your EXISTS statement always brings back at least one row?
it looks like, because it always brings back data, the EXISTS statement will always come...
January 10, 2014 at 9:00 am
i always felt that if the ID column was in a Table called 'State', then its self explanatory that its the 'StateID'.
so it was unecessary to call the column 'StateID'.
It...
November 15, 2013 at 9:33 am
SELECT CONVERT(INT,ROUND(10.50,0))
SELECT CONVERT(INT,ROUND(10.49,0))
October 22, 2013 at 10:20 am
good advice. i'll certainly get in the habit and also update Procedures as-and-when i get to them so that, come day zero, it wont be such a big problem.
August 27, 2013 at 3:11 am
Viewing 15 posts - 1 through 15 (of 245 total)