We have a view definition which internally uses other 5 views. When we use a RoundhousE to execute the database scripts, these view scripts are getting executed in alphabetical order. Hence out of these 5 views, which are used inside the main view, only 3 views are getting executed ahead of the main view and rest 2 views are not yet created and hence the main view script throws error. How can we solve this apart from renaming the views?
Can we create a view which refers to a view which is not exist at that point of time?
103 views Asked by Rajesh Bhat At
1
There are 1 answers
Related Questions in SQL-SERVER-2008
- Why does the following script throw database still in use when selecting the master database first?
- Return Duplicate Rows
- SQL Data entry - finding sequence to enter info
- Why is this query in SSMS showing columns/tables as numbers?
- Query from multiple tables based on the table name?
- How to Let Python Connect to a SQL Server Database
- Need to fetch Minimum value for Each Id and make the BidSuccess column to 1
- Spring Boot Scheduled Annotation Job Issue
- Use different WHERE clause based on condition?
- Error when inserting special characters such as Ñ and accents á, é, í, ó, ú. using BULK OPENROWSET from python
- Delete all records except the max value of a group
- How to use SQL Server stored procedures in React js express server
- Loop through date in SQL Server and exclude the dates within a range of one week
- Find amount greater than the average amount
- Update trigger - both INSERTED and DELETE hold same value after update
Related Questions in VIEW
- Opening sheet in SwiftUI view
- Get json field value in sqlite model from view django
- I don't understand which databases are invalid
- View is not refreshing
- Changes to my model/viewmodel are not charging what's on my view
- How to create a text sticker view in swift, like in Canva App, which is resizable as per the text content in it
- SQL Tranformations in view or stored procedure?
- SQL query getting too slowly when using IIF in a view column that is using aggregate results from a previous view. see below example for a clarity
- How to add focus in AndroidView field
- Angular 17 does not update view using setInterval with NG0500 error in console
- How to use std::ranges::set_symmetric_difference over a non sorted range?
- AUTH_USER_MODEL refers to model 'Socialmedia.User' that has not been installed
- Is it possible to show columns really used in a view
- Can't render views of html in django
- Entity Framework Core add relationship between view and standard model objects
Related Questions in ROUNDHOUSE
- How to skip one-time scripts whose entry is already present in RoundHouse.ScriptsRun table?
- unable to create database in postgresql using round house tool
- RoundhousE Migration Fails On Valid SQL On SQL Server
- Installing Oracle Client Tools - Docker, Roundhouse, Oracle
- What causes NuGet to restore package to slightly different folder structures?
- TeamCity SQL Project : Microsoft.Data.Tools.Schema.SqlTasks.targets was not found
- Cannot find data type 'UserDefinedType' despite being declared
- Run RoundHouse scripts based on object dependencies
- ZombieCheck Error when running RoundhousE
- Postgres unencrypted keyword is no longer supported
- Migrate existing SQL Server database using roundhouse?
- Can we create a view which refers to a view which is not exist at that point of time?
- Application is unable to connect to database
- Using RoundhousE with dll File
- How to get values from an executed batch file
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Either in the wiki, or in the source docs, I believe we cover this exact scenario. If not, we should add it there.
The solution when you have a dependency on order is to rename the files (not the views). Typically you would put the file names in order based on "0000_" (e.g.
0001_viewname.sql,0002_viewname.sql, etc) at the front of the view name, but you could also just move the name of the main view to "z_" to place it after the other views.I know you asked how you can solve this apart from renaming the view files, but renaming the files is how you resolve this issue.