Viewing 15 posts - 226 through 240 (of 268 total)
Something to consider:
select datediff(m, '0001-01-01', '9999-12-31')
returns 119987
That is the largest difference in minutes between the earliest and latest dates handled by SQL Server. The earliest date it can store...
April 17, 2014 at 11:13 am
Well, OK. Just do it in a loop, adding portions of bigint that fit into an integer to an accumulating date field.
April 17, 2014 at 10:43 am
Something like this might handle the example problem:
declare @t table (txt varchar(max))
insert into @t(txt) values
('"@@"@@T_001_Version = "v2009.01.13.1_1.7"@@T_002_ = "@@T_749_formstatus = "0"@@T_750_finalscorestatus = "Draft"@@M_752_ = "*Hx of AH, VH, and d....')
select...
April 17, 2014 at 10:37 am
What units are your bigint in? Minutes, seconds, hours, years, microseconds, months ,picoseconds?
April 17, 2014 at 9:43 am
A couple of ways:
1. use an expression for your IN clause:
=split("1W,2W",",")
2. Set up a hidden, multivalued parameter holding your filter values and point to that in your filter.
April 17, 2014 at 7:22 am
What have you tried so far? How is the column 'Bit' computed?
April 17, 2014 at 7:14 am
Your problem is that the token 'already' is matched by all rows in @message except the first one. So, all rows are returned except the first.
I think that...
April 17, 2014 at 7:08 am
Your INSERT query doesn't work. I fixed it like this:
insert into #mytable(current_week)
select '2012-02-24 ~~ 2012-03-01' union all
select '2012-01-20 ~~ 2012-01-26' union all
select '2012-01-20 ~~ 2012-01-26 ' union...
April 17, 2014 at 6:34 am
If you like one statement, I would prefer IF... SET ... = 1 ELSE SET ... = 0
I really don't care for the other ones using ISNULL or CASE....
April 16, 2014 at 11:09 am
Or, in that same snippet, take advantage of the fact that you initialize the variable @CompleteSetFound to 0 in the declaration. Then you can simplify to:
IF EXISTS (
...
April 16, 2014 at 11:02 am
Well, the fix is not complete. I ran into this again in SQL Server 2008R2 just last year. I applied my workaround and voila! Lock gone.
April 16, 2014 at 7:27 am
before we begin, would please repost your input data in a code block that includes the DDL and DML needed to populate the data. Then, show the query you...
April 16, 2014 at 7:03 am
I feel your pain! Time for a stupid question: What db is the 3rd-party running? Reason I ask is what I read here:
http://technet.microsoft.com/en-us/library/dd239343.aspx
Support for features...
April 15, 2014 at 1:27 pm
An execute SQL task is different from a source because the execute SQL task doesn't care about metadata and resultsets retrieved, but for the source this is very important.
That's true...
April 15, 2014 at 1:08 pm
Put two images in the footer. Make the visibility of each conditional on the page number. So, if the page number is NOT the last page number, display...
April 15, 2014 at 12:50 pm
Viewing 15 posts - 226 through 240 (of 268 total)