Viewing 15 posts - 3,856 through 3,870 (of 5,394 total)
Jeff Moden (10/7/2010)
October 8, 2010 at 1:03 am
I think this should do:
DECLARE @searchDate datetime
SET @searchDate = '1985-03-26'
SET @searchDate = DATEADD(day,DAY(@searchDate)-1,DATEADD(month, MONTH(@searchDate)-1, 0))
SELECT *
FROM astrology atr,
store_dob...
October 7, 2010 at 8:27 am
Very strange. It's a question I don't see very often and we got two today.
October 7, 2010 at 8:14 am
hahnorlaska (10/7/2010)
October 7, 2010 at 8:12 am
Probably your logging procedure was rolled back by an outer transaction.
Try using db mail.
October 7, 2010 at 8:10 am
WayneS (10/7/2010)
try:
set @t1=IsNull((select sum(a) from order where type='1'),0) + IsNull((select sum(b) from order2 where code='3'),0)
... ok, it was me! 🙂
October 7, 2010 at 7:50 am
Is it me or there's a better way to describe this problem?
I don't think I understand what you're after.
Can you explain?
October 7, 2010 at 7:39 am
You could start from the EXCEPT, that generally involves a SORT DISTINCT on the two inputs.
I think you should calculate the output field AFTER the except.
As a side suggestion, nobody...
October 7, 2010 at 7:34 am
Jeff Moden (10/7/2010)
saurabh.deshpande (10/7/2010)
Can we have anything like Oracle RAC available in SQL Server.
Thanks
What is "Oracle RAC"?
Oracle RAC stands for Real Application Cluster, that is an...
October 7, 2010 at 7:23 am
I don't think it can be done.
When you run a query in multi-server mode, the query is run on each connected server and the results are merged by SSMS.
Issuing SELECT...
October 7, 2010 at 4:44 am
You could use db mail to send an alert to your mailbox.
For some reason I feel that this is not exactly what you want. Can you elaborate a bit more?
October 7, 2010 at 4:36 am
grahamc (10/7/2010)
October 7, 2010 at 4:34 am
Nobody can acces the row while you're updating it.
Don't worry about that.
October 7, 2010 at 4:31 am
It could be something like this:
CREATE PROCEDURE [getSequence]
AS
BEGIN
SET NOCOUNT ON
DECLARE @newVal int
BEGIN TRY
BEGIN TRAN
UPDATE SequenceTable
SET @newVal = Sequence = Sequence + 1
COMMIT
END TRY
BEGIN CATCH
DECLARE @ErrorMessage NVARCHAR(4000);
DECLARE @ErrorSeverity INT;
DECLARE @ErrorState INT;
SELECT...
October 7, 2010 at 4:10 am
Viewing 15 posts - 3,856 through 3,870 (of 5,394 total)