Results 1 to 3 of 3

Thread: Get data from SQL Server DB and write to Access DB

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2004
    Location
    Sydney
    Posts
    51

    Get data from SQL Server DB and write to Access DB

    Hi,
    I work in VB.NET and am not familiar with VB and record sets.My problem is,

    I need to

    1=> Read data from a SQL Server database using VB 6.0
    2=> Write the data to an Access database.

    I have done the first part, i have read the SQL Server DB and have the data in a recordset, now how do I write it into an Access DB?

    In know if I try it myself I will be able to figure it out, but the time is very less and Iam also working on another project!

    Thanks in advance.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Get data from SQL Server DB and write to Access DB

    If you can read the data from SQL already then all you need is some INSERT INTO sql statements to add the records to the Access db.
    Are you using ADO? Are you able to connect to Access?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    Member
    Join Date
    Dec 2004
    Location
    Sydney
    Posts
    51

    Re: Get data from SQL Server DB and write to Access DB

    Yep Iam using ADO, but have not connected to Access DB yet.

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