Quantcast
Channel: Oracle, MySQL, Sybase, Informix and other databases
Viewing all articles
Browse latest Browse all 1350

Maria DB and VB.net executing a stored procedure gives an error

$
0
0

  cannot be found in database '`Employee`'. Verify that user 'root'@'localhost' has enough privileges to execute.       




conn.ConnectionString = strConnString conn.Open() Dim cmd As New MySql.Data.MySqlClient.MySqlCommand Dim cmd1 As New MySql.Data.MySqlClient.MySqlCommand cmd.CommandType = CommandType.StoredProcedure cmd.CommandText = "GetAllEmployees" cmd.Connection = conn cmd1.CommandType = CommandType.StoredProcedure cmd1.CommandText = "GetEmployeeCount" cmd1.Connection = conn Dim ds As New DataSet Dim da As New MySql.Data.MySqlClient.MySqlDataAdapter(cmd) da.Fill(ds) GridView1.DataSource = ds GridView1.DataBind() lblCount.Text = cmd1.ExecuteScalar conn.Close()



Viewing all articles
Browse latest Browse all 1350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>