Results 1 to 4 of 4

Thread: console app or windows app [Resolved]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    Austin
    Posts
    397

    console app or windows app [Resolved]

    not sure what app to use but all i need to do is look in a network folder once a day to see if a files exist and call a DTS package to import the file into a SQL Server table.
    Last edited by texas; Jan 13th, 2006 at 12:19 PM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: console app or windows app

    Doesn't sound like you need a WinForms app. A console app that is invoked via a scheduled task would probably be your best bet. You could create a Windows service if you want it to be running constantly, but I'd go with the console and the schedule.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    Austin
    Posts
    397

    Re: console app or windows app

    is there any other way of getting data into a SQL table other than calling a DTS package?

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

    Re: console app or windows app

    Sure... your app could open the file, read the contents then use SQL to insert the data into the database..... BUT.... if it's a large file ... DTS is much more efficient and uploading volumes of data than simple SQL inserts.

    -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