SELECT With MySQL Stored Function in VB.Net -


i got stored function named getitemqty() in database. when run code localhost loading data's.

     select itemid, catalognumber, cost, getitemqty(itemid),       minimum, maximum, typeid, supplierid items;       showing rows 0 - 24 (4387 total, query took 2.4682 seconds.) 

its working fine in localhost when apply datagridview. loading takes forever , timeout expired. timeout period elapsed show.

heres code populate datagridview.

            dim command new mysqlcommand()             dim cmdstring string             dim adapter new mysqldataadapter             dim dt new datatable             cmdstring = "select itemid, catalognumber, cost, getitemqty(itemid), minimum, maximum, typeid, supplierid items;"             command                 .connection = conn                 .commandtext = cmdstring                 .commandtimeout = 60             end             conn.open()             adapter.selectcommand = command             adapter.fill(dt)             dgvstocks.datasource = dt             command.dispose()             adapter.dispose()             conn.close() 

how can load data in datagridview in localhost? if ok causing loading?


Comments

Popular posts from this blog

Combining PHP Registration and Login into one class with multiple functions in one PHP file -

Android volley - avoid multiple requests of the same kind to the server? -

magento2 - Magento 2 admin grid add filter to collection -