Create SQL trigger if data exists in table -


i new sql.

what best way create txt file, if table has records > 0?

the code exists remove or add records table.

i looking ways create trigger file (with no content in file) @ specific network folder.

preferably, want txt file removed @ end of day, process repeat every morning

on after delete trigger select count(*) table or query 1 of system catalog views. if zero, call stored proc poops file onto share drive.

to move file create small package or call powershell or bcp (after enabling xp_cmdshell though), or create clr function (after enabling clr). guess since latter 2 need change server setting, create package.

annnd since there no data dont need export, create blank file!


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -