Click here to Skip to main content
15,897,519 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionwriting to the database Pin
samwisethegreat14-Mar-07 10:00
samwisethegreat14-Mar-07 10:00 
AnswerRe: writing to the database Pin
kubben14-Mar-07 12:05
kubben14-Mar-07 12:05 
QuestionRe: writing to the database Pin
samwisethegreat15-Mar-07 1:05
samwisethegreat15-Mar-07 1:05 
AnswerRe: writing to the database Pin
kubben15-Mar-07 1:38
kubben15-Mar-07 1:38 
QuestionASP.NET Exporting to Excel w/ Color Pin
shinkentb14-Mar-07 8:12
shinkentb14-Mar-07 8:12 
QuestionPLease, i need your help Pin
Ahmed EL Gendy14-Mar-07 6:18
Ahmed EL Gendy14-Mar-07 6:18 
AnswerRe: PLease, i need your help /using C# Pin
Naveed Kamboh14-Mar-07 7:26
Naveed Kamboh14-Mar-07 7:26 
AnswerRe: PLease, i need your help Pin
ToddHileHoffer14-Mar-07 9:28
ToddHileHoffer14-Mar-07 9:28 
I would NOT code it that way. Create a different stored procedures (or one with a tableName as a paramter). Use a switch statement to chose your stored procedure.

Dynamic SQL should only be done if absolutely necessary.

First of all, performance will be better if it stored procedures.
Secondly, stored procedures prevent SQL Injection.
Third, maintenance will be easier, especially if you change a table.
Fourth, if someone else sees your code, they won't think you are a complete beginner.


AnswerRe: PLease, i need your help Pin
Guffa14-Mar-07 14:36
Guffa14-Mar-07 14:36 
Questionanother help again..sorry 4 disturbing Pin
blitz2bleach14-Mar-07 6:03
blitz2bleach14-Mar-07 6:03 
QuestionDrag & Drop table columns Pin
Marwa Bahaa14-Mar-07 5:46
Marwa Bahaa14-Mar-07 5:46 
AnswerRe: Drag & Drop table columns Pin
ToddHileHoffer14-Mar-07 8:22
ToddHileHoffer14-Mar-07 8:22 
QuestionHow to get System.Web.UI.WebControls.Calendar SelectedDate using JavaScript Pin
Old Gun14-Mar-07 5:23
Old Gun14-Mar-07 5:23 
AnswerRe: How to get System.Web.UI.WebControls.Calendar SelectedDate using JavaScript Pin
badgrs14-Mar-07 5:56
badgrs14-Mar-07 5:56 
QuestionAffiliate program Script Pin
Naveed Kamboh14-Mar-07 5:11
Naveed Kamboh14-Mar-07 5:11 
QuestionGridView binding problem Pin
EnigmaRulez14-Mar-07 4:52
EnigmaRulez14-Mar-07 4:52 
AnswerRe: GridView binding problem Pin
Naveed Kamboh14-Mar-07 5:04
Naveed Kamboh14-Mar-07 5:04 
GeneralRe: GridView binding problem Pin
EnigmaRulez14-Mar-07 5:53
EnigmaRulez14-Mar-07 5:53 
GeneralRe: GridView binding problem Pin
ToddHileHoffer14-Mar-07 8:26
ToddHileHoffer14-Mar-07 8:26 
GeneralRe: GridView binding problem Pin
EnigmaRulez15-Mar-07 9:11
EnigmaRulez15-Mar-07 9:11 
QuestionDefault Button Pin
Sam Heller14-Mar-07 4:36
Sam Heller14-Mar-07 4:36 
AnswerRe: Default Button Pin
Sandeep Akhare14-Mar-07 4:45
Sandeep Akhare14-Mar-07 4:45 
GeneralRe: Default Button Pin
Sam Heller14-Mar-07 5:25
Sam Heller14-Mar-07 5:25 
AnswerRe: Default Button Pin
badgrs14-Mar-07 5:53
badgrs14-Mar-07 5:53 
GeneralRe: Default Button Pin
Sam Heller14-Mar-07 6:43
Sam Heller14-Mar-07 6:43 

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.