Viewing 15 posts - 16 through 30 (of 32 total)
yes there is no actual addition I just want to move selected b data to a after moving data the table b should not hold whatever is moved to a...
June 2, 2010 at 9:39 am
ok I have a table named Order_A, which has data stored in it which has columns as shown in query
SELECT [OrderID]
,[OrderDate]
...
June 2, 2010 at 9:15 am
Lowell (5/27/2010)
look at the final sql and tell us what is not working: how is the data incorrect?
WITH t2 AS...
May 31, 2010 at 7:21 pm
Hari.Sharma (5/27/2010)
But I dont understand why are you replacing characters from both left and right side since its same in...
May 31, 2010 at 7:20 pm
hey any clue on how to add this query in above procedure
after select query.... it should update saying:
UPDATE B SET hotemailflag = 1 where ISNULL(available_qty,0) = 0 and ISNULL(available_qty_temp,0) =...
May 7, 2010 at 5:16 am
it should be like this " select count(*) "
THANKS IT HELPED AND WORKS NOW
May 6, 2010 at 10:19 am
Dan.Humphries (5/6/2010)
DECLARE @tableHTML NVARCHAR(MAX);
SET @tableHTML =
N'<H1>Hot Item(S) out of Stock <H1>' +
N'<table border="1">' +
N'<tr><td>Brand Name</td><td>Category Name</td>' +
N'<td>Product Name</td><td>Color Name</td>' +
N'<td>Color Code</td><td>Sizes</td></tr>' +
CAST ( ( SELECT td =...
May 6, 2010 at 10:16 am
Dan.Humphries (5/6/2010)
set the variable to count of records with your where clause so something like this.
Select count(*) from yourtable where column=cluase
then add an if statement before...
May 6, 2010 at 9:13 am
i have one problem how i can implement if result set is null in this stored procedure than it wont sent out any email...
DECLARE @tableHTML NVARCHAR(MAX);
SET @tableHTML =
N'<H1>Hot...
May 6, 2010 at 8:46 am
I used one of the column having date and ADDDATE so it works... thanks for reply
May 6, 2010 at 8:37 am
well I dont have time stamp in my table I want to generate resultset using select and providing condition like what happened in last hour
May 5, 2010 at 2:45 pm
I appreciate you all for replying... thank you!!
May 5, 2010 at 12:28 pm
adalberto-339588 (5/5/2010)
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'ebayOchkee',
@recipients = 'adventorworks@gmail.com',
@query = ‘SELECT categoryname,brandname,productname,colorname,colorcode,psizename...
May 5, 2010 at 12:28 pm
not more hardly in 100's
May 4, 2010 at 10:40 pm
Viewing 15 posts - 16 through 30 (of 32 total)