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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:28:57+00:00 2026-05-27T07:28:57+00:00

So far in the website I have only found stored procedures to list all

  • 0

So far in the website I have only found stored procedures to list all the tables in a database, but what I really want to know is how to create a stored procedure in SQL Server to display all data of all tables in a specific database.

I don’t want to join the tables and then display a huge table, I want to create some kind of loop that takes the first table of the database, performs a

SELECT * FROM <Table>

query, and then continues with the next table of the database and so on until all tables are displayed.

I know it should be easy but I have never created a stored procedure before so I don’t know how to use the variables or go through the tables.

Thank you

  • 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-27T07:28:58+00:00Added an answer on May 27, 2026 at 7:28 am
    1. learn how to create a stored procedure
    2. learn how to use variables in a stored procedure
    3. Get a list of all the table names
    4. use a cursor to create a while loop on a list of all table names
    5. use dynamic sql on ‘select * from ‘ + @tablename
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want all of the validators in an ASP.Net 3.5 website to have a
I have a Sitecore site where I want to have website visitor accounts stored
I read a few websites and questions but all were far beyond my level
So far I have only been updated a view from within its controller. I
I have just started creating my first website, which is backed by a database
We have a Joomla website which we want to copy over to another host
My goal I would like to let browsers cache my whole website, but only
I would like to create a pagination system for comments in my website.So far,
I am developing a website using asp.net, So far so good. the functionality does
I'm working on the back-end of my website and I'm wondering how far 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.