We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Connection String

Last post 05-04-2008 3:32 AM by dcabarcas. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-30-2008 12:49 PM

    Connection String

    Hi, I am hvg application developed in VB.Net 2005 previously it was on running on single pc and using local database. But now i want o install the same application on multiple pcs and want to centralize the database to avoid duplicacy. I am using this connection string "Dim sqlcon As New SqlConnection("uid=sa;pwd=sa;Server=\\10.52.4.10;database=dainik")" for connecting to remote database. But its not working, while when i registering the same system database in sql server it is working properly. Kindly guide me.
    • Post Points: 10
  • 05-04-2008 3:32 AM In reply to

    • dcabarcas
    • Not Ranked
    • Joined on 05-04-2008
    • Colombia
    • New Member
    • Points 5

    Re: Connection String

    Hi Girish Kardam,

    Good night. 

    I normally use the below connection string in my applications and it works.  I use SQL Server authentication. Please be sure that you have the right username and password.

    Public Sub TestConnection2DB()

    Dim myConnection As New SqlClient.SqlConnection

    myConnection.ConnectionString = "Database=dainik;Data Source=10.52.4.10;User Id=sa;Password=sa"

    End Sub

    I hope it helps you to continue your project.

    Best regards,

    Daniel Cabarcas

    • Post Points: 5
Page 1 of 1 (2 items)