Migrating Data Sources
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Recently, we migrated a DB from a 2008 SQL Server instance to a 2016 SQL Server Instance.
I need to scrape this new instance and I am curious as to the best path forward. All the objects have the same names, its just that the box that everything sits on is different. Do I need to just delete that whole data source in Connect? I am worried that I am going to lose my metadata around those tables.
I understand how to pull the new instance, just don't want to break the actual Connect instance.
I need some guidance.
Managing Partner
DCG Analytics
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Nope. Same DB, schemas, table names, etc. Just a new server.
Managing Partner
DCG Analytics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
In which case the new db will be loaded into the Connect catalogue as a new asset.
The Connect asset ID is created as a hash of concatenaded values - eg hostname/IP, schema name, table name, column name so if your new database is hosted on a different server, the asset will be given a new ID.
As for the metadata you may have entered manually for the old database, this can be exported from Connect as an XLS file, remapped to the new db and re-imported so nothing is lost.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@MichalM I have some follow ups on this.
I did the export of the entire object and this was all that was in the XML file:
<?xml version="1.0" encoding="UTF-8"?><xf3-dump xmlns="http://semanta.cz/schema/xf3/export"
What do I need to delete in order to remove that asset? If I recall I need to delete the stage? Is that correct?
Managing Partner
DCG Analytics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Do you want to delete the old DB entirely @Treyson ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
This does seem like very useful and necessary functionality @Treyson - especially since it's quite common to have to move a DB to a new server; and you absolutely don't want to lose the investment of all the metadata that the users have captured.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I realize the question from @Treyson was a long time ago but, for anyone else who needs to know how to completely and safely purge an asset, here are the steps:
- Make a backup - copy our 'ac_work' folder in your install directory
- From the GUI, find the folder asset page for the server in question
- As Admin, click “Remove”. This does a “soft delete”, where the records have been flagged as inactive in H2
- From Admin panel, remove “inactive entries”
- From Admin panel, remove the “Stage” corresponding to the source you removed (note: only do this when you want to permanently remove a source system definition from Connect)
- The order of this step doesn’t matter relative to steps 3&4 above
- From Admin panel, synchronize the “Job” that corresponds to the asset type. For DB source, this is “load-alteryx-db”
- This will get triggered automatically with every metadata loader execution, but doing it manually gives you a chance to test immediately
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
For anyone reading this, @James_First_Mile is the truth when it comes to Connect.
Managing Partner
DCG Analytics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Treyson, you're too kind. Hope all is well with you.
