SYMPTOM:
User receives the following error when attempting to upgrade a Strategy metadata residing on Microsoft SQL Server to a newer version through Strategy Configuration Wizard.
Sample Code/Error Error type: Odbc error. Odbc operation attempted: SQLExecDirect. Could not create constraint. See previous errors. Could not allocate space for object '(SYSTEM table id: -xxx)' in database 'db_name' because the 'PRIMARY' filegroup is full. The statement has been terminated.
Sql
BEGIN TRANSACTION
DECLARE @PKNAME_DSSMDOBJDEFN VARCHAR(255);
DECLARE @SQL_DSSMDOBJDEFN VARCHAR(255);
SET @PKNAME_DSSMDOBJDEFN = (SELECT name FROM sysobjects WHERE parent_obj=object_id('DSSMDOBJDEFN') and xtype='PK');
SET @SQL_DSSMDOBJDEFN = 'ALTER TABLE DSSMDOBJDEFN DROP CONSTRAINT ' + @PKNAME_DSSMDOBJDEFN;
EXEC (@SQL_DSSMDOBJDEFN);
ALTER TABLE DSSMDOBJDEFN ADD PRIMARY KEY (PROJECT_ID, OBJECT_ID, DEFINITION_SEQ);
COMMIT TRANSACTION