SqlDataAdapter, BC30519: Overload resolution failed because no acc

Discussion in 'ASP .Net' started by =?Utf-8?B?Q2FpbGlu?=, Sep 9, 2005.

  1. I am trying to make a connection with my SQL server DB, and I got this error
    message: "BC30519: Overload resolution failed because no accessible 'New'
    can be called without a narrowing conversion". Here is my code.

    sub Page_Load

    dim myConnection as New SqlConnection("Provider=sqloledb;Data
    Source=123456;Initial Catalog=someDB;User Id=23456;Password=somePw;")

    dim myCommand as SqlDataAdapter = New SqlDataAdapter("SELECT symbol_id,
    symbol_name FROM d_symbol", myConnection)


    sqlDataReader=myCommand.ExecuteReader()
    listbox1.DataSource = sqlDataReader
    listbox1.DataBind()
    sqlDataReader.Close()

    myConnection.Close()

    end sub

    Thanks for trying to help!
     
    =?Utf-8?B?Q2FpbGlu?=, Sep 9, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eph0nk

    Error: Overload resolution failed

    Eph0nk, Oct 23, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    2,085
    Eph0nk
    Oct 23, 2003
  2. Jerry Higgins
    Replies:
    6
    Views:
    786
    Jerry Higgins
    Apr 21, 2004
  3. Bob of the West
    Replies:
    1
    Views:
    3,211
    William F. Robertson, Jr.
    May 17, 2004
  4. Replies:
    0
    Views:
    6,050
  5. Replies:
    2
    Views:
    4,124
  6. fiya
    Replies:
    0
    Views:
    1,044
  7. Wong Wah Meng-R32813
    Replies:
    0
    Views:
    873
    Wong Wah Meng-R32813
    Sep 18, 2011
  8. jm

    SqlDataAdapter Problem Overload

    jm, Oct 14, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    163
Loading...