Click here to Skip to main content
15,900,378 members
Home / Discussions / Database
   

Database

 
GeneralRe: group by value in the prefix of the values of that group Pin
i.j.russell29-Jun-10 21:38
i.j.russell29-Jun-10 21:38 
GeneralRe: group by value in the prefix of the values of that group Pin
indian14328-Jun-10 11:51
indian14328-Jun-10 11:51 
RantRe: group by value in the prefix of the values of that group Pin
i.j.russell28-Jun-10 20:44
i.j.russell28-Jun-10 20:44 
GeneralRe: group by value in the prefix of the values of that group Pin
indian14328-Jun-10 20:49
indian14328-Jun-10 20:49 
QuestionUsing dynamic SQL Pin
mjackson1128-Jun-10 5:25
mjackson1128-Jun-10 5:25 
AnswerRe: Using dynamic SQL Pin
David Mujica28-Jun-10 6:05
David Mujica28-Jun-10 6:05 
AnswerRe: Using dynamic SQL Pin
PIEBALDconsult29-Jun-10 18:29
mvePIEBALDconsult29-Jun-10 18:29 
GeneralRe: Using dynamic SQL Pin
Tim Carmichael30-Jun-10 7:29
Tim Carmichael30-Jun-10 7:29 
PIEBALDconsult wrote:
That's insane


Insane it may be, but, there are business cases where this method is, in fact, required.
We have a data warehouse system that needs to extract data from a various third party or legacy systems. We have no control over if and when the database structures will change in the other systems and we do not have access to the databases to add views to define the data we need.

Since I, personally, DETEST seeing SQL statements hard-coded in an application, I am left with the option of storing the SQL statements for use at run-time.

So.... the SQL statements are stored in a database and SQL statements are dynamically 'built' for execution.

Is it perfect? No.
Does it work? Yes.

If someone can present a better solution that fits into the business climate at hand, I would be more than willing to listen.

Tim
GeneralRe: Using dynamic SQL Pin
PIEBALDconsult30-Jun-10 15:57
mvePIEBALDconsult30-Jun-10 15:57 
Questionxp_cmdshell Pin
It_tech28-Jun-10 2:11
It_tech28-Jun-10 2:11 
AnswerRe: xp_cmdshell Pin
J4amieC28-Jun-10 2:28
J4amieC28-Jun-10 2:28 
GeneralRe: xp_cmdshell Pin
It_tech28-Jun-10 3:17
It_tech28-Jun-10 3:17 
QuestionBinding source does not update when the linked table is updated in code. Pin
Christian Yeates28-Jun-10 0:17
Christian Yeates28-Jun-10 0:17 
Questionxp_cmdshell [modified] Pin
It_tech26-Jun-10 23:27
It_tech26-Jun-10 23:27 
AnswerRe: xp_cmdshell Pin
J4amieC27-Jun-10 21:53
J4amieC27-Jun-10 21:53 
GeneralRe: xp_cmdshell Pin
It_tech28-Jun-10 2:21
It_tech28-Jun-10 2:21 
GeneralRe: xp_cmdshell Pin
J4amieC28-Jun-10 3:32
J4amieC28-Jun-10 3:32 
GeneralRe: xp_cmdshell Pin
It_tech28-Jun-10 4:09
It_tech28-Jun-10 4:09 
GeneralRe: xp_cmdshell [modified] Pin
It_tech28-Jun-10 3:28
It_tech28-Jun-10 3:28 
QuestionQuery for multiple occurance Pin
Nikhil Bhivgade26-Jun-10 2:16
professionalNikhil Bhivgade26-Jun-10 2:16 
AnswerRe: Query for multiple occurance [Solved] Pin
thatraja26-Jun-10 4:02
professionalthatraja26-Jun-10 4:02 
QuestionJoin tables from different server Pin
Naunt24-Jun-10 23:58
Naunt24-Jun-10 23:58 
AnswerRe: Join tables from different server Pin
Covean25-Jun-10 0:55
Covean25-Jun-10 0:55 
AnswerRe: Join tables from different server Pin
CitrusTech25-Jun-10 1:02
CitrusTech25-Jun-10 1:02 
AnswerRe: Join tables from different server Pin
J4amieC25-Jun-10 1:29
J4amieC25-Jun-10 1:29 

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.