Viewing 15 posts - 16 through 30 (of 212 total)
If I understand you correctly, if you enter a list of 4 parts you want to find all codeId which have those 4 parts.
One way of doing this is to...
May 5, 2021 at 1:43 pm
To find the time difference between to rows then you could use lead or lag. Here is a rough example
Use TEMPDB;
DECLARE @Employee TABLE (
EmployeeId INT
,Name VARCHAR(50)
)
INSERT @Employee
VALUES
...
April 22, 2021 at 11:36 am
You can use partitioning with aggregate functions to determine whether to count the record in different time periods:
select
distinct ID
, Today = SUM(CASE WHEN CreatedDate >= DATEADD(day,...
April 20, 2021 at 11:04 am
Does this work for you:
select
[Period]
,[Site]
,ISNULL(b.SACC,a.Account) as [Account]
,SUM([Value]) AS [Value]
from
xdbExample a
LEFT JOIN xsumExample b
on b.ACC = a.Account
GROUP BY
[Period]
,[Site]
,ISNULL(b.SACC,a.Account)
December 15, 2020 at 4:54 pm
What problem are you trying to solve by renaming the solution? It sounds like a version control problem (V1/v2) in which case you might be better off using GitHub or...
June 11, 2020 at 11:04 am
We rejected the notion of a complete redesign over complexity and risk. We would have to remap 6,000 source to destination columns. Also trying to extract 6,000 columns from a...
November 28, 2017 at 7:22 am
Hi Phil,
There is only one import file which is delimited with column names in the first row. The structure is outside my control and I cannot change it. ...
November 28, 2017 at 6:17 am
According to this link https://msdn.microsoft.com/en-us/library/ms141747.aspx only you can open the package. For all others, the sensitive information is replaced with blanks.
In my experience, when I have had to store...
September 14, 2016 at 6:58 am
Temp tables only persist which the connection that created them is still active.
Why do you want a temp table?
Best practice is to create a persisted table...
August 12, 2016 at 5:18 am
Hi Rocky,
You cannot use a Lookup as this is an exact match only and between is not permitted.
There are a number of ways that you could do this
1. Do the...
July 27, 2016 at 1:41 am
I used SSIS against an Oracle DW a few years ago.
Generally it wasn't too bad but the oracle drivers for SSIS are not as good as the ones fro SQL...
July 8, 2016 at 5:17 am
I think this is a logic problem.
If a record is 'n/a' then is does not equal 'n/a~' so it is true.
Try changing the || or && (i.e. OR to AND).
Jez
July 8, 2016 at 5:13 am
Also, do you have Rows per Batch set to anything or Maximum insert commit size set?
These can affect insert performance.
Jez
July 4, 2016 at 7:49 am
Generally I use OLEDB sources and destinations in data flow tasks.
Try changing both the source and the destination to OLEDB.
Jez
July 4, 2016 at 7:44 am
Have a look at this:
I've not tried it and it looks just as problematic as importing from Excel.
Jez
July 1, 2016 at 1:31 am
Viewing 15 posts - 16 through 30 (of 212 total)