VB.net help

Laknath

Well-known member
  • Oct 18, 2006
    1,380
    65
    63
    street
    VB.net danna aya ennvanam help ekak dennako :) connection string eka hema PC ekakatama hariyana widihata hadane kohomda?
     
    Last edited:

    kosandpol

    Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    ask to enter the server name or server ip the first time the application is run and save it to the registry.
     

    Laknath

    Well-known member
  • Oct 18, 2006
    1,380
    65
    63
    street
    den api database connect karhama ape PC eke pennwane ape severname ekane. eka wena PC walata demahamath weda karana widihata hadana kohomada?

    connetionString = "Data Source=ServerName;Initial Catalog=DatabaseName;User ID=UserName;Password=Password"
     

    kosandpol

    Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    den api database connect karhama ape PC eke pennwane ape severname ekane. eka wena PC walata demahamath weda karana widihata hadana kohomada?

    connetionString = "Data Source=ServerName;Initial Catalog=DatabaseName;User ID=UserName;Password=Password"
    Data Source=ServerName

    servername වෙනුවට server IP,server port දාන්න. sql server එකේ tcp/ip enable කරන්න fixed port එකක් assign කරන්න.
     
    • Like
    Reactions: Laknath
    Mar 10, 2007
    2,113
    4
    0
    37
    Sri Lanaka ( Malabe )
    macho "." eka use karala balanna, without/q , but not if its running over a network , i mean if your using a standalone software ( 1 client software & the server is the same ) "." is correct , because "." mean that the local machine , so that it will work, but if your using more than one machine ,if your using a server to maintain the db and access it from client systems , then, yes you have to specify a IP Address ( Server IP ) , in your case i think your asking about a single instance so "." is correct
     
    Last edited: