Viewing 15 posts - 3,406 through 3,420 (of 13,874 total)
If the values are, as you suggest:
Employed (String) - "Manager"
Non-Employed (String) - "Fired"
Retired (String) - "Enjoying Life"
what would you set Employed Status to?
August 15, 2019 at 7:51 pm
Looks to me as though you can simplify your WHERE clause to
WHERE j.Code <> 'L3'
and do the whole thing as a single INSERT.
August 15, 2019 at 7:48 pm
What are the possible values in the three source columns and how do they map to the target column?
August 15, 2019 at 5:41 pm
It's a subquery within a subquery (a subsubquery??) – it's much easier to read with some formatting applied:
BEGIN
SELECT COUNT(*)
FROM...
August 14, 2019 at 7:50 pm
Since I'm using SSIS to map the data from the flat file to my staging table I prefer to get all the data in the staging table, then try...
August 14, 2019 at 6:58 pm
Do you receive any error messages?
August 14, 2019 at 1:50 pm
Use something like this to get your start and end dates:
DECLARE @StartDate DATE = DATEADD(mm, DATEDIFF(mm, 0, GETDATE()), 0);
DECLARE @DayNo TINYINT = DAY(GETDATE());
IF @DayNo > 15
...
August 13, 2019 at 6:46 pm
this is not possible with the Remove-DbaAgentJobStep command
Is that a statement or a question?
August 13, 2019 at 4:21 pm
Here is a link to a code template that should push you in a better direction, regarding structure.
August 13, 2019 at 4:13 pm
That's not really the way to do it.
You can remove all of those BEGINs and ENDs (except those pertaining to TRY and CATCH).
In your CATCH block, you should probably use...
August 13, 2019 at 4:02 pm
IMHO, you are on the right path. I'm currently doing exactly what you described. Importing flat, delimited files to a 'staging' table where all fields are defined as VARCHAR(500),...
August 12, 2019 at 10:46 pm
August 12, 2019 at 9:37 pm
Please provide some additional background information:
August 11, 2019 at 7:32 pm
So restoring the ssisb did not create the master key.
No, you have to do a backup/restore of the master key as a separate task.
Is the jobs run using sql agent...
August 9, 2019 at 5:13 pm
I have not heard anything about being able to do this ... but then again, I've never lived anywhere where the standard Gregorian (not English - more like Italian!) calendar...
August 9, 2019 at 2:06 pm
Viewing 15 posts - 3,406 through 3,420 (of 13,874 total)