Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi

I try to convert my code from access to SQL, the origin code is:

dim objCmd as new OleDbCommand _

("SELECT * FROM tblUsers WHERE UserName ='" + Server.HtmlEncode(Request.Cookies("dan").Value) + "'", Conn)

 

When i tried to write the next code:

dim objCmd as new SQLConnection _

..

I got the next error:

Overload resolution failed because no accessible 'New' accepts this number of arguments.

Why is that?

Thank's.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...