Results 1 to 2 of 2

Thread: typed dataset

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    London
    Posts
    678

    typed dataset

    Hi,
    I have created a project which uses typed datasets.
    BUT I used the wizard to create the sqlConnection and the sqlDataadapter.
    Do you know if there is a good site that shows how to do this (i.e. a small project) which uses typed dataset but using code to create the connection and dataadapter?
    Thanks

  2. #2
    Addicted Member
    Join Date
    Nov 2005
    Posts
    183

    Re: typed dataset

    Is this what you're looking for?

    VB Code:
    1. Dim DBPath As String = = Application.StartupPath & "Database\Database1.mdb"
    2.  
    3.             If Connection2.State <> ConnectionState.Closed Then Connection2.Close()
    4.  
    5.             Connection2.ConnectionString = "[b]Data Source=" & Chr(34) & DBPath & Chr(34) & _
    6. "[/b];Jet OLEDB:Engine Type=5;Provider=" & Chr(34) & "Microsoft.Jet.OLEDB.4.0" & Chr(34) & ";"
    7.             Connection2.Open()
    8.             da1.Fill(dsTable1.Table1)
    Last edited by DragonQ; Dec 5th, 2005 at 05:21 AM.

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