Hot answers tagged scripting
If you click on the 'Script' in the execute box that pops up from the delete button, it reveals that the script actually uses a DROP command: USE [DATABASE] GO /****** Object: Table [dbo].[TABLE] Script Date: 3/6/2014 9:29:39 AM ******/ DROP TABLE [dbo].[TABLE] GO
Redis doesn't do scheduling of jobs/scripts - you'll have to use something (e.g. cron) to trigger the script. The script itself sounds simple enough - LRANGE should be used to iterate the list's elements, sum them up, SET total-count to the result and DEL the list. Lua would be perfect for this but you can also .sh with redis-cli for example. What bothers ...
/****** Object: Database [DatabaseName] Script Date: 03/06/2014 10:32:06 AM ******/ DROP DATABASE [DatabaseName] GO However, you should probably just use the RESTORE DATABASE command and use the REPLACE option. REPLACE Specifies that SQL Server should create the specified database and its related files even if another database already exists with ...
Only top voted, non community-wiki answers of a minimum length are eligible