How can I connect to sql server via network by using vb.net.

>How can I connect to sql server via network by using vb.net.

You have to set following parts in connectionstring.

str="Data Source=ipaddress; Initial Catalog=database_name; User Id=username; Password=password"

Wow did you even try looking up the answer for yourself before asking others to do it for you?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.