Viewing 15 posts - 6,001 through 6,015 (of 15,381 total)
nick 91670 (1/8/2014)
the following two lines (simplified) are...
January 8, 2014 at 12:00 pm
Something like this?
declare @EndDate datetime = '2013-12-15'
select dateadd(yy, datediff(yy, 0, @EndDate), 0) -- Beginning of this year
This came from Lynn's blog post with lots of common...
January 8, 2014 at 11:55 am
mzsleo85 (1/8/2014)
The solution which you provided me is working to me. (Thanks a lot)
I ll keep in mind all the points that...
January 8, 2014 at 11:47 am
When a user has rights to execute a stored procedure it will be assumed that they can do whatever the procedure code does. It does not check privileges for each...
January 8, 2014 at 10:10 am
Hi and welcome to the forums. It is considered best practice to post ddl and sample data so that we can work directly on your problem. Since this is your...
January 8, 2014 at 10:03 am
Tara-1044200 (1/8/2014)
January 8, 2014 at 8:11 am
Is there any chance you can normalize this data instead of fighting what looks like a text file all the time?
January 7, 2014 at 3:21 pm
Now I see what you are trying to do. Does something like this work?
select WorkItemId
, replace(SUBSTRING(WorkItemDescription, CHARINDEX('Related Work Items', WorkItemDescription) + 20, LEN(WorkItemDescription)), ';', '')
from @tblRawData
January 7, 2014 at 3:13 pm
satishchandra (1/7/2014)
Declare @tblRawData as table
(
WorkItemId int,
WorkItemDescription varchar(500)
)
insert into @tblRawData select 10110, 'Parallel Work Items: 10111, 10112; Related Work Items: 10113, 10114;'
insert into @tblRawData select...
January 7, 2014 at 3:03 pm
Jeff Moden (1/7/2014)
January 7, 2014 at 2:51 pm
You can just use replace around what you already have.
replace(substring(f.frag_pct, charindex('Fragmented', f.frag_pct, 1) + 12, 2), '%', '') AS file_fragpct
January 7, 2014 at 2:43 pm
rho_pooka (1/7/2014)
Thanks for such prompt replies all!Koen, isn't the query that I had written a test just like your second example?
Struggling with this one, thanks again for help.
No you have...
January 7, 2014 at 1:11 pm
I can tell you that nobody around here is going to provide with a way to download a pirated copy of a book. Here is a link to the book...
January 7, 2014 at 1:04 pm
Viewing 15 posts - 6,001 through 6,015 (of 15,381 total)