Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
Dynamic Define Parameters in MySql Command
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
rachayita jaiswal
11y
1.1k
1
Reply
I have one file (database.vb) where i have mention a function like -
Public Sub Execute(ByVal SP As String)
Dim QueryConnection As New OdbcConnection(ConfigurationManager.ConnectionStrings("DBConnection").ToString)
QueryConnection.Open()
Dim cmd As New OdbcCommand(SP, QueryConnection)
cmd.Parameters.Add(---------------------------)
cmd.ExecuteNonQuery()
QueryConnection.Close()
End Sub
/* in place of query i want to use stored procedure(SP)
this function i am going to use for insert data but i am facing problem with declaring parameters.
how i will declare parameters here because there will be different parameters and it will dynamically ?
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Cannot Connect To MYSQL DB From Shared Folder
no 'Unit' columns in dtPurchaseProductExp but the error show