Viewing 14 posts - 1 through 14 (of 14 total)
Thanks a lot, the results is great.
CGZ (11/7/2013)
I have also changed the code to prevent recursion by adding a Tally table so...
November 7, 2013 at 8:46 pm
CGZ (11/7/2013)
I used a temp table with the data from your first post.
/***********************/
/* TEST DATA ...
November 7, 2013 at 10:46 am
show it in graphic
the excel data file on 4 Nov 2013 19:00:00 to 5 Nov 2013 09:00:00
https://drive.google.com/file/d/0B-NM1bwOKut7TFJZWEc4ZGI1VDQ/edit?usp=sharing
November 5, 2013 at 8:28 am
durai nagarajan (11/5/2013)
Just a doubt do you have backup every 1 sec? even then the time you mentioned is not matching,...
November 5, 2013 at 4:39 am
durai nagarajan (11/5/2013)
Just a doubt do you have backup every 1 sec? even then the time you mentioned is not matching,...
November 5, 2013 at 4:07 am
durai nagarajan (11/5/2013)
can I use the view to show the backup status in every 10 mins?
What do you mean by every 10 mins, view is not a job that executes...
November 5, 2013 at 3:29 am
I don't know how to use...your're inline and rcte...function
I only know a little of SQL....
Please tell me more.....thanks
September 24, 2013 at 5:58 am
cs 29850 (9/23/2013)
I found the solution of today record only
anyone can teach me who to show every day records,
select Period.[Time], count(FileBackup.Hostname)
from dbo.FileBackup, dbo.Period
where (CONVERT(varchar(19), FileBackup.DateKey, 120)...
September 24, 2013 at 5:02 am
Thanks for your're help.
I found the solution of today record only
anyone can teach me who to show every day records,
select Period.[Time], count(FileBackup.Hostname)
from dbo.FileBackup, dbo.Period
where (CONVERT(varchar(19), FileBackup.DateKey, 120)
...
September 23, 2013 at 2:29 am
Erland Sommarskog (9/22/2013)
1) CREATE TABLE statements for your table(s).
2) INSERT statements with sample data, enough to cover all relevant cases.
3) The desired result given the sample.
I will be travelling tomorrow,...
September 22, 2013 at 7:45 pm
Erland Sommarskog (9/22/2013)
Generally, when you ask this question like this, it helps if you post:
1) CREATE TABLE statements for your table(s).
2) INSERT...
September 22, 2013 at 4:42 am
Erland Sommarskog (9/22/2013)
cs 29850 (9/21/2013)
1.where can create inline function? In view? or where?
Not sure why you would create an inline function at all. The reference I gave you is from...
September 22, 2013 at 3:31 am
pietlinden (9/21/2013)
If you can group by half hours, then you're golden. Try something like getting the number of half hours since midnight, and then...
September 21, 2013 at 11:17 pm
Erland Sommarskog (9/21/2013)
http://www.sommarskog.se/arrays-in-sql-2005.html#tblnum (only read down to the header "An inline function".)
Once you have this table,...
September 21, 2013 at 11:14 pm
Viewing 14 posts - 1 through 14 (of 14 total)