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

  • SEARCH
  • Home
  • 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 this question is not 'controversial' - I'm just basically asking - has
First time using this service for a question. I hope I am not asking
First of all this is the first time I am asking a java question
Hope you guys don't mind me asking this question, but I find myself at
this is my first time asking a question here so I hope I am
Hope you all are fine and rocking your code editors. My question is how
I hope I'm not breaking any rules by asking a question that pertains to
I'm very new to xml so I hope I'm not asking any silly question
trying to improve my question asking etiquette, so I'll state my aim, ask my
I hope I'm not asking this in the wrong place, I'm just lost and

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.