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

Database

 
GeneralRe: Reading from another DB Pin
Member 195262810-May-05 15:32
Member 195262810-May-05 15:32 
GeneralRe: Reading from another DB Pin
Member 195262810-May-05 15:47
Member 195262810-May-05 15:47 
GeneralCreating a FireBird Database Programmatically Pin
goatstudio6-May-05 21:13
goatstudio6-May-05 21:13 
QuestionHow to convert to Float Pin
Yulianto.6-May-05 16:29
Yulianto.6-May-05 16:29 
AnswerRe: How to convert to Float Pin
Colin Angus Mackay6-May-05 22:23
Colin Angus Mackay6-May-05 22:23 
GeneralRe: How to convert to Float Pin
Yulianto.8-May-05 16:23
Yulianto.8-May-05 16:23 
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 
Hi,

Mikey just sorted out my first problem, the next one is this.

In my stored procedure in sqlserver i used OUTPUT Parameters, im not sure i can do this in MYSQL as im not using stored procedure;

this is my code;

' the connection string
myconnection = New MySqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))

' the query
strSQL = "SELECT ?SubDesc=SubDesc, ?SubName=SubCatName FROM SubCategory WHERE SubcatID = ?SubID;"
mycommand = New MySqlCommand(strSQL, myconnection)


' Input Parameter
Dim parameterSubID As MySqlParameter = New MySqlParameter("?SubID", SubCatID)
mycommand.Parameters.Add(parameterSubID)

' Output Parameter
Dim parameterSubCatDesc As MySqlParameter = New MySqlParameter("?SubDesc", MySqlDbType.String, 500)
parameterSubCatDesc.Direction = ParameterDirection.Output
mycommand.Parameters.Add(parameterSubCatDesc)

Dim parameterSubName As MySqlParameter = New MySqlParameter("?SubName", MySqlDbType.String, 50)
parameterSubName.Direction = ParameterDirection.Output
mycommand.Parameters.Add(parameterSubName)

' execute read
myconnection.Open()
mycommand.ExecuteNonQuery()
myconnection.Close()

Label1.Text = CStr(parameterSubCatDesc.Value)
Label2.Text = CStr(parameterSubName.Value)

I dont know if anyone can help me on this? Mike what about this one!

Cheers

Jetset
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 
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 

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.