I want to do something similar to a Linked Server but i want to see SVN logs using SQL Server,
Currently I have 2 different databases, the first one running on SQL Server 2012, the second on MySQL 5.5 (an old one), both of them have on their main tables a field called "BugID", and i was able to create a report similar to this:
SELECT *
FROM OPENQUERY(
DB1_MYSQL_LINKEDSERVER, 'SELECT field1, field2, bugId FROM some_mysql_table'
) AS mysql_data
JOIN OPENQUERY(
DB2_SQLSV_LINKEDSERVER, 'SELECT field3, field4, bugId FROM some_sqlsv_table'
) AS sqlsv_data ON mysql_data.bugId = sqlsv_data.bugId
However, now i want to cross that information with SVN LOGS, something like this:
JOIN OPENQUERY(
DB3_SVNLG_LINKEDSERVER, 'SELECT log_message, bugId FROM svn_logs'
) AS svnlg_data ON svnlg_data.bugId = sqlsv_data.bugId
As a workaround I think I can execute svn log --xml
using cmd
and populate some table from the XML file, however that seems to be a lot of work, so I'am wondering if there's a way to do this transparently.