How can we help you today? How can we help you today?
sam.blackburn
If the schema is the same across all these databases, your best bet is probably to exclude the columns in the Tables & Views tab, save a project file and then reuse this project file against other databases.  Does that work for you? / comments
If the schema is the same across all these databases, your best bet is probably to exclude the columns in the Tables & Views tab, save a project file and then reuse this project file against other ...
0 votes
I've sometimes seen this when the object (table, view...) was selected but all the properties on it (columns, indexes...) were not selected.  Is this the case?  If it was intentional, we'd also be interested to know your use case for this configuration. / comments
I've sometimes seen this when the object (table, view...) was selected but all the properties on it (columns, indexes...) were not selected.  Is this the case?  If it was intentional, we'd also be ...
0 votes
I work on SQL Compare, so I'm not exactly a Backup expert, but our test framework restores an enormous number of backups.   The filegroup paths are handled by first calling SQL Backup with `RESTORE HEADERLISTONLY`, which will list the files without doing an actual restore.  We use the result of this command to craft a `RESTORE WITH MOVE` script.  Unfortunately the code is difficult to post here because it's baked into the C# test framework, with loads of special cases for escaping filenames, multipart backups, SQB versus native, Linux versus Windows, network flakiness, caching layers and so on.   I'd be really interested to know if anyone has found a succinct way to do it.  Here's a quick stab I made at doing it in SQL: DECLARE @backupFile AS NVARCHAR(MAX) = 'C:\path\to\backup.sqb' DECLARE @pathOnServer AS NVARCHAR(MAX) = 'C:\Foo\Bar\Baz' DECLARE @listCommand AS NVARCHAR(MAX) = 'RESTORE FILELISTONLY FROM DISK=''' + @backupFile + '''' CREATE TABLE ##files ( LogicalName NVARCHAR(MAX), PhysicalName NVARCHAR(MAX), Type CHAR, FileGroupName NVARCHAR(MAX), Size BIGINT, MaxSize BIGINT, FileID INT, CreateLSN INT, DropLSN INT, UniqueID UNIQUEIDENTIFIER, ReadOnlyLSN INT, ReadWriteLSN INT, BackupSizeInBytes BIGINT, SourceBlockSize INT, FileGroupID INT, LogGroupGUID UNIQUEIDENTIFIER, DifferentialBaseLSN BIGINT, DifferentialBaseGUID UNIQUEIDENTIFIER, IsReadOnly BIT, IsPresent BIT ) INSERT INTO ##files EXEC master.dbo.sqlbackup @listCommand -- SELECT * FROM ##files SELECT 'MOVE N''' + LogicalName + ''' TO ''' + @pathOnServer + '\' + LogicalName + (CASE Type WHEN 'D' THEN '.mdf' WHEN 'L' THEN '.ldf' ELSE '' END) + '''' FROM ##files DROP TABLE ##files Hope that helps! / comments
I work on SQL Compare, so I'm not exactly a Backup expert, but our test framework restores an enormous number of backups.  The filegroup paths are handled by first calling SQL Backup with `RESTORE ...
0 votes