Click here to Skip to main content
15,891,951 members
Home / Discussions / Database
   

Database

 
Questiondeleting data from datagrid Pin
minkinin13-Feb-07 3:19
minkinin13-Feb-07 3:19 
AnswerRe: Query error Pin
Krish - KP13-Feb-07 2:53
Krish - KP13-Feb-07 2:53 
GeneralRe: Query error Pin
Saira Tanwir13-Feb-07 2:55
Saira Tanwir13-Feb-07 2:55 
GeneralRe: Query error Pin
Krish - KP13-Feb-07 3:04
Krish - KP13-Feb-07 3:04 
GeneralRe: Query error Pin
Saira Tanwir13-Feb-07 3:10
Saira Tanwir13-Feb-07 3:10 
QuestionProblem Code Pin
Sam Heller13-Feb-07 1:55
Sam Heller13-Feb-07 1:55 
AnswerRe: Problem Code Pin
Colin Angus Mackay13-Feb-07 2:14
Colin Angus Mackay13-Feb-07 2:14 
AnswerRe: Problem Code Pin
Pete O'Hanlon13-Feb-07 2:15
mvePete O'Hanlon13-Feb-07 2:15 
As you are using dynamic SQL (and I don't see any reason why you need to do that), you need to put apostrophes around your variables. So, the where clause becomes WHERE UserID = ''' + @UserID and so on.

Also, the BEGIN doesn't need to be there - in fact, it causes an error.


the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer

Deja View - the feeling that you've seen this post before.

QuestionProblematic connection string to SQL Express 2005 Pin
Joe Smith IX13-Feb-07 1:20
Joe Smith IX13-Feb-07 1:20 
AnswerRe: Problematic connection string to SQL Express 2005 Pin
Joe Smith IX15-Feb-07 2:02
Joe Smith IX15-Feb-07 2:02 
Questionunicode problem Pin
.NetRams13-Feb-07 1:12
.NetRams13-Feb-07 1:12 
AnswerRe: unicode problem Pin
Mike Dimmick13-Feb-07 1:34
Mike Dimmick13-Feb-07 1:34 
GeneralRe: unicode problem Pin
.NetRams13-Feb-07 1:53
.NetRams13-Feb-07 1:53 
QuestionExpensive Update Pin
Brady Kelly12-Feb-07 22:15
Brady Kelly12-Feb-07 22:15 
QuestionRe: Expensive Update Pin
andyharman12-Feb-07 22:27
professionalandyharman12-Feb-07 22:27 
AnswerRe: Expensive Update Pin
Colin Angus Mackay12-Feb-07 22:35
Colin Angus Mackay12-Feb-07 22:35 
AnswerRe: Expensive Update Pin
Pete O'Hanlon12-Feb-07 22:43
mvePete O'Hanlon12-Feb-07 22:43 
GeneralRe: Expensive Update Pin
Brady Kelly12-Feb-07 22:49
Brady Kelly12-Feb-07 22:49 
Questioncreating view for Month filter facility Pin
rrrriiizz12-Feb-07 21:43
rrrriiizz12-Feb-07 21:43 
AnswerRe: creating view for Month filter facility [modified] Pin
Krish - KP13-Feb-07 2:59
Krish - KP13-Feb-07 2:59 
GeneralRe: creating view for Month filter facility Pin
rrrriiizz13-Feb-07 19:36
rrrriiizz13-Feb-07 19:36 
GeneralRe: creating view for Month filter facility Pin
Krish - KP15-Feb-07 3:14
Krish - KP15-Feb-07 3:14 
Questionexplicit way of triming string parameter Pin
firestoper12-Feb-07 20:16
firestoper12-Feb-07 20:16 
AnswerRe: explicit way of triming string parameter Pin
Sylvester george13-Feb-07 0:36
Sylvester george13-Feb-07 0:36 
GeneralRe: explicit way of triming string parameter Pin
firestoper13-Feb-07 14:40
firestoper13-Feb-07 14:40 

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.