Viewing 15 posts - 166 through 180 (of 208 total)
Simply write an after insert trigger for a table, check row count and send mail with sp_send_dbmail procedure.
http://msdn2.microsoft.com/en-us/library/ms190307.aspx
However, you shouldn't do it on a high volume table.
March 27, 2008 at 3:50 am
On second look it seems like everything is coded to slow down updates:
WAITFOR DELAY '00:00:01'
What is it for?
SELECT @orderNumber=PARTSMANUFACTURING.M01_PRODUCTIONORDERNUMBER
FROM PARTSMANUFACTURING,INSERTED ...
March 19, 2008 at 6:46 am
First of all, executing a java program from a trigger is a bad idea, because transactions must be short. Second, I'd guess the java program connects to database and performs...
March 19, 2008 at 6:33 am
If you have multiple update triggers, be sure they don't overlap (functionally).
IOW, if you have two and they both update own table, one will fire the other one. In such...
March 19, 2008 at 3:26 am
Of course. SSMS can do it. DBLib supports it, OLEDB supports it, so it all depends on your knowledge on your front end, if you want to do it from...
March 19, 2008 at 3:06 am
Excellent. Simple and efficient.
exec dbo.proc_permutations 8
generates 40k records in 0.5 sec.
March 18, 2008 at 5:16 am
As you can see CTEs can be very useful. I have found them particularly handy when cleaning up demoralized tables
What are "demoralized tables"? I didn't know they can have such...
March 18, 2008 at 2:00 am
I know and that's not the point.
The script looks like
command
go
command
go
There are ~700 of them.
If autocommit is ON, each completed command should be committed and usually is. Uncompleted commands are rolled...
March 14, 2008 at 9:55 am
Rollback rolls back uncommitted modifications - undo in the database. Even if whole transaction was help in a buffer, the whole buffer must be written, which does not happen instantly.
It...
March 14, 2008 at 5:55 am
I guess you have a problem with query that executes for 30 sec, but shouldn't.
Examine the query execution plan. Red nodes need work on.
March 14, 2008 at 5:34 am
Not just that. Such data comes from poorly designed database model, client app and bad user habits.
A user is inputting an invoice. Does not use an available lookup to pick...
March 11, 2008 at 7:45 am
Stephen Lee (3/10/2008)
I've been charged with cleaning up 2-3 tables which contain approx 1 millions records each.
The problem I'm experiencing is, some of the companies (an important column)...
March 11, 2008 at 6:42 am
It's best explained in this article:
http://www.sqlservercentral.com/articles/Administering/executionplans/1345/
March 11, 2008 at 4:23 am
Not really, I was horsing around. But mind you that not everyone gets to choose there PC, whether there is a benifit or not.
True for work computer in some companies....
March 10, 2008 at 10:52 am
Just my 2 cents.
If you set pagefile too small or worse disable it, the system will be slow regardless of ram size. On my comp with 2 GB ram the...
March 10, 2008 at 7:35 am
Viewing 15 posts - 166 through 180 (of 208 total)