Viewing 15 posts - 961 through 975 (of 6,486 total)
For 2 currencies - skip the dynamic SQL altogether.
CREATE FUNCTION [dbo].[FindExRate] ( @extp nvarchar(10), @dt nvarchar(50) )
RETURNS float
AS BEGIN
declare @s-2 nvarchar(4000)
DECLARE @exrt float
if @extp='USD'
BEGIN
set @exrt= ( SELECT TOP (1)...
June 14, 2012 at 11:04 am
Scott Murray-240410 (6/11/2012)
They are very similar with the following exceptions:-VS Report designer does not include a preview mode and it saves files with a different extension, rdlc.
As I understand it,...
June 11, 2012 at 2:06 pm
Shooting in the dark here - but this looks to be an "ID reservation system". As in, if you were to look at the parameters, you can reserve more...
June 11, 2012 at 12:22 pm
Lynn Pettis (6/8/2012)
June 8, 2012 at 5:56 pm
As long as it's an "actual" calculation, I'd agree with all previous opinions. If calculation comes to mean something having to do with actually formatting the output, then put...
June 8, 2012 at 12:17 pm
You need to switch to the control flow view. Chances are you are in the data flow view which is one level below control flow (control can call and...
June 8, 2012 at 11:17 am
As I understand it, it's in every edition starting with Express Edition with Advanced Services and up. As I understand it - there's no option to install it using...
June 8, 2012 at 11:07 am
This will do it for you.
declare @qtr int, @year int,@Startdate datetime
select @qtr=2,@year=2012
select @startdate=dateadd(month,(@Qtr-1)*3,dateadd(year,@year-1900,0)) --0 is 1/1/1900 which is a monday
;with TallyCTE as (
select row_number() over (order by (select null))-1...
June 7, 2012 at 6:41 pm
Mountain Steve (6/6/2012)
June 6, 2012 at 12:15 pm
richardm-1037631 (6/5/2012)
Creativity != "that's how we always do it"
I would like to suggest a 3rd option to remember:
"that's how we always do it" != Reason to change
Just because something...
June 5, 2012 at 10:23 am
SQL Kiwi (6/1/2012)
Matt Miller (#4) (6/1/2012)
A common stumbling block is to think there is some physical order to the table (there isn't).
Of course there is. You just can't depend...
June 2, 2012 at 9:12 am
I'm surprised it hasn't been mentioned before, but I do hope you have some way to actually define the ordering within the table. A common stumbling block is to...
June 1, 2012 at 11:49 am
Viewing 15 posts - 961 through 975 (of 6,486 total)