Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. MySQL
  4. Problem in accessing data from MYSQL table???

Problem in accessing data from MYSQL table???

Scheduled Pinned Locked Moved MySQL
databasemysqlsysadminhelpquestion
3 Posts 3 Posters 9 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RA UL PATEL
    wrote on last edited by
    #1

    There is a open connection to the database.That i have checked with my connection object's state(conn.state) property.. My connection string is : "Conn.ConnectionString = "Driver={MySQL ODBC 3.51 Driver};Server=MyServer;Database=test;uid=root;pwd=;option=3" Dim strSQL As String = select * from tablename cmd.connection=conn cmd.commandtext=strSQL da = New Odbc.OdbcDataAdapter(cmd) Da.Fill(ds, "RAHUL") Here it gives exception at last statement i.e "Da.Fill(ds, "RAHUL")" Thanks in advance..

    R L 2 Replies Last reply
    0
    • R RA UL PATEL

      There is a open connection to the database.That i have checked with my connection object's state(conn.state) property.. My connection string is : "Conn.ConnectionString = "Driver={MySQL ODBC 3.51 Driver};Server=MyServer;Database=test;uid=root;pwd=;option=3" Dim strSQL As String = select * from tablename cmd.connection=conn cmd.commandtext=strSQL da = New Odbc.OdbcDataAdapter(cmd) Da.Fill(ds, "RAHUL") Here it gives exception at last statement i.e "Da.Fill(ds, "RAHUL")" Thanks in advance..

      R Offline
      R Offline
      Reza Raad
      wrote on last edited by
      #2

      Rahul Say hiiiii wrote:

      Here it gives exception at last statement i.e "Da.Fill(ds, "RAHUL")"

      paste your exception error text here

      Human knowledge belongs to the world http://www.rad.pasfu.com/index.php

      1 Reply Last reply
      0
      • R RA UL PATEL

        There is a open connection to the database.That i have checked with my connection object's state(conn.state) property.. My connection string is : "Conn.ConnectionString = "Driver={MySQL ODBC 3.51 Driver};Server=MyServer;Database=test;uid=root;pwd=;option=3" Dim strSQL As String = select * from tablename cmd.connection=conn cmd.commandtext=strSQL da = New Odbc.OdbcDataAdapter(cmd) Da.Fill(ds, "RAHUL") Here it gives exception at last statement i.e "Da.Fill(ds, "RAHUL")" Thanks in advance..

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        Whatever you do, don't tell anyone what the exception is. Just let them all waste some time guessing. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups