Viewing 15 posts - 46 through 60 (of 430 total)
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 to use...
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
I assume the source file does not contain a processed_flag or processed_date column. I just ran a quick bulk insert test and when I added an extra column to the...
March 11, 2024 at 3:58 pm
I would look at some tutorials and script it yourself. This link has an example of a partition scheme based on months, but it would be easy to modify for...
March 7, 2024 at 7:49 pm
Do either of these give you what you need?
--ONE ROW PER NAME WITH COUNT
SELECT firstlastmerged,
COUNT(firstlastmerged) AS Cnt
FROM dbo.YourTable
GROUP...
March 6, 2024 at 7:06 pm
Viewing 15 posts - 46 through 60 (of 430 total)