Click here to Skip to main content
15,902,840 members
Home / Discussions / Database
   

Database

 
GeneralRe: Damn database wizard! Pin
Muammar©31-Jan-09 5:57
Muammar©31-Jan-09 5:57 
GeneralRe: Damn database wizard! Pin
Wendelius31-Jan-09 6:09
mentorWendelius31-Jan-09 6:09 
GeneralRe: Damn database wizard! Pin
Muammar©31-Jan-09 20:02
Muammar©31-Jan-09 20:02 
GeneralRe: Damn database wizard! Pin
Wendelius1-Feb-09 7:10
mentorWendelius1-Feb-09 7:10 
GeneralRe: Damn database wizard! Pin
Muammar©7-Feb-09 4:15
Muammar©7-Feb-09 4:15 
QuestionHow to pass table name dynamically for stored procedure Pin
ashok_rgm30-Jan-09 19:12
ashok_rgm30-Jan-09 19:12 
AnswerRe: How to pass table name dynamically for stored procedure Pin
Wendelius30-Jan-09 19:36
mentorWendelius30-Jan-09 19:36 
GeneralRe: How to pass table name dynamically for stored procedure Pin
Colin Angus Mackay31-Jan-09 1:20
Colin Angus Mackay31-Jan-09 1:20 
Mika Wendelius wrote:
However it's not typically a good idea to use dynamic sql this way


It is posslble to do some verification before you start the concatenation. For instance. you can look up INFORMATION_SCHEMA.TABLES to ensure that the a table with the given name exists. If it doesn't you can exit the sproc.

You can also pass parameters to dynamic SQL by using sp_executesql[^] instead of EXEC. That way you are not concatenating potentially dangerous data into the SQL String, you're passing it as a parameter as normal.

* Developer Day Scotland 2 - Free community conference
* The Blog of Colin Angus Mackay


Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.

GeneralRe: How to pass table name dynamically for stored procedure Pin
Wendelius31-Jan-09 1:40
mentorWendelius31-Jan-09 1:40 
GeneralRe: How to pass table name dynamically for stored procedure Pin
ashok_rgm31-Jan-09 3:20
ashok_rgm31-Jan-09 3:20 
GeneralRe: How to pass table name dynamically for stored procedure Pin
Wendelius31-Jan-09 3:28
mentorWendelius31-Jan-09 3:28 
GeneralRe: How to pass table name dynamically for stored procedure Pin
ashok_rgm1-Feb-09 23:57
ashok_rgm1-Feb-09 23:57 
GeneralRe: How to pass table name dynamically for stored procedure Pin
Wendelius2-Feb-09 5:36
mentorWendelius2-Feb-09 5:36 
QuestionVista ODBC Questions Pin
Richard Andrew x6430-Jan-09 17:06
professionalRichard Andrew x6430-Jan-09 17:06 
AnswerRe: Vista ODBC Questions Pin
Aman Bhullar31-Jan-09 5:34
Aman Bhullar31-Jan-09 5:34 
QuestionAudit Log In and Audit logout problems in sql server 2005 after XML import to sql server 2005 Pin
Pankaj Garg30-Jan-09 2:21
Pankaj Garg30-Jan-09 2:21 
AnswerRe: Audit Log In and Audit logout problems in sql server 2005 after XML import to sql server 2005 Pin
Wendelius30-Jan-09 3:08
mentorWendelius30-Jan-09 3:08 
Questionsaving/recalling image to/from sql server 2005 using asp.net Pin
roachae29-Jan-09 10:38
roachae29-Jan-09 10:38 
AnswerRe: saving/recalling image to/from sql server 2005 using asp.net Pin
Wendelius29-Jan-09 10:51
mentorWendelius29-Jan-09 10:51 
GeneralRe: saving/recalling image to/from sql server 2005 using asp.net Pin
roachae29-Jan-09 12:21
roachae29-Jan-09 12:21 
GeneralRe: saving/recalling image to/from sql server 2005 using asp.net Pin
Wendelius29-Jan-09 12:30
mentorWendelius29-Jan-09 12:30 
GeneralRe: saving/recalling image to/from sql server 2005 using asp.net Pin
roachae30-Jan-09 6:19
roachae30-Jan-09 6:19 
GeneralRe: saving/recalling image to/from sql server 2005 using asp.net Pin
Wendelius30-Jan-09 7:40
mentorWendelius30-Jan-09 7:40 
AnswerRe: saving/recalling image to/from sql server 2005 using asp.net Pin
Giorgi Dalakishvili29-Jan-09 18:51
mentorGiorgi Dalakishvili29-Jan-09 18:51 
GeneralRe: saving/recalling image to/from sql server 2005 using asp.net Pin
roachae30-Jan-09 6:23
roachae30-Jan-09 6:23 

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.