What is the best way to make an entire copy of an SDE geodatabase to a "test" SDE geodatabase?
The best method will be to do a Full database backup and restore.
Or else if you already have the test GDB created, you have got a few choices: Overview of copying geodatabases—ArcGIS Help | ArcGIS Desktop
Yes, I do have a TEST enterprise geodatabase already built.
But I am looking to have an exact duplicate, for testing purposes. I have read through the overview of copying and that doesn't seem to apply.
Should I delete the TEST enterprise geodatabase and do the SQL backup and restore?
Yes, that should help and be quick.
Which kind of Database (Oracle, SQL Server,etc) are you working with?
so just backup that SQL Server database and restore it on another Test instance and that should give you what you needed. An exact copy.
Can you explain "and restore it on another Test instance" ?
So do I need another existing instance, or am I creating the instance with restore?
An "instance" in SQL Server is a installation of SQL Server. Within that SQL Server instance, you can have multiple databases (as long as they do not have the same name). I think what Asrujit SenGupta is saying is to restore to the new SQL Server instance.
Example: Machine1\SQLServer to Machine2\SQLServer
Database Engine Instances (SQL Server)
I'm still new to SQL; Does this mean that I have to move off the current instance? Would it be possible to make a duplicate (TEST) database on the same instance? Is instance synonymous with machine? Can I have two instances on the same machine?
What would be the PROs & CONs of simply backing up the production database, and restoring to different named database (say, as TEST) in the same instance?
You can restore with a different name, but that is not supported with ArcGIS. You will not be able to connect from ArcGIS Desktop.
Asrujit SenGupta and George Thompson's Blog
Since this is true (in SQL Server backup and restore a DB will not able ArcGIS to connect to it) what should be the way to make a copy of a full geodatabase (datasets, feature classes, tables, RCs, subtypes, domains)?
You CAN connect to a restored SQL Server DB as long as the name of the DB is UNCHANGED. In these cases you must restore to a different instance of SQL Server or remove the original DB and then restore to the original instance.
You can make a copy via Copy/Paste in Catalog once you reconcile/post/compress and verify that any versioned data is out of the delta tables.
Don't mind me jumping in mid thread here. I am trying to understand if I can
Is there something when changing the name temporarily that will corrupt my egdb or is it just connecting via Arc with new name that doesn't work?
I need to do some basic db operations outside of Arc. Any idea if the concept of having a temp name , workign within SQL will work in this scenario?
Yes, that should work.
But I am assuming, that you are not going to drop Views which are Registered with the Geodatabase.
Its just connecting via, that won't work. Otherwise it won't corrupt anything.
Good day. Thanks for your response. I'm going to have to show my lack of db understanding, though. Well, they might be registered with the Geodatabase? Other than just being in my db under the views section in SSMS,is there another way I can tell if they are "registered"?
I have a feeling this route is not going to work for me either.
Did you create these Views? How were they created?
Views created from the Database end or using the "Create Database View" tool, are not registered with the Geodatabase automatically. You can modify them freely from Database end.
To Register a View with Geodatabase, you need to use the Register with Geodatabase—Help | ArcGIS Desktop tool.
Register a table or view with the geodatabase—ArcGIS Help | ArcGIS Desktop
New at 10.5 - Registering a database view with the geodatabase
I did not create the views and they were created via SSMS, so not automatically registered it would seem. These were created by developer who is no longer with us and I'm sure he did not go into the world of GIS and register them. Well as sure as I can get since he was terrified of the idea of needing to use ESRI tools when he was helping me. haha.
I've looked at these links (THANK YOU!) and looked back at the views via Catalog. The option to Register is still clickable, so I'm going to go ahead and assume they are in fact not registered. I will try to verify on an old Test/Dev setup if I can get some time to bring it back to life.
Otherwise, it sounds like renaming temporarily will not corrupt and I can end up with the same old name and full functionality. Yeah? fingers crossed
Use simple Copy\Paste OR Export using XML Workspace documents.....that will copy everything you needed.
Thank you for the suggestion. My hard situation came up because I was told not to reconcile due to editions we are working on and was having problems with old domains in some tables so did a DB restore and backup on the server side but since we are working on a single instance could not use the same name for the "clone" DB and then have faced the problem of not able to connect ArcGIS to that DB. We have cleaning tables and domains I was able to export as XML.
That is understandable but there are limited options in that instance.
Ok, I think I understand it now. Thank you for you help.
Retrieving data ...