SQL remote connection problem

Jack_Sparrow

Well-known member
  • Jun 16, 2008
    42,522
    1
    16,928
    113
    Black Pearl
    C# program ekak network thru access karaddi SQL remote connection weda neha

    meka tamai conn string
    Code:
    connectionString="Data Source=server\SQLEXPRESS;Initial Catalog=Time_Sheet_DB;Integrated Security=True;

    eka server machine eke run karaddi hodata connect wenawa, network wena machin ekakin meka use karala connect weddi error 26 enawa

    24wemfa.jpg



    • server eke fire wall disable karala tiyenne...
    • user logins windows authentication tiyenne...
    • sql config wala remote connections enable and TCP/IP protocol enable karala tiyenne :baffled::baffled::baffled:
     

    Anushka123

    Active member
  • Aug 25, 2008
    225
    74
    28
    Gampaha
    ow ban 2008 Active Directory eken xp hariyata connect wenne.. connect wela disconnect wenawada?? netanam connect wenne nedda???
     

    cmsgun

    Well-known member
  • Jul 5, 2011
    2,028
    331
    83
    Kaduwela
    uba windows authentication da use karala thiyenne
    SQL server authentication use kerala balapan wadi hari yai mama hithanne
     

    Jack_Sparrow

    Well-known member
  • Jun 16, 2008
    42,522
    1
    16,928
    113
    Black Pearl
    uba windows authentication da use karala thiyenne
    SQL server authentication use kerala balapan wadi hari yai mama hithanne

    mama machan ehemat try kala, SQL user kenek hadala, e user name and pass string ekata dala.
    eket local server eka ethule connect wenawa
    thru network connect wenne neha :baffled::no:
     

    Anushka123

    Active member
  • Aug 25, 2008
    225
    74
    28
    Gampaha
    ow machan domain users hodata weda karai.et tcp/ip port eka xp client log wenakota wahanawa.mata meka une server eka update kalata passe.hodama wede windows 7 pc ekakata dala balapan
     

    kosandpol

    Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    1. does the SQL Server have TCP/IP enabled on fixed port ?
    2. is that fixed port open on the server firewall ?
    3. is the server netbios/dns name resolvable on the network ?

    change the connection string's Data Source parameter accordingly.
     

    shan4djfun

    Well-known member
  • Jun 18, 2007
    13,873
    4,481
    113
    oka hadane tikak porak gawata yane wenawa. SQL Express natuwa server install kerela google parak danne microsoft eken deela tiyenawa system eka. hama machine kekema wada kerane naa specially laptops
     

    Jack_Sparrow

    Well-known member
  • Jun 16, 2008
    42,522
    1
    16,928
    113
    Black Pearl
    1. does the SQL Server have TCP/IP enabled on fixed port ?
    2. is that fixed port open on the server firewall ?
    3. is the server netbios/dns name resolvable on the network ?

    change the connection string's Data Source parameter accordingly.

    1. YES
    2. YES
    3. mokadda e netbios scen eka :S how to check dat??
     

    Jack_Sparrow

    Well-known member
  • Jun 16, 2008
    42,522
    1
    16,928
    113
    Black Pearl
    oka hadane tikak porak gawata yane wenawa. SQL Express natuwa server install kerela google parak danne microsoft eken deela tiyenawa system eka. hama machine kekema wada kerane naa specially laptops


    SQL full itin crack ewane hoyaganna wenne, ekane awula :baffled::baffled:
    nettam eeekak daganna wei :rofl:
     

    kosandpol

    Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    1. YES
    2. YES
    3. mokadda e netbios scen eka :S how to check dat??
    from the client PC, open a command terminal and run
    Code:
    ping <server_name>
    replace <server_name> with actual name of server.
    If it resolves the name and show the ip address properly, change your connection string's data source name to :
    Code:
    Data Source=<server_name>,<fixed_port_number>

    if the ip address is not being resolved, then change the data source to :
    Code:
    Data Source=<ip_address_of_server>,<fixed_port_number>

    replace <server_name> with the actual server name, <fixed_port_number> with the actual port for the SQL service and <ip_address_server> with the actual ip address of the server..
     
    • Like
    Reactions: Jack_Sparrow