Viewing 15 posts - 31 through 45 (of 417 total)
Assuming you delete/append once per day, can you truncate the table if today is the 1st of August? This is set to truncate on the 2nd of July for testing....
July 2, 2024 at 3:48 pm
You should be able to use MAX CASE() to pivot the columns assuming there are no duplicates of ID and TYPE.
What do you want to see for missing values? This...
June 28, 2024 at 3:47 pm
I don't know what settings would help, but have you looked at the aggregation design recently? If many users are running the same reports regularly it may be possible to...
June 18, 2024 at 4:21 pm
1. can so. explain the difference between the two examples?
<Deleted incorrect information suggesting columns can be added to existing tables within a stored procedure.>
Variables can not be...
June 11, 2024 at 6:13 pm
Phil Parkin wrote:Run the tasks in series?
that too, but more overhead than required considering partitions can be slid out
I don't think you have a choice. I believe the truncate needs...
May 1, 2024 at 6:03 pm
Is the data in your sqlToExec column in a format that will work with dynamic sql? It looks like might not be so you will probably need to at least...
April 28, 2024 at 3:50 pm
I think your code will set the @SQLString variable to the value of the last row in the batch. If you want to execute multiple rows in a single SP_EXECUTESQL...
April 26, 2024 at 3:54 pm
Passing the parameter is the cause of the delay it seems. Hard-coding provides the best response sofar, so I'm going to implement that solution.
Did you try using a variable...
April 25, 2024 at 3:54 pm
Does it make any difference if you make the data flow source a variable set to an expression that includes the date variable? The example below uses a MinDate string...
April 23, 2024 at 8:29 pm
I've always thought you should only use inner join if you want to return columns from the other table, but this link suggests join is preferable if there is an...
April 16, 2024 at 2:44 pm
I have not used ADF, but I did a quick search and it sounds like the error tasks will only execute if both of the preceding tasks fail. In SSIS...
April 12, 2024 at 3:30 pm
This link makes it sound like you can install the native client if you have apps that require it. https://learn.microsoft.com/en-us/sql/relational-databases/native-client/applications/installing-sql-server-native-client?view=sql-server-ver15
I tried but could not get Visual Studio 2017...
April 11, 2024 at 6:00 pm
Try this
Select * from T1
Join T2 on T2.activity LIKE CONCAT('%',left(T1.activity, len(T1.activity)-1),'%')
April 10, 2024 at 6:56 pm
Does this work for the first example? I have assumed you need to group by company and trade_date.
;
WITH cte_L
AS
(
SELECT *,
...
April 3, 2024 at 5:41 pm
Does this work?
'INSERT INTO DBO.DataTable
SELECT *, NULL, ''N'' AS PROCESSED_FLAG
FROM #TEMP_TABLE'
If you use a column list for the insert and select you can exclude processed_date and it...
March 11, 2024 at 5:27 pm
Viewing 15 posts - 31 through 45 (of 417 total)