Click here to Skip to main content
15,890,982 members
Home / Discussions / Database
   

Database

 
GeneralRe: SELECT with TOP question Pin
Colin Angus Mackay18-Apr-05 1:33
Colin Angus Mackay18-Apr-05 1:33 
GeneralRe: SELECT with TOP question [addendum] Pin
Colin Angus Mackay18-Apr-05 1:35
Colin Angus Mackay18-Apr-05 1:35 
QuestionCreating an IStream object in OLE DB? Pin
mjharvey17-Apr-05 16:22
mjharvey17-Apr-05 16:22 
AnswerRe: Creating an IStream object in OLE DB? Pin
Mike Dimmick18-Apr-05 1:04
Mike Dimmick18-Apr-05 1:04 
GeneralRe: Creating an IStream object in OLE DB? Pin
mjharvey18-Apr-05 13:15
mjharvey18-Apr-05 13:15 
GeneralRe: Creating an IStream object in OLE DB? Pin
mjharvey18-Apr-05 17:05
mjharvey18-Apr-05 17:05 
GeneralProblem with sql query in vb.net Pin
gundamhamtaro16-Apr-05 15:18
gundamhamtaro16-Apr-05 15:18 
GeneralRe: Problem with sql query in vb.net Pin
Colin Angus Mackay16-Apr-05 23:55
Colin Angus Mackay16-Apr-05 23:55 
You should not create SQL Statements like this if at all possible because it is vulnerable to a SQL Injection Attack.

SQL Injection Attacks and Some Tips on How to Prevent Them[^]

Some Microsoft documentation that might help:
SqlCeCommand.Parameters[^]


I've left the explanantion for your error until the end of this message as I wanted to get across the point about security your applications against attack.

The reason for your error is that SqlMoney is not a string and the & operator is used for concatenating strings together. This is an inefficient way to concatenate strings, you should consider using String.Concat() or String.Format(), the latter being more likly to understand how to insert a SqlMoney object into the string without you having to write any code to convert it yourself.

Does this help?


My: Blog | Photos | Next SQL Presentation
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More


GeneralRe: Problem with sql query in vb.net Pin
gundamhamtaro17-Apr-05 1:56
gundamhamtaro17-Apr-05 1:56 
GeneralRe: Problem with sql query in vb.net Pin
Colin Angus Mackay17-Apr-05 2:04
Colin Angus Mackay17-Apr-05 2:04 
GeneralRe: Problem with sql query in vb.net Pin
gundamhamtaro18-Apr-05 0:05
gundamhamtaro18-Apr-05 0:05 
GeneralRe: Problem with sql query in vb.net Pin
Colin Angus Mackay18-Apr-05 1:26
Colin Angus Mackay18-Apr-05 1:26 
GeneralRe: Problem with sql query in vb.net Pin
gundamhamtaro18-Apr-05 20:22
gundamhamtaro18-Apr-05 20:22 
GeneralRe: Problem with sql query in vb.net Pin
Colin Angus Mackay18-Apr-05 22:45
Colin Angus Mackay18-Apr-05 22:45 
GeneralFiltering on a variable in SQL Pin
Stuck!16-Apr-05 1:37
sussStuck!16-Apr-05 1:37 
GeneralRe: Filtering on a variable in SQL Pin
Colin Angus Mackay16-Apr-05 6:20
Colin Angus Mackay16-Apr-05 6:20 
GeneralRe: Filtering on a variable in SQL Pin
Stuck !16-Apr-05 22:09
sussStuck !16-Apr-05 22:09 
GeneralRe: Filtering on a variable in SQL Pin
Colin Angus Mackay16-Apr-05 23:44
Colin Angus Mackay16-Apr-05 23:44 
GeneralRe: Filtering on a variable in SQL Pin
Anonymous17-Apr-05 4:43
Anonymous17-Apr-05 4:43 
GeneralRe: Filtering on a variable in SQL [another wee hint] Pin
Colin Angus Mackay16-Apr-05 6:23
Colin Angus Mackay16-Apr-05 6:23 
QuestionExecute SQL file in Enterprise Manager? Pin
c121hains15-Apr-05 13:10
c121hains15-Apr-05 13:10 
AnswerRe: Execute SQL file in Enterprise Manager? Pin
djkno315-Apr-05 13:29
djkno315-Apr-05 13:29 
GeneralSum on a portion of a column Pin
Esmo200015-Apr-05 9:50
Esmo200015-Apr-05 9:50 
GeneralRe: Sum on a portion of a column Pin
Colin Angus Mackay15-Apr-05 9:57
Colin Angus Mackay15-Apr-05 9:57 
GeneralDatabase SQL Syntax Comparison Pin
loane15-Apr-05 8:02
loane15-Apr-05 8:02 

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.