-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
console error #77
Comments
It seems to fail when executing the query from here: SyncChanges/SyncChanges/Synchronizer.cs Lines 206 to 219 in 78c21cb
What happens if you execute the following query in SSMS (using the same login as in the select TableName, ColumnName, iif(max(cast(is_primary_key as tinyint)) = 1, 1, 0) PrimaryKey from
(
select ('[' + s.name + '].[' + t.name + ']') TableName, ('[' + COL_NAME(t.object_id, a.column_id) + ']') ColumnName,
i.is_primary_key
from sys.change_tracking_tables tr
join sys.tables t on t.object_id = tr.object_id
join sys.schemas s on s.schema_id = t.schema_id
join sys.columns a on a.object_id = t.object_id
left join sys.index_columns c on c.object_id = t.object_id and c.column_id = a.column_id
left join sys.indexes i on i.object_id = t.object_id and i.index_id = c.index_id
where a.is_computed = 0
) X
group by TableName, ColumnName
order by TableName, ColumnName Also, which version and edition of SQL Server are you running? |
I got error message like this by sql server 2008 R2
|
Does this error message occur when you run the query in SSMS? |
Got it. It's the use of |
@dry11orange You can just grab the latest release from here: https://github.com/mganss/SyncChanges/releases/tag/v2.0.278 |
I tried like this
./SyncChanges.Console.exe ../test/config.json
config.json like this
And error like this
I have no idea what to do
The text was updated successfully, but these errors were encountered: