Red Gate forums :: View topic - Export to XML shortens some names
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Dependency Tracker 2
SQL Dependency Tracker 2 forum

Export to XML shortens some names

Search in SQL Dependency Tracker 2 forum
Post new topic   Reply to topic
Jump to:  
Author Message
CoderDennis



Joined: 24 Jul 2012
Posts: 1

PostPosted: Tue Jul 24, 2012 7:48 pm    Post subject: Export to XML shortens some names Reply with quote

When I export to XML, some of the UsedBy objects are appearing without the full name. They show up like this:

Code:
<Object>[ServerName].[DatabaseName]..[PK_ArticleTopics]</Object>


Is there a way to do the export and get the full names of these objects instead of the ".."?

Actually, if the export could strip off the [ServerName].[DatabaseName] portion of all the object names, that would be even better. Since it's the same for all objects in my export, there's no need for that to be listed hundreds of times within the XML.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6641

PostPosted: Thu Jul 26, 2012 1:33 pm    Post subject: Reply with quote

Thanks for contacting Red Gate.
I don't think this is a bug - it looks like this happens when SQL Dependency tracker doesn't have enough information to work out who the object owner or schema it belongs to. On a normal, single-database project I did not see this behaviour, but if I added a second database, I start to see it.

For instance, I have to databases:
CrossDatabaseDependencyTest1
CrossdatabaseDependencyTest2

CrossDatabaseDependencyTest1 has a trigger:
Code:
CREATE TRIGGER [dbo].[trigger]
on [dbo].[table1]
FOR INSERT, UPDATE
AS
SELECT data from CrossDatabaseDependencyTest2..Table1


The xml will say this about the dependent object:
Quote:

<Object>
<Name>[server].[CrossDatabasaDependencyTest1].[dbo].[Trigger]</Name>
<Type>Trigger</Type>
<Uses>
<Object>[server].[CrossDatabasaDependencyTest1].[dbo].[Table1]</Object>
<Object>[server].[CrossDatabasaDependencyTest1].[dbo].[dbo]</Object>
<UnresolvedObject>[server].[CrossDatabaseDependencyTest2]..[Table1]</UnresolvedObject>
</Uses>
</Object>
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group