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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:40:15+00:00 2026-05-26T07:40:15+00:00

Currently my development environment is using SQL server express 2008 r2 and VS2010 for

  • 0

Currently my development environment is using SQL server express 2008 r2 and VS2010 for my project development.

My question is like this by providing a scenario:

Development goal:

I develop window services something like data mining or data warehousing using .net C#.
That meant I have a two or more database involved.

my senario is like this:

I have a database with a table call SQL_Stored inside provided with a coloum name QueryToExec.

I first idea that get on my mind is written a stored procedure and i tried to came out a stored procedure name Extract_Sources with two parameter passed in thats ID and TableName.

My first step is to select out the sql need to be execute from table SQL_Stored. I tried to get the SQL by using a simple select statement such as:

Select Download_Sql As Query From SQL_Stored
Where ID=@ID AND TableName=@TableName

Is that possible to get the result or is there another way to do so?

My Second step is to excecute the Sql that i get from SQL_Stored Table.Is possible to
to execute the query that select on the following process of this particular stored proc?
Need to create a variable to store the sql ?

Thank you,Appreciate for you all help.Please don’t hesitate to voice out my error or mistake because I can learn from it. Thank you.

PS_1:I am sorry for my poor English.

PS_2:I am new to stored procedure.

LiangCk

  • 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-26T07:40:16+00:00Added an answer on May 26, 2026 at 7:40 am

    Try this:

    DECLARE @download_sql VARCHAR(MAX)
    Select
        @download_sql = Download_Sql
    From
        SQL_Stored
    Where
        AreaID = @AreaID
        AND TableName = @TableName
    
    EXEC (@download_sql)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I dont currently have access to a SQL server cluster for development (one using
Our company currently has seven dedicated SQL Server 2008 servers each running an average
I'm currently using XAMMP for mac (http://www.apachefriends.org/en/xampp-macosx.html) for development, however this package hasn't been
Hello my friend is currently development an application using SOA Architecture, He sent me
An application currently in development has the requirements for using MS Word to perform
How can I modify this: /services/type/single_dwelling/ to this: /ajax/services/single_dwelling/development Currently I have: linkUrl =
I currently do all development work in VB.NET 2008, winforms; but within 18 months
My team currently has a development web/database server and a live deployment web server
I am using MAMP (LAMP stack development environment) to send emails using PHP. The
I am currently trying to set up a development environment for learning Ruby. The

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.