Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Connecting to External Database

From within an Excel sheet I generate file containing SQL code , I want to
execute on an Oracle Database. In the current version of my program I use the
shell command to start an sqlplus.exe session. By attaching the connect
string and '@<File name', the script is executed. I would like to eliminate
starting the sqlplus.exe and logging on to the database for every file I
generate by opening a session to the database only once and using this
connection to execute all the script files.

How can I achive this?

Thanks in advance Geert Engbers
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 339
Default Connecting to External Database


"Geert" wrote in message
...
From within an Excel sheet I generate file containing SQL code , I want to
execute on an Oracle Database. In the current version of my program I use

the
shell command to start an sqlplus.exe session. By attaching the connect
string and '@<File name', the script is executed. I would like to

eliminate
starting the sqlplus.exe and logging on to the database for every file I
generate by opening a session to the database only once and using this
connection to execute all the script files.

How can I achive this?

Thanks in advance Geert Engbers


You may be able to call ADO from within VBA code. I suggest you google Excel
VBA ADO or excel macro ADO.
Here's a link that may help you to get started:
http://support.microsoft.com/default...b;en-us;278973

/Fredrik


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically connecting to a remote database Tony Excel Discussion (Misc queries) 0 April 14th 08 05:35 PM
External Database Source ericat04 Excel Worksheet Functions 0 April 11th 07 11:32 PM
Links to External Database Rubble Excel Discussion (Misc queries) 0 July 20th 05 10:44 PM
DSUM with External Database Amin Joseph Excel Worksheet Functions 0 July 13th 05 02:36 AM
Excel Connecting to SQL Server Database - Need your Help Rajesh G Excel Programming 2 February 27th 04 08:01 PM


All times are GMT +1. The time now is 12:35 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"