deleting journal entries when your SQLEXPRESS DB is full

Im posting this here because I forgot it in the past and didn't write it down. If your SQLEXPRESS DB is full and you want to delete entries in the Journal you cannot use Administrator to run your query. You will get an error.

Use SQL Server Management Studio Express to run

delete from journal where time < getdate()-365

and it will work.

This usually is a very stressful situation because your register will throw errors until this is fixed and when the query doesn't work it gets more stressful.

Hope this helps someone.

Jason

formatting link
formatting link

Reply to
ShopKeep
Loading thread data ...

i was wondering if you knew a way to change that command to move those journals entries to another database rather than deleting them?

I'm looking to append this data to an archive database

thanks Wil

Reply to
Wil J

Why not just backup the database then delete the journal records and keep the backup as a journal archive?

Reply to
Terrible Tom

Im posting this here because I forgot it in the past and didn't write it down. If your SQLEXPRESS DB is full and you want to delete entries in the Journal you cannot use Administrator to run your query. You will get an error.

Use SQL Server Management Studio Express to run

delete from journal where time < getdate()-365

and it will work.

This usually is a very stressful situation because your register will throw errors until this is fixed and when the query doesn't work it gets more stressful.

Hope this helps someone.

Jason

formatting link
formatting link

Reply to
cptsoft

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.