Results 1 to 2 of 2

Thread: ADO DataSource

  1. #1

    Thread Starter
    Addicted Member Abrium's Avatar
    Join Date
    Feb 2007
    Location
    The Great State of Texas
    Posts
    205

    ADO DataSource

    Hey All,

    Needing pointed in the right direction. I am fooling around with data sources and connections per homework and what I'm looking for is creating an SQL DB connection during runtime.

    I know that you can add a data source in design by going through the Wizard but what if one would want to create the connection, adapter, and dataset during runtime? Where would you start?

    I have cruzed the net looking for some form of a tutorial to just get me started, I don't need it all completely outlined but I need to know where and how to start and what I need to declare the connection, string, and dataset as. I have seen a lot of information using VB6 but nothing that I come across seems to work.

    My basic questions are:
    Do I have to create a seperate class for the database connection?
    How do I delcare the nuts and bolts of the connection,adapter, and dataset?
    If a seperate class isn't required then where is the most realistic place these items would be created?

    Thanks guys, I'm going to keep looking for some solid information on this while I wait for some returns. The worst suck job thing about it all is my current "advanced" book doesn't even walk you through manually creating any type of database interaction, it only shows the datasource Wizard windows. I'm starting to think that this is the only way.

    Thanks again.
    Abrium
    Asking the beginners questions so you don't have to!
    If by chance hell actually froze over and I some how helped you... Please rate.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: ADO DataSource

    Most, if not everything you need to know is probably answered here.... http://www.vbforums.com/showthread.php?t=337051

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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