G
Gav
I have a select statement with parameter
ie
SELECT * FROM USERS WHERE UserID = @UserID
If I do not supply @UserID I get an error, how can I set it up so that if I
don't supply @UserID it returns all of them?
Help would be much appreciated
Thanks
Gav
ie
SELECT * FROM USERS WHERE UserID = @UserID
If I do not supply @UserID I get an error, how can I set it up so that if I
don't supply @UserID it returns all of them?
Help would be much appreciated
Thanks
Gav