Results 1 to 3 of 3

Thread: vb application with client server data access

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2003
    Posts
    7

    vb application with client server data access

    Hai all,

    I created one vb application in my PC with access database as backend.
    If it is to be work on Local Area Network (client/server setup that is database
    available only on server) what shall i do?

    Now i am using DSN LESS connection.
    To acheive LAN set up which one is suitable DSN or DSNLESS.

    I saw one software in which they provide only the IP of Server while configuring the client,
    but client machine automatically idetifies the database of the server using that IP.
    How can we do this?

    If Database is changed as ORACLE or SQL server what is to be done for the above?

    Can anyone help me on this?

    Thanks in advance,
    Louis

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    To answer the last bit, if you were using an SQL server backend database, you could use the following code to connect to it which makes use of the server IP address & port number to make the connection:

    Dim MyConnectionString As String

    MyConnectionString = "Data Source=255.255.255.0,8080; Network Library=DBMSSOCN; Initial Catalog=DataBaseName; UID=UserNameHere; pwd=PasswordHere"

    For the first bit, i.e. using an Access database, I would suggest 2 things;

    Firstly, if you can, upgrade to the Oracle or SQL Server suggestion as Access doesn't perform well in a client/server multi-user environment & you'll find it easier/less stressful working with a larger database system.

    Secondly, go with the DNS / ODBC connection across the network - it's easily setup and more maintainable rather than worrying about changing IP addresses etc. in your code.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2003
    Posts
    7
    Dear Alex

    Thank you for your valuable reply

    Louis

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width