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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:26:50+00:00 2026-05-25T14:26:50+00:00

What is the right order in which we should create SQL Server objects? (This

  • 0

What is the right order in which we should create SQL Server objects? (This is for the installer order)?

I assume that the right order is

  1. Schemas
  2. Tables
  3. Views
  4. Functions
  5. SPs

But however, I am confused, what if a View references a function? And, what if a function references a View?

  • 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-25T14:26:51+00:00Added an answer on May 25, 2026 at 2:26 pm

    There’s no “generic” order in which you can create objects (you missed e.g. a CHECK constraint on a table that may use a function). If you want it 100% right, you need to analyse your specific set of database objects and ensure that they’re created in an appropriate order, by analysing the individual dependencies.


    As a more straightforward example, views can access table-valued functions. But table-valued functions may be based on views. So doing all of either first wouldn’t always work.


    Stored procedures can be created quite early in the process, thanks to Deferred Name Resolution. This is the only positive thing to be said for it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to rearrange column order in sql server ? right now my column is
Right now I'm using JFreeChart in order to create a dynamic chart. However the
Which is the right MVC way to create custom form control (like custom drop
can't seem to get the syntax right in order to pass the AttID variable.
I'm having troubles with the order of my code in my program. right now
Right now, I keep all of my projects on my laptop. I'm thinking that
Right, I know I am totally going to look an idiot with this one,
I'd like to create a slider like in these image galleries. It should show
Let's pretend that we want to build an eBay like app in which we
We have two tables, ActivityForm and Field which are given a many-to-many relationship via

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.