Viewing 15 posts - 1,921 through 1,935 (of 13,855 total)
Thanks for your input, Jonathan.
The single query method did not work, even after changing s2.Value to s2.ColName in the necessary spots.
I have gone ahead with the multiple-batch version (there are...
July 28, 2021 at 3:56 pm
As you have not provided us with any sample DDL or data, we cannot give you a coded solution. But the answer to the question: "Can queries in SQL Server...
July 28, 2021 at 5:41 am
You can do this using REVERSE, or a splitter (link). A splitter provides a more flexible and elegant solution, in my opinion:
DROP TABLE IF EXISTS #sample;
CREATE...
July 27, 2021 at 10:43 am
Phil - Correct. Devs want it all in dev.
Then add a switch to the code … this sort of thing:
IF (DEV)
DEBUGMODE="Verbose"
ELSE...
July 26, 2021 at 3:04 pm
The least-disruptive way of doing this which I can think of is to add a script task at the end of your existing SSIS process which splits your output file...
July 26, 2021 at 2:23 pm
Changing the .NET app so that it only loads the data which is required is not possible, I presume?
July 26, 2021 at 2:00 pm
You'll probably get more help with this problem if you attach the actual execution plan.
July 18, 2021 at 4:35 pm
Run this code:
DROP TABLE IF EXISTS #sample_node;
CREATE TABLE #sample_node
(
id INT
,label VARCHAR(10)
,realdate DATETIME
,datedif INT
);
INSERT #sample_node
(
...
July 17, 2021 at 12:25 pm
I always forget about updating the CTE directly. Here is a better version:
WITH calcs
AS (SELECT id
,label
...
July 15, 2021 at 1:45 pm
Something like this?
WITH calcs
AS (SELECT id
,label
,realdate
...
July 15, 2021 at 1:39 pm
If you have five columns in a table and the only PK which 'works' is a combination of all five columns, there can be no updates to the data.
Why not?...
July 15, 2021 at 10:34 am
This could also be done in Posh.
Have a go and see how you get on. Feel free to post back ... if you cannot get this working, I will put...
July 14, 2021 at 12:53 pm
I know nothing about this specific problem.
But adding a Script Task to edit and save the file before onward processing should be straightforward. Can you write a little C#?
July 14, 2021 at 7:41 am
Backup of file: $date = get-date -uformat "_%d_%m_%Y_%H%M%S.bak" $newname=($csv -replace ".csv",$date) Rename-Item $csv $newname
Count: $count=($csv).Count $count
Can I just add this to the bottom of my script?
Thanks.
Why not try and...
July 13, 2021 at 8:05 am
Viewing 15 posts - 1,921 through 1,935 (of 13,855 total)