Viewing 15 posts - 46 through 60 (of 99 total)
SELECT D.FileId, D.filetype, COUNT(*)
FROM #Tab1 D
GROUP BY D.FILEID, D.FILETYPE
UNION ALL
SELECT max(FileId), 'txt', 0
FROM #Tab1
Order by D.FileId[/code]
As per my understanding this is not what post required, your query will...
May 24, 2013 at 11:59 pm
Its difficult to comment unless seeing the table structures, probably index seek becuase of some column used in where clause or join or in output column is not a part...
May 24, 2013 at 8:38 am
Why not implement replication if you very well have network connectivity between both servers, and set the replication end of the day?
May 24, 2013 at 8:27 am
Please reread my post. Use a dictionary, if necessary, to help you understand its meaning. I did not call anyone silly. I said that the post made you look silly...
May 24, 2013 at 7:28 am
Sergiy (5/24/2013)
Phil Parkin (5/24/2013)
Where is that post?
The first post of this topic.
But saying that you "cannot call insert like that" is clearly wrong.
Not if "like that"...
May 24, 2013 at 7:16 am
Try this query... it is suffixing the requirement, but I feel there has to be some other way out to accomplish this.
SELECT D.FileId, D.filetype, COUNT(*)
FROM #Tab1 D
GROUP BY D.FILEID, D.FILETYPE
UNION...
May 24, 2013 at 7:11 am
Check you Database Mail setup, some problem with config or SMTP Server, from where the mail is being sent.
May 24, 2013 at 6:33 am
In that case instead of setting notification, you can configure alerts, which can set whenever error fires, and notification can be set for job succeded instead of completed.
To Set alert...
May 24, 2013 at 6:27 am
The subject should include as completed or failed, alongwith the job / alert name
May 24, 2013 at 6:05 am
Hi,
Need information about Micorosoft Certification Path for SQL Server, Planning to complete one.
Thanks,
May 24, 2013 at 5:53 am
Try this...
update foo
set b = 'this is'
OUTPUT DELETED.a INTO @foo2
from foo f
inner join bar b
on f.c = b.y
DELETED.a will update previous value and INSERTED.a will update the new value in...
May 24, 2013 at 5:15 am
Ells (5/24/2013)
May 24, 2013 at 3:45 am
Eugene Elutin (5/24/2013)
WHERE
CASE WHEN TARGET.Column1 = SOURCE.Column1 OR TARGET.Column1 IS NULL AND SOURCE.Column1 IS NULL THEN 1 ELSE 0 END= 0
OR
CASE WHEN TARGET.Column2 = SOURCE.Column2 OR TARGET.Column2 IS NULL...
May 24, 2013 at 3:33 am
How about this solutions...
--- Create a InLine Function with ReportingDate Parameter --
CREATE FUNCTION fnMostRecentOrderDetail(@ReportingDate datetime) RETURNS TABLE
AS
RETURN
(
SELECT ProductId, SalesOrderDetailId, ModifiedDate,
ROW_NUMBER() OVER (PARTITION BY ProductId ORDER BY ModifiedDate DESC) RowNo
FROM...
May 24, 2013 at 2:34 am
Allocate mince? do you have a percentage breakup to do it, or just randomly will allocate ?
May 24, 2013 at 1:30 am
Viewing 15 posts - 46 through 60 (of 99 total)