Click here to Skip to main content
15,889,281 members
Home / Discussions / Database
   

Database

 
SuggestionRe: detecting and ending Deadlocks Pin
David Mujica6-Jul-11 3:08
David Mujica6-Jul-11 3:08 
AnswerRe: Deadlock problem Pin
MecAlex10-Jul-11 22:40
MecAlex10-Jul-11 22:40 
QuestionMySQL in-memory table vs. SQLite in-memory DB Pin
GregStevens5-Jul-11 17:32
GregStevens5-Jul-11 17:32 
AnswerRe: MySQL in-memory table vs. SQLite in-memory DB Pin
Eddy Vluggen8-Jul-11 13:02
professionalEddy Vluggen8-Jul-11 13:02 
QuestionRID|Key lookup vs Index Seek? [modified] Pin
devvvy5-Jul-11 17:23
devvvy5-Jul-11 17:23 
AnswerRe: RID|Key lookup vs Index Seek? Pin
dasblinkenlight6-Jul-11 6:13
dasblinkenlight6-Jul-11 6:13 
GeneralRe: RID|Key lookup vs Index Seek? Pin
devvvy10-Jul-11 0:11
devvvy10-Jul-11 0:11 
QuestionFeeding parameters from a C# app into an SSIS package that converts query results to CSV and FTP [modified] Pin
Alaric_5-Jul-11 12:34
professionalAlaric_5-Jul-11 12:34 
Hi guys. This post is building upon the solution from my previous post in here on Jun 29th.

Synopsis: Building a scheduling/routing application on top of a data-driven app that lives in SQLServer that identifies customers that have dropped our service for "Winback" call center campaigns (and the like)

The logic for each of the campaigns is encapsulated within a query run within a stored procedure that is located on our Reporting database (it runs there because Reporting has the $**T indexed out of it) The stored procedure is executed from our local production database across a server link. My application knows absolutely nothing about the underlying stored proc. It knows of a command that it is wishing to execute for a particular campaign, and I have a mapping table that stores a pointer to the remote stored proc. I have a brokerage entry point exposed as a stored proc to my application that accepts parameters, dips into the local Mapping table, pulls the name of the stored proc, executes it across the database link, receives the result set, generates a GUID for the batch, enters the results into a local table called "Solicitations" with the GUID as a correlator and returns the GUID to the calling client.

...I was proud that I was able to accomplish all of that. I am nowhere *NEAR* what one would call a "DBA" and all of my "education" is in Oracle9i. I'm currently "working" in SQL Server 2008R2.

But now: All of the previous work has been the "sourcing" side of our process. Being able to get the data out of Reporting and into our local table is just the data pump that allows our campaigns to run. After the calling client receives the GUID as its return, I need to pass the GUID into an SSIS package that can receive that GUID, identify the campaign that is being run, dip into the mapping table to pick up the filename associated with that campaign, pull the relevant rows out of the Solicitations table, map them to a canonical format, and FTP them to an FTP server that acts as an integration point between our Customer/Account system and the system that manages call routing for our call center.

I have created an SSIS package that has a Data Flow task that Flat File Exports the Solicitations table to csv as "testy.csv" on my local file system and then an FTP task that picks that resulting file up and :21's it to the integration point. I went to the server and picked the file up and it was the file I was expecting. All of the guts of the "happy path" flow are there.

My actual question:
What I am needing to do is:
1) configure the working Data Flow Task such that it can receive a GUID and select items from a view where the correlator in the table matches the GUID for the batch. 
2) I'm also needing to create a task that receives that GUID and retrieves the OutputFilename from the Campaign Mapping table so that it knows which file to pick up and transport.
3) I'm needing to modify the FTP Task such that the filename is the variable set in (2) <-I'm thinking #3 is going to be the easy part.


Has anyone ever done this before? Can anyone provide an assist on how to accomplish 1-3 above?


Thank you very much!
"I need build Skynet. Plz send code"
modified message subject on Wednesday, July 6, 2011 1:24 AM

AnswerRe: Feeding parameters from a C# app into an SSIS package that converts query results to CSV and FTP Pin
Alaric_7-Jul-11 6:44
professionalAlaric_7-Jul-11 6:44 
QuestionLow-level filtering of IsDeleted bit field Pin
army_man716554-Jul-11 11:39
army_man716554-Jul-11 11:39 
AnswerRe: Low-level filtering of IsDeleted bit field Pin
Johan Hakkesteegt5-Jul-11 1:48
Johan Hakkesteegt5-Jul-11 1:48 
GeneralHistory table Pin
David Mujica5-Jul-11 3:25
David Mujica5-Jul-11 3:25 
GeneralRe: History table Pin
Eddy Vluggen5-Jul-11 13:19
professionalEddy Vluggen5-Jul-11 13:19 
AnswerRe: Low-level filtering of IsDeleted bit field Pin
jschell5-Jul-11 6:20
jschell5-Jul-11 6:20 
AnswerRe: Low-level filtering of IsDeleted bit field Pin
Mycroft Holmes5-Jul-11 14:21
professionalMycroft Holmes5-Jul-11 14:21 
AnswerRe: Low-level filtering of IsDeleted bit field Pin
Shameel7-Jul-11 3:20
professionalShameel7-Jul-11 3:20 
QuestionUnQuote a nvarchar() string and use it as a table name Pin
reza assar4-Jul-11 1:57
reza assar4-Jul-11 1:57 
AnswerRe: UnQuote a nvarchar() string and use it as a table name Pin
Shameel4-Jul-11 4:46
professionalShameel4-Jul-11 4:46 
AnswerRe: UnQuote a nvarchar() string and use it as a table name Pin
PIEBALDconsult4-Jul-11 6:01
mvePIEBALDconsult4-Jul-11 6:01 
AnswerRe: UnQuote a nvarchar() string and use it as a table name Pin
Niladri_Biswas4-Jul-11 17:03
Niladri_Biswas4-Jul-11 17:03 
GeneralRe: UnQuote a nvarchar() string and use it as a table name Pin
reza assar6-Jul-11 1:04
reza assar6-Jul-11 1:04 
QuestionGetDate Pin
berba4-Jul-11 0:10
berba4-Jul-11 0:10 
AnswerRe: GetDate Pin
thatraja4-Jul-11 0:25
professionalthatraja4-Jul-11 0:25 
AnswerRe: GetDate Pin
Simon_Whale4-Jul-11 0:40
Simon_Whale4-Jul-11 0:40 
GeneralRe: GetDate Pin
berba4-Jul-11 2:44
berba4-Jul-11 2:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.