Add SQL loader Reference to VB.net project

Posted on 2010-01-12
Medium Priority
Last Modified: 2012-05-08
What do I need to add to my VB solution to be able to execute SQL loader within my windows application?
Question by:jln1980
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
  • 3
  • 2
LVL 96

Expert Comment

by:Bob Learned
ID: 26303914
That is a pretty vague question.  What database are you using?  What do you mean by "SQL Loader"?

Author Comment

ID: 26304713
I am using Oracle. I want to be able to automate the running of this application sqlldr.exe from a windows app.
LVL 96

Expert Comment

by:Bob Learned
ID: 26305274
You should be able to use the Process.Start to execute any executable, like SQLLDR.EXE.


Process.Start Method
Imports System
Imports System.Diagnostics
Imports System.ComponentModel

Namespace MyProcessSample

    Class MyProcess

        Public Shared Sub Main()
            Dim myProcess As New Process()

            Try                ' Get the path that stores user documents.

                myProcess.StartInfo.UseShellExecute = False
                ' You can start any process, HelloWorld is a do-nothing example.
                myProcess.StartInfo.FileName = "C:\\HelloWorld.exe"
                myProcess.StartInfo.CreateNoWindow = True
                ' This code assumes the process you are starting will terminate itself. 
                ' Given that is is started without a window so you cannot terminate it 
                ' on the desktop, it must terminate itself or you can do it programmatically
                ' from this application using the Kill method.
            Catch e As Exception
            End Try
        End Sub 'Main
    End Class
End Namespace

Open in new window


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.


Author Comment

ID: 26305628
Im hoping that there is a DLL that i can add to my application that will give me addtional options over just running the exe.
LVL 96

Accepted Solution

Bob Learned earned 1000 total points
ID: 26305821
I don't use Oracle anymore--SQL Server these days, so I don't have any knowledge of DLLs that you could use.  Hopefully, adding the Oracle zone will give you a better class of expert, that would know that.

I see references like this, that talk about calling the .exe:

calling SQLLDR from C# (ASP.NET)
LVL 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 1000 total points
ID: 26510115
there is no dll for that, just the exe...

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
Via a live example, show how to take different types of Oracle backups using RMAN.
Suggested Courses

752 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