Viewing 15 posts - 991 through 1,005 (of 1,402 total)
To resolve for arbitrary relationships in the data requires hierarchical recursion, no? The OP's question and Phil's too
drop table if exists dbo.test_1;
go
create table dbo.test_1(id int,startdate datetime ,enddate...
June 16, 2020 at 5:52 pm
drop table if exists dbo.test_T1;
go
create table dbo.test_T1(
ID1 varchar(8) not null,
ID2 varchar(8)...
June 11, 2020 at 12:15 pm
In 2016 there are some nice built in features to support time zone conversions
/* the list of time zones your instance supports */
select * from sys.time_zone_info;
declare
...
June 8, 2020 at 7:15 pm
this
declare @frDate date='2020-03-31';
with a_cte(DocType, Debit, Credit, Account, Mdate) as
(select 'TC', 10, 20, 123, '2020-03-30'
...
May 31, 2020 at 4:11 pm
In this i want to add condition if @frdate Month = 3 and Date = 31 ...
That's what the OP wrote but is it what they meant? 🙂 Idk
May 31, 2020 at 4:04 pm
Try adding this to your WHERE clause:
AND NOT (
...
May 31, 2020 at 3:40 pm
As separate statements maybe something like this
set xact_abort on;
begin transaction;
begin try
update g
set
[skuId] =...
May 28, 2020 at 11:18 pm
Some code to look at?
And what does this sentence mean... "It isn't (and wasn't) possible to access the request route values from within the program delegate." ?...
May 26, 2020 at 5:59 pm
Ok Jeff, I'll do whatever you suggest. I'll submit something.
May 26, 2020 at 5:21 pm
I'm intrigued, but I have absolutely no idea what this looks like in practice. Have you got a friendly introduction somewhere? Video? Some code to look at? And what...
May 26, 2020 at 2:46 pm
It's an interesting approach. I've cloned the repo. Two things I like based on initial impression are the intellisense on db objects and the C# unit test codegen.
May 26, 2020 at 12:13 am
It's great to see this article! I'm going to sit this pie fight out though. Two items I would toss in fwiw:
May 21, 2020 at 1:36 pm
Nicely done! It looks cleaned up now
May 19, 2020 at 8:14 pm
No looping necessary. Check out this script:
https://www.sqlservercentral.com/scripts/a-daterange-table-valued-function
It generates any range of days (or seconds or years...)
declare
@start_day_num int=5, /*...
May 19, 2020 at 6:31 pm
drop table if exists dbo.test_j;
go
create table dbo.test_j(
[data] nvarchar(max));
go
insert dbo.test_j([data]) values('{"data": [{"id": "123", "title": "Webinar1", "nickname": "", "href":...
May 19, 2020 at 12:02 pm
Viewing 15 posts - 991 through 1,005 (of 1,402 total)