Click here to Skip to main content
15,890,438 members
Home / Discussions / Database
   

Database

 
GeneralRe: i want a to get a SQL Pin
Johan Hakkesteegt29-Jun-11 22:22
Johan Hakkesteegt29-Jun-11 22:22 
GeneralRe: i want a to get a SQL Pin
Pete O'Hanlon29-Jun-11 23:40
mvePete O'Hanlon29-Jun-11 23:40 
GeneralRe: i want a to get a SQL Pin
Corporal Agarn30-Jun-11 1:47
professionalCorporal Agarn30-Jun-11 1:47 
GeneralRe: i want a to get a SQL PinPopular
Pete O'Hanlon30-Jun-11 1:57
mvePete O'Hanlon30-Jun-11 1:57 
GeneralRe: i want a to get a SQL Pin
Matt U.30-Jun-11 11:28
Matt U.30-Jun-11 11:28 
GeneralRe: i want a to get a SQL Pin
R. Giskard Reventlov1-Jul-11 2:51
R. Giskard Reventlov1-Jul-11 2:51 
GeneralRe: i want a to get a SQL Pin
crocks2564-Jul-11 1:32
crocks2564-Jul-11 1:32 
QuestionAssistance with a Stored Proc working with the return results from another SP Pin
Alaric_29-Jun-11 5:47
professionalAlaric_29-Jun-11 5:47 
Hi. I've been looking for specifics on this issue for the better part of the morning, but not seeing much help.

Here's what I'm working with (background): I'm building a data-driven console application in C# that needs to schedule the execution of one of many reporting queries that I have encapsulated within stored procedures within a SS2008 db. The stored procs actually exist on a server that is referenced as a linked server to our production db. The references to the stored procs are stored in prod (i.e. Prod database table holds the name of a stored proc that exists on REPORTING server, REPORTING is in the list of Linked Servers of Prod)

Let's say that I have 2 marketing campaigns that each have an "Outbound" operation and an "Inbound" operation. I have the campaigns stored in a reference table, I have the operations stored in a reference table, and I have the CampaignOperations stored in an associative entity that also contains the name of the specific stored procedure that holds the functionality of that campaign operation.

(contrived example):
Campaign1|Outbound|C1OutboundFoo
Campaign1|Inbound|C1InboundFoo
Campaign2|Outbound|C2OutboundFoo
Campaign2|Inbound|C2InboundFoo

What I am trying to create is a stored procedure that acts as a broker/adapter for the campaign Operations. I want to be able to pass in "Campaign1","Outbound" to the public stored proc and have it dip into the CampaignOperations table, pick up C1OutboundFoo, execute it, and adapt the result set to a canonical representation for the calling client.

So, all that said, I am having a bit of trouble figuring out how to get the results from one stored proc back into the broker for it to adapt to the canonical. I went the route of calling openquery, but I found from the documentation that you cannot pass a variable into OpenQuery...which is what led me back to the drawing board.

Help??
"I need build Skynet. Plz send code"

AnswerRe: Assistance with a Stored Proc working with the return results from another SP [modified] Pin
Alaric_29-Jun-11 6:35
professionalAlaric_29-Jun-11 6:35 
GeneralRe: Assistance with a Stored Proc working with the return results from another SP Pin
Alaric_29-Jun-11 11:23
professionalAlaric_29-Jun-11 11:23 
GeneralRe: Assistance with a Stored Proc working with the return results from another SP Pin
JOAT-MON30-Jun-11 8:22
JOAT-MON30-Jun-11 8:22 
GeneralRe: Assistance with a Stored Proc working with the return results from another SP Pin
Alaric_1-Jul-11 5:01
professionalAlaric_1-Jul-11 5:01 
GeneralRe: Assistance with a Stored Proc working with the return results from another SP Pin
Alaric_1-Jul-11 8:45
professionalAlaric_1-Jul-11 8:45 
GeneralRe: Assistance with a Stored Proc working with the return results from another SP Pin
JOAT-MON1-Jul-11 8:56
JOAT-MON1-Jul-11 8:56 
Questionusing ?: operation in sql server 2008 Pin
reza assar29-Jun-11 3:47
reza assar29-Jun-11 3:47 
AnswerRe: using ?: operation in sql server 2008 Pin
dasblinkenlight29-Jun-11 4:29
dasblinkenlight29-Jun-11 4:29 
GeneralRe: using ?: operation in sql server 2008 Pin
reza assar29-Jun-11 5:35
reza assar29-Jun-11 5:35 
GeneralRe: using ?: operation in sql server 2008 Pin
dasblinkenlight29-Jun-11 5:58
dasblinkenlight29-Jun-11 5:58 
GeneralRe: using ?: operation in sql server 2008 Pin
reza assar29-Jun-11 7:36
reza assar29-Jun-11 7:36 
QuestionParameterised SQL Insert fails; plain text Insert works Pin
hairy_hats29-Jun-11 1:53
hairy_hats29-Jun-11 1:53 
AnswerRe: Parameterised SQL Insert fails; plain text Insert works Pin
Mycroft Holmes29-Jun-11 12:57
professionalMycroft Holmes29-Jun-11 12:57 
GeneralRe: Parameterised SQL Insert fails; plain text Insert works Pin
hairy_hats29-Jun-11 21:35
hairy_hats29-Jun-11 21:35 
AnswerRe: Parameterised SQL Insert fails; plain text Insert works Pin
dasblinkenlight29-Jun-11 17:30
dasblinkenlight29-Jun-11 17:30 
QuestionDTS not working in sql 2008 Pin
Robymon28-Jun-11 22:21
Robymon28-Jun-11 22:21 
AnswerRe: DTS not working in sql 2008 Pin
Corporal Agarn29-Jun-11 3:41
professionalCorporal Agarn29-Jun-11 3:41 

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.