Hello, I am trying to extract the data from a customer-provided BAK file and then discard the SQL server container after. I am using the syntax below.
RESTORE DATABASE [ABC123] FROM DISK = '/var/opt/mssql/data/ABC123.bak'
WITH
MOVE 'ABC123.mdf' TO '/var/opt/mssql/data/ABC123.mdf',
MOVE 'ABC123.ldf' TO '/var/opt/mssql/data/ABC123.ldf',
REPLACE,
NORECOVERY;
below is the resulting logs. The data tables are accessible and I can extract data from them. These are none sys tables.
Processed 12776 pages for database 'ABC123', file 'ABC123.mdf' on file 1.
Processed 2 pages for database 'ABC123', file 'ABC123.ldf' on file 1.
RESTORE DATABASE successfully processed 12778 pages in 2.130 seconds (46.867 MB/sec).
Question: can i safely say that the data in those none sys tables are valid and the database does not need to be COMPLETELY recovered?
The background to this is that, when i am not using the NORECOVERY
option, the operation fails midway through the upgrading processes. Below are the logs
5 percent processed.
10 percent processed.
15 percent processed.
20 percent processed.
25 percent processed.
30 percent processed.
35 percent processed.
40 percent processed.
45 percent processed.
50 percent processed.
55 percent processed.
60 percent processed.
65 percent processed.
70 percent processed.
75 percent processed.
80 percent processed.
85 percent processed.
90 percent processed.
95 percent processed.
100 percent processed.
Processed 12776 pages for database 'ABC123', file 'ABC123.mdf' on file 1.
Processed 2 pages for database 'ABC123', file 'ABC123.ldf' on file 1.
Converting database 'ABC123' from version 852 to the current version 957.
Database 'ABC123' running the upgrade step from version 852 to version 853.
Database 'ABC123' running the upgrade step from version 853 to version 854.
Database 'ABC123' running the upgrade step from version 854 to version 855.
Database 'ABC123' running the upgrade step from version 855 to version 856.
Database 'ABC123' running the upgrade step from version 856 to version 857.
Database 'ABC123' running the upgrade step from version 857 to version 858.
Database 'ABC123' running the upgrade step from version 858 to version 859.
Database 'ABC123' running the upgrade step from version 859 to version 860.
Database 'ABC123' running the upgrade step from version 860 to version 861.
Database 'ABC123' running the upgrade step from version 861 to version 862.
Database 'ABC123' running the upgrade step from version 862 to version 863.
Database 'ABC123' running the upgrade step from version 863 to version 864.
Database 'ABC123' running the upgrade step from version 864 to version 865.
Database 'ABC123' running the upgrade step from version 865 to version 866.
Database 'ABC123' running the upgrade step from version 866 to version 867.
Database 'ABC123' running the upgrade step from version 867 to version 868.
Database 'ABC123' running the upgrade step from version 868 to version 869.
Database 'ABC123' running the upgrade step from version 869 to version 875.
Database 'ABC123' running the upgrade step from version 875 to version 876.
Database 'ABC123' running the upgrade step from version 876 to version 877.
Database 'ABC123' running the upgrade step from version 877 to version 878.
Database 'ABC123' running the upgrade step from version 878 to version 879.
Database 'ABC123' running the upgrade step from version 879 to version 880.
Database 'ABC123' running the upgrade step from version 880 to version 881.
Database 'ABC123' running the upgrade step from version 881 to version 882.
Database 'ABC123' running the upgrade step from version 882 to version 883.
Database 'ABC123' running the upgrade step from version 883 to version 884.
Database 'ABC123' running the upgrade step from version 884 to version 885.
Database 'ABC123' running the upgrade step from version 885 to version 886.
Database 'ABC123' running the upgrade step from version 886 to version 887.
Database 'ABC123' running the upgrade step from version 887 to version 888.
Database 'ABC123' running the upgrade step from version 888 to version 889.
Database 'ABC123' running the upgrade step from version 889 to version 890.
Database 'ABC123' running the upgrade step from version 890 to version 891.
Database 'ABC123' running the upgrade step from version 891 to version 892.
Database 'ABC123' running the upgrade step from version 892 to version 893.
Database 'ABC123' running the upgrade step from version 893 to version 894.
Database 'ABC123' running the upgrade step from version 894 to version 895.
Database 'ABC123' running the upgrade step from version 895 to version 896.
Database 'ABC123' running the upgrade step from version 896 to version 897.
Database 'ABC123' running the upgrade step from version 897 to version 898.
Database 'ABC123' running the upgrade step from version 898 to version 899.
Database 'ABC123' running the upgrade step from version 899 to version 900.
Database 'ABC123' running the upgrade step from version 900 to version 901.
Database 'ABC123' running the upgrade step from version 901 to version 902.
Database 'ABC123' running the upgrade step from version 902 to version 903.
Database 'ABC123' running the upgrade step from version 903 to version 904.
Database 'ABC123' running the upgrade step from version 904 to version 905.
Database 'ABC123' running the upgrade step from version 905 to version 906.
Database 'ABC123' running the upgrade step from version 906 to version 907.
Database 'ABC123' running the upgrade step from version 907 to version 908.
Database 'ABC123' running the upgrade step from version 908 to version 909.
Database 'ABC123' running the upgrade step from version 909 to version 910.
Database 'ABC123' running the upgrade step from version 910 to version 911.
Database 'ABC123' running the upgrade step from version 911 to version 912.
Database 'ABC123' running the upgrade step from version 912 to version 913.
Database 'ABC123' running the upgrade step from version 913 to version 914.
Database 'ABC123' running the upgrade step from version 914 to version 915.
Database 'ABC123' running the upgrade step from version 915 to version 916.
Database 'ABC123' running the upgrade step from version 916 to version 917.
Database 'ABC123' running the upgrade step from version 917 to version 918.
Database 'ABC123' running the upgrade step from version 918 to version 919.
Database 'ABC123' running the upgrade step from version 919 to version 920.
Database 'ABC123' running the upgrade step from version 920 to version 921.
Database 'ABC123' running the upgrade step from version 921 to version 922.
Database 'ABC123' running the upgrade step from version 922 to version 923.
Database 'ABC123' running the upgrade step from version 923 to version 924.
Database 'ABC123' running the upgrade step from version 924 to version 925.
Database 'ABC123' running the upgrade step from version 925 to version 926.
Database 'ABC123' running the upgrade step from version 926 to version 927.
Database 'ABC123' running the upgrade step from version 927 to version 928.
Database 'ABC123' running the upgrade step from version 928 to version 929.
Database 'ABC123' running the upgrade step from version 929 to version 930.
Database 'ABC123' running the upgrade step from version 930 to version 931.
Database 'ABC123' running the upgrade step from version 931 to version 932.
Database 'ABC123' running the upgrade step from version 932 to version 933.
Database 'ABC123' running the upgrade step from version 933 to version 934.
Database 'ABC123' running the upgrade step from version 934 to version 935.
Database 'ABC123' running the upgrade step from version 935 to version 936.
Database 'ABC123' running the upgrade step from version 936 to version 937.
Database 'ABC123' running the upgrade step from version 937 to version 938.
Database 'ABC123' running the upgrade step from version 938 to version 939.
Database 'ABC123' running the upgrade step from version 939 to version 940.
Database 'ABC123' running the upgrade step from version 940 to version 941.
Database 'ABC123' running the upgrade step from version 941 to version 942.
Database 'ABC123' running the upgrade step from version 942 to version 943.
Database 'ABC123' running the upgrade step from version 943 to version 944.
Database 'ABC123' running the upgrade step from version 944 to version 945.
Database 'ABC123' running the upgrade step from version 945 to version 946.
Database 'ABC123' running the upgrade step from version 946 to version 947.
Database 'ABC123' running the upgrade step from version 947 to version 948.
Database 'ABC123' running the upgrade step from version 948 to version 949.
Database 'ABC123' running the upgrade step from version 949 to version 950.
Database 'ABC123' running the upgrade step from version 950 to version 951.
Database 'ABC123' running the upgrade step from version 951 to version 952.
Database 'ABC123' running the upgrade step from version 952 to version 953.
Database 'ABC123' running the upgrade step from version 953 to version 954.
Database 'ABC123' running the upgrade step from version 954 to version 955.
Database 'ABC123' running the upgrade step from version 955 to version 956.
Database 'ABC123' running the upgrade step from version 956 to version 957.
Msg 1105, Level 17, State 2, Server 3175be0690ba, Line 1
Could not allocate space for object 'sys.sysschobjs'.'nc2' in database 'ABC123' because the 'PRIMARY' filegroup is full due to lack of storage space or database files reaching the maximum allowed size. Note that UNLIMITED files are still limited to 16TB. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.
Msg 3013, Level 16, State 1, Server 3175be0690ba, Line 1
RESTORE DATABASE is terminating abnormally.