Viewing 15 posts - 406 through 420 (of 1,398 total)
This concatenates (a bunch of guid's and an expiration date) together and encodes to binary base 64 and converts the result to nvarchar. The encoded token could be used in...
June 6, 2022 at 9:58 pm
One area where it seems XML is required is for the conversion/encoding of strings to varbinary base 64. Altho if there's newer way I'd be interested to hear about it
June 6, 2022 at 8:00 pm
As frederico and Jeff have already explained the numeric value in the table has no display format of its own. If you're ok with a type conversion (from numeric to...
June 5, 2022 at 11:52 am
'sysdate' is an Oracle function? Idk the syntax doesn't look like SQL Server
June 2, 2022 at 7:43 pm
A bit of a sidebar... I almost always avoid both EOMonth and anything else that is used to calculate the last day of the month because so many people...
May 31, 2022 at 3:52 pm
Great information from ratback. I totally agree about staying within the larger segments as being a good strategy.
The chart I always come back to and track is db-engines.com. It attempts...
May 31, 2022 at 3:10 pm
Here's a table valued function which takes as input a (2-part named: schema.name) stored procedure (as column type SYSNAME) and which produces a SQL script some of which could be...
May 29, 2022 at 1:38 pm
I've heard of RedGate SQL Source Control, but would prefer to stay in the Microsoft cosmos....
Kind of an odd sentence. RedGate is in the greater Microsoft cosmos as their...
May 29, 2022 at 11:58 am
Can't say anything without seeing the code
May 22, 2022 at 12:11 pm
Checking back in here. The OP generated the 15 minute data from the recursive CTE and that's all the data they currently have? As an aside: a recursive CTE is...
May 20, 2022 at 12:01 pm
Imo the question needs input data in SQL and the expected output
May 17, 2022 at 11:19 am
Or maybe a query
;with test_data as (
select cast('08/31/2021' as date) as [period date],
...
May 13, 2022 at 1:44 pm
Maybe try this. If ISJSON(@j1) equals 1 then it's readable
select oj5.*
from openjson(@j1) oj1
cross apply openjson(oj1.value) oj2
cross apply...
May 12, 2022 at 1:25 am
Assuming 'Prm' is ordinal maybe something like this
[EDIT] Got rid of comments
;with rn_cte as (
select *,
...
May 2, 2022 at 12:38 pm
The word 'key' surrounded by brackets [] is not being displayed. It's there and I see it when I edit the post. It's supposed to say "...psuedo-column names 'key' surrounded...
April 21, 2022 at 1:23 pm
Viewing 15 posts - 406 through 420 (of 1,398 total)