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 4241610
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:19:52+00:00 2026-05-21T03:19:52+00:00

I have looked through the SQL Server questions and answers and I didn’t see

  • 0

I have looked through the SQL Server questions and answers and I didn’t see an answer to this one, if it is out there and I’ve missed it, please let me know.

Here’s the situation:

I write stored procedures and views that are then run as reports (using Crystal) – this is not the problem. Before I am able to release the reports into Production, I need to have the end users run the reports and check them for errors, etc. In a perfect world, I would have a frozen test environment, but I don’t live in a perfect world. Every night everything I place into my test environment is wiped out and every morning anything that is in end user testing needs to be re-added. This means that when I come in the first thing I do is run all of the stored procedure, along with a script that unhides the reports in the program we use.

What I’d like to be able to do is to write a package that would find all of the stored procedures in a folder and execute them to add them to the database and, then, run the script that unhides the reports.

I know how to set up an SSIS package to run a stored procedure, but I don’t know how to set one up that would run an ever changing list of stored procedures. Is this even possible? And, if it is, how do I go about starting this up?

I should note that while I have more then 10 years of query writing experience, I haven’t used VB since VB 6.0 and I very new to the SSIS and SSRS world.

Thanks in advance!

  • 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-21T03:19:52+00:00Added an answer on May 21, 2026 at 3:19 am

    Good old nt shell will do the trick. Run this statement in the folder containing the files.

    for %A in (*.sql) DO sqlcmd -i %A -S <myServer> -d <myDb> -E
    

    if you want to include it in a batch file it could look like

    @echo off
    for %%A in (*.sql) DO sqlcmd -i %%A -S <myServer> -d <myDb> -E
    
    sqlcmd -i script_to_update_config.sql -S <myServer> -d <myDb> -E   
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I looked through the questions here but didn't find one that suited my case.
I have looked through the solutions and haven't really found one. I am getting
Ok.. I have looked through this site and just can't seem to find the
I've looked through several posts but I haven't quite found any answers that have
i know, similar questions have been asked, and i've already looked through everything i
I've looked through several other questions here and on other sites regarding this issue,
I have googled this, searched this, looked through SO and other sites (I've been
Using Studio 2008, C#, SQL Server 2005, Winforms. I've looked all over this site
I have looked through the solutions on stackoverflow and none of them seem to
I have looked through several sites for any useful documentation and have come up

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.