Viewing 15 posts - 4,306 through 4,320 (of 8,416 total)
If my guess is correct, try:
SELECT TOP (2)
EmpName,
MAX(EmpCommentsDate)
FROM @Employee
GROUP ...
April 3, 2010 at 6:18 am
abcim (4/3/2010)
I want the Query to Run isSELECT DISTINCT TOP (2) EmpName
FROM Employee
ORDER BY EmpCommentsDate desc
I want to check Latest Comments from different Users
I'm happy to write SQL for you,...
April 3, 2010 at 6:14 am
Chad Crawford (4/3/2010)
I'm a little stronger in SSIS than replication, so I might try that route first.
Well I hope you get enough time to try both - at least...
April 3, 2010 at 6:09 am
CirquedeSQLeil (4/3/2010)
April 3, 2010 at 6:05 am
PaulB-TheOneAndOnly (4/2/2010)
sumit.joshij (4/2/2010)
April 3, 2010 at 5:48 am
You appear to be backing up multiple databases in one step...?
The first log entry shows State_Revenue_Dev being successfully backed up.
The second entry shows a failure for State_temp_Rev.
The log output generated...
April 3, 2010 at 5:26 am
It's not exactly clear what output you expect here - especially since there aren't any duplicates in the test data.
The problem, though, is one of logic: you want the top...
April 3, 2010 at 5:21 am
You just need to prevent the race condition.
The following code demonstrates a safe implementation:
USE tempdb;
GO
-- Create the sequence table
CREATE TABLE dbo.PrimaryKeys
(
...
April 3, 2010 at 4:48 am
Jeff Moden (4/2/2010)
Heh... jeez... doesn't anyone use a plain ol' zip file anymore? 😉
RAR is a great choice - after all, it doesn't take 10 minutes to locate, download, and...
April 3, 2010 at 4:33 am
peter.roothans (4/2/2010)
April 3, 2010 at 4:28 am
pirzadaz ali (4/3/2010)
ERROR is "Type datetime2 is not a defined system type"
This means you are not connected to a SQL Server 2008 server.
The important thing is the version of the...
April 3, 2010 at 4:16 am
An example might help:
USE tempdb;
GO
-- Test table
CREATE TABLE dbo.Test
(
row_id ...
April 3, 2010 at 4:09 am
Steve-3_5_7_9 (6/10/2009)
You can get a trigger to fire for each row by adding a cursor in the trigger.
You could do that...but it would be very silly and completely unnecessary 😛
As...
April 3, 2010 at 3:48 am
bitbucket-25253 (4/2/2010)
Another item you should research ... search here on SSC for sp_msforeachdb and sp_msforeachtable -- understand them and you can eliminate your use of cursors.
Hey Ron,
Have you every looked...
April 3, 2010 at 3:42 am
alen teplitsky (4/1/2010)
April 3, 2010 at 3:39 am
Viewing 15 posts - 4,306 through 4,320 (of 8,416 total)