SQL Database full
Posted: Fri Jul 29, 2022 1:44 pm
Hi all,
I noticed yesterday that the trends on one of our plants (using FactoryTalk View SE) weren't working and in development I had the following error:
A database error occurred: SQL State: 47511124 Native State: 1105 Msg: [MicroSoft][ODBC SQL Server Driver][SQL Server]Could not allocate space for object <object> in database <databasename> because the 'PRIMARY' filegroup is full.
I had a look and the database is indeed maxed out at 10gb. 10gb is the max I can go to using the Express version of SQL. In the settings of the database in FTView I have it configured to purge old records after 12 months but the plant isn't 12 months old yet for it to start purging. I'm going to have to reduce the amount of data points taken so my question for now is how do I clean the database up? My knowledge of SQL is limited, I've managed to set up databases for our last few projects using FTView but I don't know how to query or manage them really after that. I'd like to avoid having to create a new database if possible so is there a way to clear the first 3 months worth of data or something? I could do this in FTView but Rockwell warned me previously that purging too much data in one go may cause problems, whether that is true or not I don't know. Is there a better way of doing it in SQL Management Studio maybe?
Rockwells Knowledgebase wasn't hugely helpful this time around:
Solution
The database is already full.
Create a new database with free space, or clean up the database you are using.
I noticed yesterday that the trends on one of our plants (using FactoryTalk View SE) weren't working and in development I had the following error:
A database error occurred: SQL State: 47511124 Native State: 1105 Msg: [MicroSoft][ODBC SQL Server Driver][SQL Server]Could not allocate space for object <object> in database <databasename> because the 'PRIMARY' filegroup is full.
I had a look and the database is indeed maxed out at 10gb. 10gb is the max I can go to using the Express version of SQL. In the settings of the database in FTView I have it configured to purge old records after 12 months but the plant isn't 12 months old yet for it to start purging. I'm going to have to reduce the amount of data points taken so my question for now is how do I clean the database up? My knowledge of SQL is limited, I've managed to set up databases for our last few projects using FTView but I don't know how to query or manage them really after that. I'd like to avoid having to create a new database if possible so is there a way to clear the first 3 months worth of data or something? I could do this in FTView but Rockwell warned me previously that purging too much data in one go may cause problems, whether that is true or not I don't know. Is there a better way of doing it in SQL Management Studio maybe?
Rockwells Knowledgebase wasn't hugely helpful this time around:
Solution
The database is already full.
Create a new database with free space, or clean up the database you are using.