Click here to Skip to main content
15,896,606 members
Home / Discussions / Database
   

Database

 
QuestionNo Row Returned Pin
Brendan Vogt14-Nov-05 17:43
Brendan Vogt14-Nov-05 17:43 
AnswerRe: No Row Returned Pin
Colin Angus Mackay14-Nov-05 20:21
Colin Angus Mackay14-Nov-05 20:21 
Questionconnecting to a database..needs help Pin
JustmeNick14-Nov-05 5:52
JustmeNick14-Nov-05 5:52 
QuestionSQL Server does not exist or access denied. Pin
smita_roy13-Nov-05 21:30
smita_roy13-Nov-05 21:30 
AnswerRe: SQL Server does not exist or access denied. Pin
ricardojb14-Nov-05 17:20
ricardojb14-Nov-05 17:20 
QuestionInternal Processor Error Pin
lovelylooney13-Nov-05 21:26
lovelylooney13-Nov-05 21:26 
Questiondiff b/w ado and ado.net Pin
expertdeveloper13-Nov-05 20:18
expertdeveloper13-Nov-05 20:18 
AnswerRe: diff b/w ado and ado.net Pin
toxcct16-Nov-05 5:31
toxcct16-Nov-05 5:31 
Questionproblem with Sqlparameters :( Pin
da vinci coder13-Nov-05 13:09
da vinci coder13-Nov-05 13:09 
AnswerRe: problem with Sqlparameters :( Pin
Colin Angus Mackay13-Nov-05 13:21
Colin Angus Mackay13-Nov-05 13:21 
GeneralRe: problem with Sqlparameters :( Pin
TheJudeDude9-Feb-06 6:16
TheJudeDude9-Feb-06 6:16 
GeneralRe: problem with Sqlparameters :( Pin
Colin Angus Mackay9-Feb-06 7:18
Colin Angus Mackay9-Feb-06 7:18 
GeneralRe: problem with Sqlparameters :( Pin
TheJudeDude9-Feb-06 9:08
TheJudeDude9-Feb-06 9:08 
GeneralRe: problem with Sqlparameters :( Pin
Colin Angus Mackay9-Feb-06 14:18
Colin Angus Mackay9-Feb-06 14:18 
GeneralRe: problem with Sqlparameters :( Pin
TheJudeDude9-Feb-06 14:27
TheJudeDude9-Feb-06 14:27 
QuestionOptimizing my query Pin
smita_roy13-Nov-05 2:19
smita_roy13-Nov-05 2:19 
Questionstored procedure, LIKE comparison Pin
steve_rm12-Nov-05 18:57
steve_rm12-Nov-05 18:57 
AnswerRe: stored procedure, LIKE comparison Pin
Colin Angus Mackay12-Nov-05 22:33
Colin Angus Mackay12-Nov-05 22:33 
GeneralRe: stored procedure, LIKE comparison Pin
BReddy15-Nov-05 2:48
BReddy15-Nov-05 2:48 
GeneralRe: stored procedure, LIKE comparison Pin
Colin Angus Mackay15-Nov-05 3:04
Colin Angus Mackay15-Nov-05 3:04 
Breddy wrote:
str1 = "select uid, firstname+' '+middlename+' '+lastname as name,login,email,Case When Status = 1 Then '../admin/img/img_status_active.gif' When status=0 Then '../admin/img/img_status_inactive.gif' End status from tb_users where 1=1"
If TextBox1.Text <> "" Then
str1 = str1 & " and last_name like '" & TextBox1.Text & "%'"
End If



I'm not sure what this post is supposed to demonstrate. It does not appear to have much to do with the original poster's query. It looks like it is some code you are using some place else that is vaguely applicable, but you have not provided an explanation so it is difficult to see where it is supposed to be helpful.

More importantly, your solution contains some pretty horrible security holes that you should patch. You may want to read the article SQL Injection Attacks and Tips on how to prevent them[^]


My: Blog | Photos

"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious


Questionmy problem with ado.net Pin
da vinci coder12-Nov-05 13:07
da vinci coder12-Nov-05 13:07 
AnswerRe: my problem with ado.net Pin
Colin Angus Mackay12-Nov-05 22:38
Colin Angus Mackay12-Nov-05 22:38 
QuestionSQL 2005 &amp; 2000 Pin
Tad McClellan12-Nov-05 3:45
professionalTad McClellan12-Nov-05 3:45 
AnswerRe: SQL 2005 &amp;amp; 2000 Pin
Colin Angus Mackay12-Nov-05 5:18
Colin Angus Mackay12-Nov-05 5:18 
GeneralRe: SQL 2005 &amp;amp;amp; 2000 Pin
Mike Dimmick14-Nov-05 2:26
Mike Dimmick14-Nov-05 2:26 

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.