Viewing 15 posts - 1,381 through 1,395 (of 13,849 total)
Can you explain why the global temp table is a better option than a permanent staging table? That's not clear from your explanation.
June 6, 2022 at 2:21 pm
As far as I know, a global temp table remains in scope as long as the SPID which created it remains active. So you are likely to get conflicts if...
June 6, 2022 at 1:42 pm
Here's a revised version. Note that the CREATE TABLE and INSERTs should usually be done by the person posting the question – I'm helping you out because because you're new...
June 2, 2022 at 1:26 pm
Here is the tricky part done. All you need to do is JOIN from the final query to your Ref table to get the 'Month'.
DROP TABLE IF...
June 2, 2022 at 7:50 am
Try this:
SELECT VID
,OrdDate
,CResult = MAX(IIF(QID = 'C Result', Response, NULL))
,RAScore = MAX(IIF(QID = 'RA Score', Response, NULL))
...
June 1, 2022 at 6:33 pm
There is a fundamental problem with this – SSIS is a server-based technology and therefore cannot practically be used interactively, except during development.
June 1, 2022 at 4:44 pm
Can you also post an image showing the results you would like to see, based on this data?
June 1, 2022 at 4:42 pm
The following expression returns 20220501 if FileCode = 1, and an empty string otherwise.
@[User::FileCode]==1?token(@[User::FileName], "_", 4) : ""
May 26, 2022 at 2:05 pm
If the file name is "ImportFile_UK_DumpXX_20220501", what exactly do you want the expression to return?
If FileCode <> 1, what do you want the expression to return?
May 26, 2022 at 12:41 pm
Yes, I agree that a Foreach loop (FEL) with an object variable sounds like the way to go.
Is there really a direct mapping between the package names and the table...
May 24, 2022 at 2:51 pm
ON (1 =1) is unusual JOIN syntax – can you explain what you want it to do?
May 19, 2022 at 3:17 pm
I have some ideas – they involve GROUP BY and MAX(). You have nearly 4,000 points and this is simple stuff. What have you tried so far?
May 19, 2022 at 3:09 pm
Please complete the following VALUES section code to give us your test data to work with:
DROP TABLE IF EXISTS #SomeTab;
CREATE TABLE #SomeTab
(
Id INT...
May 19, 2022 at 8:25 am
Not very elegant, but I think that this works:
WITH c1
AS (SELECT *
,Ctr = IIF(conversion_factor IS NULL, 0,...
May 19, 2022 at 7:29 am
Here is that link again: https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help
May 18, 2022 at 5:50 pm
Viewing 15 posts - 1,381 through 1,395 (of 13,849 total)