Hi,
I’m creating nupkgs manually using SQLCI. Nupks generated fine for several databases, but one database is failing with the error “Could not find server ‘sql2’ in sys.servers.”. I am used to seeing this if a linked server has not been correctly set up. But, in this case I have no idea where I should go to correct this. Can you help? I would like to skip this validation, if that is possible.
My output:
C:\Windows\system32>sqlci Build --scriptsFolder=“C:\sandbox\databases\SQL15\mt” --outputFolder=“C:\sandbox-databases\SQL15\mt” --packageId=“mt” --packageVersion="4.47"
sqlCI.exe – Red Gate’s SQL Continuous Integration v2.1.0.811
STARTING: Creating scratch database sqlCI_32845ed6-45ae-4398-b41d-0070dda328f5
COMPLETED SUCCESSFULLY: Creating scratch database sqlCI_32845ed6-45ae-4398-b41d-0070dda328f5
STARTING: Validating database state
Starting: C:\Program Files (x86)\Red Gate\sqlCI\SC\SQLCompare.exe
/include=“Identical”
/include=“StaticData”
/scripts1=“C:\Users\cennis\AppData\Local\Temp\bag51h3k.gnu\db\state”
/server2=“np:\.\pipe\LOCALDB#05AD0935\tsql\query”
/database2=“sqlCI_32845ed6-45ae-4398-b41d-0070dda328f5”
/synchronize /options="DecryptPost2KEncryptedObjects,IgnoreFillFactor,IgnoreWhiteSpace,IncludeDependencies,IgnoreFileGroups,IgnoreUserProperties,IgnoreWithElementOrder,IgnoreDatabaseAndServerName,UseMigrationsV2"
SQL Compare: activated, edition: professional, serial number: **************
SQL Compare Command Line V11.1.4.44
Copyright Copyright c 1999 - 2015 Red Gate Software Ltd
Registering data sources
Creating mappings
Comparing
Applying Command Line Items
Checking for identical databases
Creating SQL
Inserting static data SQL into deployment script
Deploying changes (from DB1 to DB2)
Error: Synchronization of ‘Scripts.state’ and ‘np:\.\pipe\LOCALDB#05AD0935\tsql\query.sqlCI_32845ed6-45ae-4398-b41d-0070dda328f5’ failed: Could not find server ‘sql2’ in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers. Error executing the
following SQL: CREATE PROCEDURE [dbo].[mt_Import] AS SET …
Validating database state failed with error: SQLCompare failed with exit code 126: see output above for more information, or for generic information about this
exit code, see: http://www.red-gate.com/sqlCI/ExitCodes/SQLCompare
FINISHED WITH ERROR: Validating database state
Running SQLCompare failed with error: SQLCompare failed with exit code 126: see output above for more information, or for generic information about this exit code, see: http://www.red-gate.com/sqlCI/ExitCodes/SQLCompare