Results 1 to 6 of 6

Thread: Data through code...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2002
    Location
    Canton, GA
    Posts
    487

    Data through code...

    Ok... I am trying to get my database skills going... What I would like to do is connect to my database through code... but here is the catch..

    I have my database on a web server..

    How do I use code to connect to the database on a remote server? Would some kind soul out there give me an example how to connect to the database through code and display data?? Please comment heavily so I can see what each action is for?

    Thanks in advance.

    Anjari

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    what kind of database. If it is Access, you cant do that as far as I know.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2002
    Location
    Canton, GA
    Posts
    487

    yea...

    yea it's an access database... but its not 100% necessary to use access....

    Anjari

  4. #4
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    Use a server based database such as SQL Server or MySQL.

    MySQL is free and is very similar to SQL server, so I would suggest using that.

    Once you do that it is as simple as setting up a connection string in your database. This link from MySQL.com has all of the information you need to connect to a MySQL database:

    http://www.mysql.com/articles/dotnet/

  5. #5
    Fanatic Member rudvs2's Avatar
    Join Date
    Mar 2001
    Location
    NZ
    Posts
    935
    why not build a webservice that sits with the remote database and you just call methods on the webservice which querys the db and returns you dataset

    I have used this approach often its really nice and not too much slower

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2002
    Location
    Canton, GA
    Posts
    487

    still new...

    Could you explain a little more?

    Thanks,

    Anjari

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