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

Database

 
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 
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 
Okay - I give up. You obviously don't want to take my advice and use parameterised queries.

String.Concat() is used with 2 or more strings. You cannot put anything in there that is not a string. SqlMoney is not a string. That is why you get an error message saying "data type is not valid".

String.Format() is used with a format string and some parameters. For example String.Format("{0}", newPrice) The value newPrice is formatted into a string. You can also do a lot more powerful things with format, but you can read that in the documentation.

Once again, I would suggest you use parameterise queries (the links I gave in past posts show examples of how to use them) because then you do not have to worry about converting data into a string in order to format them to fit in a SQL statement.


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
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 
GeneralRe: Database SQL Syntax Comparison Pin
loane15-Apr-05 8:18
loane15-Apr-05 8:18 
GeneralAS400 Connection using ADO.Net Pin
directred15-Apr-05 4:49
directred15-Apr-05 4:49 
GeneralRe: AS400 Connection using ADO.Net Pin
Colin Angus Mackay15-Apr-05 11:47
Colin Angus Mackay15-Apr-05 11:47 
GeneralExport ms sql server 2005 to .sql Pin
djkno315-Apr-05 3:55
djkno315-Apr-05 3:55 

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.