Click here to Skip to main content
15,919,358 members
Home / Discussions / Database
   

Database

 
Generallongblob column in MySQL database table Pin
kd83416-May-05 10:49
kd83416-May-05 10:49 
Generalmysql output parameters Pin
jetset326-May-05 8:30
jetset326-May-05 8:30 
GeneralRe: mysql output parameters Pin
jetset326-May-05 8:31
jetset326-May-05 8:31 
Generalfunction returning CRecordset Pin
scoroop6-May-05 8:02
scoroop6-May-05 8:02 
GeneralSQL Reporting Pin
vkallavi6-May-05 7:47
vkallavi6-May-05 7:47 
GeneralStored Procedure headache Pin
Vodstok6-May-05 3:14
Vodstok6-May-05 3:14 
GeneralRe: Stored Procedure headache Pin
Vodstok6-May-05 3:32
Vodstok6-May-05 3:32 
Generalmysql adding parameters in asp.net vb Pin
jetset326-May-05 3:07
jetset326-May-05 3:07 
hi all,

I wonder if anyone can help with this one, alls im trying to do is add a parameter to a query, i have tried for days but cannot get this to work!!

heres my code;

myConnection = New MySqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))

strSQL = "SELECT SubCatID,CategoryID,SubCatName,Multibuy,SubCatPic FROM SubCategory WHERE CategoryID = ?CategoryID AND Multibuy='Single' ORDER BY SubCatName, SubCatID;"
Command = New MySqlCommand(strSQL, myConnection)
myDataAdapter = New MySqlDataAdapter(strSQL, myConnection)

Command.Parameters.Add("?CategoryID", 1)
Command.Parameters("?CategoryID").Direction = ParameterDirection.Input

I get the error ;
Parameter '?CategoryID' must be defined

i have tried everyway i think possible, PLEASE i hope someone can help or point me in the right direction!

Thanks.
Jetset

GeneralRe: mysql adding parameters in asp.net vb Pin
Mike Ellison6-May-05 5:10
Mike Ellison6-May-05 5:10 
GeneralRe: mysql adding parameters in asp.net vb Pin
jetset326-May-05 5:19
jetset326-May-05 5:19 
GeneralRe: mysql adding parameters in asp.net vb Pin
Mike Ellison6-May-05 5:37
Mike Ellison6-May-05 5:37 
GeneralRe: mysql adding parameters in asp.net vb Pin
jetset326-May-05 5:46
jetset326-May-05 5:46 
GeneralData export to excel\csv file Pin
mansir 1235-May-05 22:26
mansir 1235-May-05 22:26 
GeneralRe: Data export to excel\csv file Pin
scoroop6-May-05 8:10
scoroop6-May-05 8:10 
GeneralRe: Data export to excel\csv file Pin
S Douglas12-May-05 0:50
professionalS Douglas12-May-05 0:50 
GeneralTwo counts of rows with different criteria Pin
Luis Alonso Ramos5-May-05 19:34
Luis Alonso Ramos5-May-05 19:34 
GeneralRe: Two counts of rows with different criteria Pin
Dan_P5-May-05 19:48
Dan_P5-May-05 19:48 
GeneralRe: Two counts of rows with different criteria Pin
Luis Alonso Ramos5-May-05 20:09
Luis Alonso Ramos5-May-05 20:09 
GeneralSQL Ternary Operator Pin
Syed Abdul Khader5-May-05 19:23
Syed Abdul Khader5-May-05 19:23 
GeneralRe: SQL Ternary Operator Pin
Colin Angus Mackay5-May-05 23:32
Colin Angus Mackay5-May-05 23:32 
GeneralRe: SQL Ternary Operator Pin
Syed Abdul Khader10-May-05 15:54
Syed Abdul Khader10-May-05 15:54 
General"COM object with CLSID {10020200-EB1C-11CF-AE6E-00AA004A34D5} is either not Pin
leezardd5-May-05 9:23
leezardd5-May-05 9:23 
GeneralRe: "COM object with CLSID {10020200-EB1C-11CF-AE6E-00AA004A34D5} is either not Pin
Dan_P5-May-05 20:14
Dan_P5-May-05 20:14 
GeneralRe: "COM object with CLSID {10020200-EB1C-11CF-AE6E-00AA004A34D5} is either not Pin
leezardd12-May-05 3:51
leezardd12-May-05 3:51 
GeneralRunning Store Proc in Access Pin
mjackson115-May-05 7:49
mjackson115-May-05 7:49 

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.