Viewing 15 posts - 76 through 90 (of 123 total)
It's not a duplicate. See, definition of duplicate.
September 6, 2007 at 9:43 pm
The question presented was not "how should I label my columns?"
August 23, 2007 at 10:12 pm
It's just an example. This data does not mirror the actual data but does mirror some of the issues. The actual tables is a list of different status...
August 23, 2007 at 9:20 pm
You need to create that data. Either create a trigger to capture the data you want to an audit table. Or add a modified date column to the table and have...
August 23, 2007 at 4:44 pm
I think I just figured this out. This at least works with this small data set.
Select ProductName, #Example.PurchaseDate
FROM #Example
JOIN
(SELECT ProductID, Max(PurchaseDate) AS PurchaseDate
FROM #Example
GROUP BY ProductID) AS Bob
ON #Example.PurchaseDate...
August 23, 2007 at 4:09 pm
That's ok BH. This place is filled with anal people.
August 15, 2007 at 8:41 am
Have you ever set up any jobs/maintenance plans? The name will probably be in msdb under one of the sysjobs... tables.
August 9, 2007 at 4:49 pm
SQL Server doesn't use IF...THEN. Just IF/ELSE IF. However, THEN is used with CASE.
August 7, 2007 at 2:12 pm
How come you don't want to do it the way you show in your example? That is to set the value of the variable to whatever you want and then...
August 2, 2007 at 12:49 pm
The trigger will fire regardless of the e-mail. The trigger is not contained in "@query" for xp_sendmail. In fact, @query is not used. Granted you won't ever receive the information...
August 1, 2007 at 5:27 pm
How does DTS know whether the comma is regular or a delimiter?
August 1, 2007 at 4:00 pm
Here's an example you can try using Northwind. Just build on it.
USE Northwind
GO
CREATE TRIGGER dbo.TableUpdateNotification
ON dbo.Employees
AFTER INSERT, UPDATE
AS
DECLARE @sql varchar(4000)
SELECT @SQL = LastName FROM Inserted
EXEC master.dbo.xp_sendmail
@recipients =
July 31, 2007 at 2:43 pm
Viewing 15 posts - 76 through 90 (of 123 total)