Microsoft SQL Server 2005.
I have quite a lot of experience with day to day writing of SQL scripts, but am less familiar with SQL Admin tasks.
I have inherited a couple of 3rd party systems that require databases to be copied at the end of financial year. These databases are named "data_1415","data_1516" etc. These all exist on the same server.
This all works fine. However at year end I will need to copy / rename the database and then alter all the views and stored procedures in this new version to access the new database name.
So .. is there a more efficient method of updating multiple views/stored procedures?
I also wondered if using synonyms might help, but cannot get these to work unless they point to a specific table, which defeats the object.
In an ideal world I would simply name the databases "This Year" and "Last Year" and avoid doing any changes, but the users want to retain the current naming as it avoids any confusion in selecting the correct database in the 3rd party software.
SQL Managing Database copies at change of year
46 Views Asked by MiguelH At
0
There are 0 best solutions below
Related Questions in SQL-SERVER
- Dynamic query creation with Array like implementation
- 'pyodbc.Cursor' object has no attribute 'callproc', mssql with django
- Driver com.microsoft.sqlserver.jdbc.SQLServerDriver claims to not accept jdbcUrl, ${SPRING_DATASOURCE_URL}: GitHub Actions
- PHP Laravel SQLServer could not find driver
- Upsert huge amount of data by EFCore.BulkExtensions
- How to locate relevant tables or columns in a SQL Server database
- Cannot delete SQL datafile (.mdf) as its currently in use
- Writing query in CTE returning the wrong output
- Group By Sum and without Group by sum Amount is different
- plan_handle is always different for each query in SQL Server Cache
- Adding a different string to a table fails
- The specified data type in the EF modelBuilder doesn't correspond to the one that is created
- SQL71561: SqlComputedColumn: When column selected
- How to Solve Error Associated with Trusted Authority
- SQL Server Data Model and Insert Performance
Related Questions in T-SQL
- Dynamic query creation with Array like implementation
- How to locate relevant tables or columns in a SQL Server database
- Calling a REST API from SQL Server
- How do I use Poor Man's T-SQL Formatter in SSMS v20?
- sp_executesql Not Working with a Parameters search nvarchar
- Using MSXML2.ServerXMLHTTP with SQL Server status, statusText and responseHeader are all null
- tsql functions like REPLACE() failing in azure data factory pipeline connected to salesforce
- GROUP BY with multiple nested queries T-SQL
- How to get the superset of all XML paths from an XML column in a table
- Split Invoice Total into multiple Rows but Split always equals Total
- Conversion failed when converting date and/or time from character string while ordering by date or string
- SQL How to add a conditional to the aggregate function within a pivot table?
- Update the column which has sequence number dynamically
- SQL query to extract incremental data from a table in SQL Server
- Convert Date format in a table
Related Questions in SQL-SERVER-2005
- Sqlcmd can connect to old SQL Server 2005, but connection string pyodbc with Driver 18 from Microsoft does not work
- Possible reasons for an SSIS conditional split into the same destination table?
- Replace occurrences of characters in a string
- What does the value 30 indicate in the type column in the MSrepl_commands table?
- What is the fastest way to extract data from SQL Server 2005 using PowerShell 7?
- Auto applied migrations using EF Core 7.0.14
- Need a SQL Query for Getting matched and not matched Records
- SQL Server query returns multiple line results instead of returning 1 line
- Write error with spark.write against SQL Server table (via JDBC Connection)
- Extract data using multiple conditions for the column value?
- MS SQL SERVER 2005 temp db log file size is increasing
- How to get the sum of a column for the current month?
- Cannot connect to server - An existing connection was forcibly closed by the remote host
- MS SQL Sort Alphanumeric values (1, 2, 3, 5, 6, 7, 9, 10, 4a, 8a, 4b, 8b)
- Is there a way to Manually unlock the Opentext Exstream Design Database?
Related Questions in SSMS-2005
- SSMS: Bit column defaults to Expression when Group By is desired
- SQL Managing Database copies at change of year
- SSMS Run a specific Query in SQL Query Editor Based on Highlighted Table / View
- How to get DOMAIN name from SQL Server?
- SQL Server Compact Edition and SQL Server 2008 Management Studio
- SQL Server Management Studio equivalent for CTR+L keyboard Shortcut from Visual Studio
- Relationship Diagram / Schema with selected tables
- SQL Server 2005: Arithmetic overflow error converting int to data type numeric
- Cannot connect to Reporting Services 2005 Server from SSMS
- cannot connect to pc-name\SQLEXPRESS
- Regex find not working in SSMS query window?
- Error while connecting to external SQL Server with an IP using SQL Management Studio 2005
- Integrating CVS with SSMS 2005?
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)
Popular # Hahtags
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?