Solved

Creating VB App and Oracle Transfer to SQL Server

Posted on 2002-07-20
4
208 Views
Last Modified: 2010-05-02
Hello all. I have a question and I want the best practice that I should use to do this.  I need to run some code against a Oracle database to populate some tables.  After this is completed I need to transfer all this data to SQL Server.   The oracle population has to be completed via VB Code.  My initial thought was to run a VBS file or something then schedule a DTS transfer from Oracle to SQL of the tables needed.  Do a truncate on the tables in SQL then a DTS transfer.  This would be scheduled to run once a night.  However, I also need a VB exe to allow the user to enter certain criteria based on a Date and then manually click to run the same process anytime they want.  Do you think what I should do instead is write all ADO code to grab from Oracle and insert to SQL via all VB Code instead?  Is there a way for me to have a VB exe that has a button but also I could schedule at night to run starting at a certain procedure call so it would automatically run with a default date I provide it, Instead of creating 2 seperate exe programs.  Any suggestions would be appreciated.
0
Comment
Question by:InvisibleMan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 7167125
Please maintain your open questions:
DATABASE SIZE SHRINKING AND LOG FILE QUESTION Date: 03/05/2002 11:06AM PST
http://www.experts-exchange.com/mssql/Q_20273575.html (This question should be deleted as there are no contributions)
MAPPING DRIVE LETTER ON STANDALONE PC IS THAT POSSIBLE? Date: 02/22/2002 09:14AM PST
http://www.experts-exchange.com/networkgen/Q_20269959.html

Thanks,
Anthony
0
 

Author Comment

by:InvisibleMan
ID: 7167210
How do I delete a question Anthony?
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 7167212
Try posting a message in Community Support (http://www.experts-exchange.com/commspt/)

Anthony
0
 

Accepted Solution

by:
paulll earned 50 total points
ID: 7168304
I have done this in 2 ways.  Maybe one will work for you.

1 Have a form pop up for the user to enter values.  If no values are entered within a time period set by a timer on the form, close the form.  When the procedure that called the form gets no return value, set it to the default.

If ReturnedValue = "" Then
    'use default values
End If

--------------------------------------------------------

2 Have the program check for a command line parameter to override the default.

temp = Command$
If Len(temp) then
    'set varables to values in temp
Else
    'use default values
End If
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question