Viewing 15 posts - 2,296 through 2,310 (of 6,036 total)
DECLARE @Var MONEY
SET @Var = 12999
SELECT @Var, ROUND(@var, -3)
August 17, 2011 at 11:31 pm
You're using cursor to populate a table.
But you never return the data from that table.
August 16, 2011 at 4:43 pm
I cannot find a SELECT statement which would return data for bcp
August 16, 2011 at 5:52 am
The last SELECT from your SP must be from a # table.
BCP evaluates output by recompiling procedure, before it's executed.
At the time of compilation temp table does not exist yet,...
August 11, 2011 at 6:28 am
Try it this way:
....
FROM InvoicedAndPaid as aa
RIGHT JOIN SalesReporting.dbo.team_members as bb on rtrim(aa.CustomText01) = rtrim(bb.specialist_name)
....
August 7, 2011 at 6:52 pm
You may wish to convert hierarchy into relationship.
Create Table #StockSuperceded
(StockID_Superceeded int,
StockID_SupercededWith int,
StepNo smallint -- assuming there won't be more than 32k steps in the process :-)
)
Then...
July 26, 2011 at 10:54 pm
SELECT *
INTO ##temp
FROM [Table name]
July 13, 2011 at 8:49 pm
Comparing strings may be VERY, let's say, misleading.
Compare following 3 addresses:
'7356 BRIDALE BLVD'
'73/56 BRIDALE BLVD'
'Apt. 73, Unit 56, BRIDALE Boulevard'
Which ones will be closest by string comparison?
And how does it...
July 4, 2011 at 3:23 am
It's totally wrong use of the function.
Read BOL about correct ways to use it.
May 20, 2011 at 9:03 pm
To make Nate's solution 1 step shorter:
SET @ItemID = NULL -- needed only if there is a loop for multiple invoices
SELECT @ItemID = ISNULL(@ItemID + ' zz ',...
May 18, 2011 at 7:07 pm
OK, I guiess SSMS is not that user-friendly as Query Analyzer user to be.
So sad there is no downgrading option here...
😉
May 16, 2011 at 9:15 pm
Jeffrey Williams-493691 (5/12/2011)
I would not recommend using this approach - I believe that functionality has been deprecated and is no longer available in later versions.
True, sp_makewebtask is replaced with SSRS...
May 14, 2011 at 4:07 am
You may wish to use sp_makewebtask to build an HTML file from your query.
Then you may send that file as a message body.
Not sure if xp_smtp_sendmail can do this, never...
May 12, 2011 at 7:44 pm
Check out "Cross-Tab Reports" topic in BOL.
Is it what do you need?
May 11, 2011 at 6:34 pm
Viewing 15 posts - 2,296 through 2,310 (of 6,036 total)