Viewing 15 posts - 1,576 through 1,590 (of 2,469 total)
I just saw your other post....there was someone yesterday who seemed to have a novel approach to storing all the db object create scripts in a stored procedure and then...
July 31, 2005 at 9:50 am
why can it update only one row ?! what is your update based on ?! could you pl. provide some more details ?!
July 31, 2005 at 9:27 am
Nisha - you can use enterprise manager and the scripting wizard to script the text either into individual files or all stored procedures in one big file and then print...
July 31, 2005 at 7:32 am
here goes...
CREATE PROCEDURE ProcTestPrint
AS
SET NOCOUNT ON
IF EXISTS(SELECT * FROM Products WHERE ProductName = 'A')
BEGIN
PRINT 'Title of the report = ProductName'
PRINT ' A'
SELECT ProductName, amount_SUM
FROM Products
WHERE ProductName = 'A'
END
IF EXISTS(SELECT *...
July 30, 2005 at 4:13 pm
Oops - guess I'm guilty as charged then! I just posted a stored procedure that set the nocount off at the end...
ps: In my...
July 30, 2005 at 4:10 pm
so you have to check the existence of both product names (a & b) before you print them ?!
just out of curiosity....may I ask why you need to do this...
July 30, 2005 at 3:52 pm
midan - you would just have to use what sara gave you and put it in a stored procedure - almost verbatim...the nocount has been set so that you don't...
July 30, 2005 at 2:42 pm
You find either waldo or carmen sandiego Mike - & you've found me!
ps: There - now I've practically given it away!
July 30, 2005 at 1:57 pm
Hey morbid Mike...
"Death, be not proud, though some have called thee
Mighty and dreadful, for thou art not so....."
July 30, 2005 at 7:38 am
here're some detailed accounts (unearthed from googling) of identical user griefs:
1) If you let DTS create the table in excel, then apparently it converts a numeric
field into varchar - in...
July 29, 2005 at 11:56 pm
shashank - you can open up the procedure in your "master" database and look at the code!
Use enterprise manager!
July 29, 2005 at 11:52 pm
declare @Share int
declare @Share1 int
declare @Share2 int
declare @Pool int
declare @Amount int
SET @Share = @Share1 + @Share2
IF (@Share > 0)
SET @Amount = @Pool / @Share
ELSE
SET @Share = 0 ...don't...
July 29, 2005 at 11:36 pm
I think there're very few who haven't seen days like these....a mantra I learnt a long time ago (which doesn't even sound like words of comfort at first read being...
July 29, 2005 at 10:20 pm
Viewing 15 posts - 1,576 through 1,590 (of 2,469 total)