How to add System.data.sqlclient to vb.net 2019

Julio Enrique Lopez Barajas 1 Reputation point
2021-08-02T13:44:51.583+00:00

Hi everybody

I've just install Visual Studio 2019 Professional, i usually work with Visual Basic. I added one project to my solution in order to have a 3 layer solution and work with databases.

But the problem is that when i wrote the line imports system.data.sqlclient at the top of the code looks that its not included on visual studio.

I've read at many forums about it and i can't find the way to add the refrence; any clue or tip on how can i solve this issue?

Thanks in advance, have a nice day.

Developer technologies VB
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 90,521 Reputation points
    2021-08-02T14:08:10.18+00:00

    Are you sure that you have created a .Net Framework project (not .Net Core) ?

    In a new .Net Framework project, it is added as Reference by default :

    119931-systemdata-3.jpg


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.