Viewing 7 posts - 1 through 7 (of 7 total)
Thanks,
Yes, this gets me started. I do have a question about updating multiple rows.
This example seems to only update one column in the target table.
Also the staging table will...
April 25, 2016 at 2:40 pm
Here is a sample of the output I want to execute via @SQLstr
UPDATE JP_CDM.case_reopen_block_history SET ...
April 25, 2016 at 1:28 pm
I have the following SQL that creates the output I need to capture in a variable like @SQLstr so that I can execute the string:
exec(@SQLstr)
But I get the error...
April 25, 2016 at 1:25 pm
Thank you very much Lynn! 🙂
April 20, 2016 at 1:25 pm
Here is the solution:
drop table #case_tmpTable
SELECT * INTO #case_tmpTable FROM [JP_CDM].[case]
where 1 = 2
ALTER Table #case_tmpTable
DROP COLUMN case_id
------------------------------------------------------
The code above creates the temp table structure based on the target...
April 7, 2016 at 2:54 am
Ok,
The solution is simple!
I just drop the column I don't need via the following:
drop table #case_tmpTable
SELECT * INTO #case_tmpTable FROM [JP_CDM].[case]
--where 1 = 2
ALTER Table #case_tmpTable
DROP COLUMN case_id
This removes...
April 6, 2016 at 3:25 pm
Here is the proposed process:
1. Create a temp table with the structure of the target table (@SomeTable Name)
2. Apply the business rules to the incoming data and load the...
April 6, 2016 at 2:21 pm
Viewing 7 posts - 1 through 7 (of 7 total)