|
-
Mar 24th, 2003, 12:56 PM
#1
Thread Starter
Hyperactive Member
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
-
Mar 24th, 2003, 12:58 PM
#2
what kind of database. If it is Access, you cant do that as far as I know.
-
Mar 24th, 2003, 01:54 PM
#3
Thread Starter
Hyperactive Member
yea...
yea it's an access database... but its not 100% necessary to use access....
Anjari
-
Mar 25th, 2003, 08:37 AM
#4
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/
-
Mar 25th, 2003, 11:02 PM
#5
Fanatic Member
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
-
Mar 26th, 2003, 11:16 AM
#6
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|