Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3960638
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:52:40+00:00 2026-05-20T02:52:40+00:00

I hope I am asking a reasonably easy question – just trying to save

  • 0

I hope I am asking a reasonably easy question – just trying to save myself some time to be honest. 🙂

All I want is to call a PL/SQL procedure from a SQL Server job.

I already have the connection string in a registry string and I have the procedure built.

I dont know if I can just specify T-SQL and grab the registry setting somehow, but I suspect that I need an ActiveX script (if this is possible).

Does anyone have this (admittedly quite specific) code snippet handy?

Thanks in advance!

Frosty

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T02:52:41+00:00Added an answer on May 20, 2026 at 2:52 am

    got there in the end. This worked for me under an ActiveX job:

    Const HKEY_CURRENT_USER = &H80000001
    Const HKEY_LOCAL_MACHINE = &H80000002
    
    Dim oConnection, oRegistry, sConnectionString, sPlsqlCall, sRegistryKey, sValueName, sParam1, sParam2
    
    ' Get connection string from registry
    Set oRegistry = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
    sRegistryKey = "Software\OracleConnectionString"
    sValueName = "Value"
    oRegistry.GetStringValue HKEY_CURRENT_USER, sRegistryKey, sValueName, sConnectionString
    
    ' Set up PLSQL query
    sPlsqlCall = "my_package.my_procedure(" & sParam1 & ", " & sParam2 & ")"
    
    ' Call PLSQL
    Set oConnection = CreateObject("ADODB.Connection")
    oConnection.ConnectionString = sConnectionString
    oConnection.Open
    oConnection.Execute sPlsqlCall
    
    oConnection.Close
    Set oConnection = Nothing
    Set oRegistry = Nothing
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I hope I'm not being too long winded in this question, I just want
I hope I am not asking a too obvious question here. For my current
I hope I'm not using stackoverflow.com in the wrong way: asking this question! Recently
I hope I am asking this correctly... What I am looking to do is
I'm neither good nor experienced about asking questions so i hope I'm not doing
I hope I got the relevant code in here. I have some problem when
I have to design quite a lot of html email. The way I do
I'm writing a TCP server that functions very much like a chatroom and came
I know I can modify what default data entry areas show up when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.