I'm executing these commands from a Console Application
DBCC SHRINKFILE (@FILE_NAME_MDF, 0) WITH NO_INFOMSGS
DBCC SHRINKFILE (@FILE_NAME_LDF, 0) WITH NO_INFOMSGS
and getting this error
Could not shrink the XXX database Cannot create a row of size 8126 which is greater than the allowable maximum row size of 8060. The statement has been terminated. System.Data.SqlClient.SqlException (0x80131904): Cannot create a row of size 812 6 which is greater than the allowable maximum row size of 8060.
Any help would be greatly appreciated.