Viewing 15 posts - 151 through 165 (of 6,036 total)
Thought I'd toss my hat into the ring. Details are where they should be... in the code. 😀
Call me old -fashioned, but I prefer functions to perform a single...
March 30, 2021 at 3:06 am
I
Don't worry about ms, just use seconds. A few ms diff could be caused by almost anything is and not significant for an SSIS package.
I have to strongly...
March 29, 2021 at 8:32 am
@Sergiy - for sake of consistency can you give your version (condensed) that gives both outputs I gave - and taking in consideration that either today or yesterday could...
March 29, 2021 at 7:03 am
The script from frederico seems to be too complicated.
Here is much simpler version.
For ease of understanding I put it into sequential steps:
DECLARE
@today [varchar](12) = '44:10:27.766',
@yesterday [varchar](12) =...
March 28, 2021 at 10:59 pm
SET @whereClause = [dtmDocDate] >= DATEPART(dy, '2020-09-01')
AND
SET @whereClause = [dtmDocDate] >= DATEPART(dy, 2020-09-01)
both receive errors on execution
You obviously have problems with handling quotes in dynamic SQL.
Before you try execution...
March 28, 2021 at 10:35 pm
Yes, most definitely.
Since my last post I tried:
SET @whereClause = '[dtmDocDate] >= DATEPART(dy, 2020-09-01)'
with the same result.
However, I think I have discovered the underlying issue. The script of which...
March 28, 2021 at 2:22 pm
Incorrect syntax?
SET @whereClause = '[dtmDocDate] >= ''2020-09-01'''
March 28, 2021 at 12:18 pm
Is it what you're after?
DECLARE @BatchId int = 10 ;
with BatchOrders (InvNo, BatchID) as (
select 1111, 1)
select count(InvNo) as RecordCount, @BatchId as BatchId
from BatchOrders
where BatchId = @BatchId
March 26, 2021 at 2:40 am
I do the same thing - either way works and probably won't see any differences in performance.
I found from personal experience that function performs better than CTE.
Probably, saving on...
March 26, 2021 at 12:31 am
Over my career I've rarely seen anywhere with an "as live" environment that wasn't production. For that reason I don't particularly think this is a cloud only or even...
March 25, 2021 at 3:58 am
When it comes to databases the concept of cloud computing eliminates any possibility of proper testing.
In an ideal world databases must be future proof, so the testing must be performed...
March 24, 2021 at 3:02 am
Yeah, it's government for the "cloud" provider...
My team leads' gone over the contract and it's not specified in the contract. What he's trying to collect, information-wise, is how much...
March 24, 2021 at 1:47 am
INSERT google_file_store VALUES
('alt1.txt','The bullet points of this are:'),
('alt2.txt','- sometimes bull trading means selling bulls on the market;')
('alt3.txt','- bear in mind that ball bearings might not be relevant...
March 22, 2021 at 12:00 am
I don't understand why you people are complaining about the lack of automated DB tuning.
You've been given Auto Index Tuning - don't you have enough of it?
Want more?
March 21, 2021 at 11:09 pm
Well, DDL is still code, right?
then yes, it’s in code. Of some kind.
🙂
March 15, 2021 at 8:25 pm
Viewing 15 posts - 151 through 165 (of 6,036 total)