How can we help you today? How can we help you today?
David.42.Hall
The "CREATE TABLE ... AS FILETABLE" syntax is the script that SSMS generates. That's the way I originally generated the OrganizationFile table. It was and is a standard FileTable from the beginning. None of the red-gate products generate this script, nor should they. I suspect that the reason is because the exact names of essential elements of the FileTable are hidden (and inconsistent) when that command is used. Specifically the names of the various table constraints and self-referencing foreign key appear to be dynamically generated with that command, so it's not surprising that the comparison engines treat them like conventional tables. In fact, I would expect just that so it can accurately compare the individually named components. Have you actually tried reproducing the issue? It should be simple to reproduce with these steps: 1) Create a DB with a single file table generated by using the "CREATE TABLE ... AS FILETABLE" syntax in SSMS. 2) Create a SQLConnect project and sync it to this new database. 3) Save the SQLConnect project in Subversion 4) Use SQL Source Control to put the new database itself in source control using the same subversion repository URL as the SQLConnect project. 5) Note that SQL Source Control shows the database (specifically the file table) as being out of sync when it really isn't. Are you able to reproduce that scenario? Let me know if you need more info from me. Thanks, David / comments
The "CREATE TABLE ... AS FILETABLE" syntax is the script that SSMS generates. That's the way I originally generated the OrganizationFile table. It was and is a standard FileTable from the beginning...
0 votes