Viewing 15 posts - 9,841 through 9,855 (of 26,489 total)
Try thie:
with testdata as ( -- this cte is only used to provide the test data for the code below
select
cast(stuff(dt.MyTime,8,1,'.') as time) MyTime
from
(values ('0:12:14:124'),('0:08:16:361'),('0:08:57:705')) dt(MyTime)
)
select
...
September 4, 2012 at 10:01 am
Try printing out the sql code before you execute it. You may find the problem there. Nothing in the code provided can help as it looks like it...
September 4, 2012 at 9:53 am
CELKO (9/3/2012)
September 4, 2012 at 9:48 am
Not having anything to test with, this is a possible alternative that converts your multi-statement tvf into an inline tvf. Test it out and compare it to what you...
September 4, 2012 at 9:44 am
Sean Lange (9/4/2012)
Lynn Pettis (9/4/2012)
Sean Lange (9/4/2012)
September 4, 2012 at 9:03 am
sivajii (9/3/2012)
...sorry Lynn Pettis if anything hurts u i am sorry
Not sure where you get the idea that anything hurts. Just trying to...
September 4, 2012 at 9:02 am
Sean Lange (9/4/2012)
September 4, 2012 at 8:58 am
Missed the draft. I was walking the South Rim of the Grand Canyon with my daughter and one of her friends.
I need to see what my team looks like.
September 4, 2012 at 8:44 am
ananda.murugesan (9/4/2012)
what could be issues as below records for mirror server? It is showing time to send INFINITE
Time Recorded
Role - Mirror
Mirror - Synchronized
UnusendLog - 611 KB
un restoredLog - 0 KB
Time...
September 4, 2012 at 6:46 am
The skeleton you show us is an inline table valued function.
September 3, 2012 at 8:09 pm
sivajii (9/3/2012)
here i used CROSS APPLY dbo.DelimitedSplit8k(@VALUES,'')ds funtion to split the words 'the cri word'
declare @value varchar(800)='the cri word'
function ...
September 3, 2012 at 5:48 pm
sivag,
For your informantion, we are volunteers on this site providing help to others as part of giving back to the SQL Server community.
We are willing to help you, but you...
September 3, 2012 at 5:33 pm
Try unioning the data first, then aggregating it all. Look up CTE's and/or derived tables. I would do more but I need to hit the road as I...
August 31, 2012 at 3:12 am
Modify as needed for your site:
SELECT
DATEADD(dd, 0, DATEDIFF(dd, 0, createdate)) AS createdate,
COUNT(DATEADD(dd, 0, DATEDIFF(dd, 0, createdate))) AS totalcount,
sum(case...
August 30, 2012 at 1:24 pm
Your query returns nothing from the sample data provided.
August 30, 2012 at 1:17 pm
Viewing 15 posts - 9,841 through 9,855 (of 26,489 total)