Click here to Skip to main content
15,922,894 members
Home / Discussions / Database
   

Database

 
GeneralRe: group by value in the prefix of the values of that group Pin
indian14329-Jun-10 6:44
indian14329-Jun-10 6:44 
GeneralRe: group by value in the prefix of the values of that group Pin
i.j.russell29-Jun-10 11:26
i.j.russell29-Jun-10 11:26 
GeneralRe: group by value in the prefix of the values of that group Pin
indian14329-Jun-10 12:57
indian14329-Jun-10 12:57 
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 
We have a legacy database that is "configurable" by setting values in a settings table. Many of the SP in the database then pull values from this table and create dynamic SQL to query the DB. We are now having performance issues with these queries.

As an example, we push data to another DB on the same server. The name of that database is stored in the table. The SP retrieves the name, creates a SQL statement and then uses sp_execute to execute the statement.

Is there a better way to handle this so that the SQL can be compiled and optimized?

Thx very much.

Mark Jackson
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 
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 

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.