By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,949 Members | 1,563 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,949 IT Pros & Developers. It's quick & easy.

SqlDataAdapter, BC30519: Overload resolution failed because no acc

P: n/a
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)
listbox1.DataSource = sqlDataReader


end sub

Thanks for trying to help!

Nov 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.