Showing posts with label software. Show all posts
Showing posts with label software. Show all posts

Monday, March 26, 2012

Net 1.1 and 2.0 and SQLServer 2000 and 2005 at one machine

Hi,
we have a VServer with Server 2003.
I'd like to install Software for net 1.1, 2.0 and also SQLServer 2000 and
2005 on it.
Does anybody knows if that's possible without problems. I have a consultant
here (from cognos) who tells me it's not possible. Can't believe that.
Please help.
Thanks,
Uli
Wer nicht fragt, stirbt dumm.
If you don''t ask, you''ll die as a dumba**.
Hello Uli,
I've certainly done 2000 and 2005 on the same physical host before without
implications (other than competing for memory, cpu, etc.) I'm not sure about
Virtual Server, but I can't tell you why it would be any different. Is the
consultant offering any specifics?
Thanks,
Kent Tegels
http://staff.develop.com/ktegels/
|||No.
Only not to run 2000 and 2005 on one system.
But we will go on and try with both on one system.
Thanks a lot.
Uli
Wer nicht fragt, stirbt dumm.
If you don''''t ask, you''''ll die as a dumba**.
"Kent Tegels" wrote:

> Hello Uli,
> I've certainly done 2000 and 2005 on the same physical host before without
> implications (other than competing for memory, cpu, etc.) I'm not sure about
> Virtual Server, but I can't tell you why it would be any different. Is the
> consultant offering any specifics?
> Thanks,
> Kent Tegels
> http://staff.develop.com/ktegels/
>
>
|||Uli formulated the question :
> Hi,

> we have a VServer with Server 2003.

> I'd like to install Software for net 1.1, 2.0 and also SQLServer 2000 and
> 2005 on it.
> Does anybody knows if that's possible without problems. I have a consultant
> here (from cognos) who tells me it's not possible. Can't believe that.

> Please help.

> Thanks,
> Uli
funny you should ask
I am doing exactly what you want to do
be it that I use VirtualPC cause I am still in test
so far everything is working fine
grtz
|||Hi Uli
By requiring .NET Framework 1.1 implies the server is doing more than just
run SQL Server. As Kent says running SQL 2000 and SQL 2005 on a single system
works if you have enough resources, also having both frameworks is possible
see http://msdn.microsoft.com/msdnmag/is.../default.aspx,
which implies that if this can't be done the problem is elsewhere or does not
exist!
John
"Uli" wrote:
[vbcol=seagreen]
> No.
> Only not to run 2000 and 2005 on one system.
> But we will go on and try with both on one system.
> Thanks a lot.
> Uli
> --
> Wer nicht fragt, stirbt dumm.
> If you don''''t ask, you''''ll die as a dumba**.
>
> "Kent Tegels" wrote:

Friday, March 23, 2012

Net 1.1 and 2.0 and SQLServer 2000 and 2005 at one machine

Hi,
we have a VServer with Server 2003.
I'd like to install Software for net 1.1, 2.0 and also SQLServer 2000 and
2005 on it.
Does anybody knows if that's possible without problems. I have a consultant
here (from cognos) who tells me it's not possible. Can't believe that.
Please help.
Thanks,
Uli
--
Wer nicht fragt, stirbt dumm.
If you don''t ask, you''ll die as a dumba**.Hello Uli,
I've certainly done 2000 and 2005 on the same physical host before without
implications (other than competing for memory, cpu, etc.) I'm not sure about
Virtual Server, but I can't tell you why it would be any different. Is the
consultant offering any specifics?
Thanks,
Kent Tegels
http://staff.develop.com/ktegels/|||No.
Only not to run 2000 and 2005 on one system.
But we will go on and try with both on one system.
Thanks a lot.
Uli
--
Wer nicht fragt, stirbt dumm.
If you don''''t ask, you''''ll die as a dumba**.
"Kent Tegels" wrote:

> Hello Uli,
> I've certainly done 2000 and 2005 on the same physical host before without
> implications (other than competing for memory, cpu, etc.) I'm not sure abo
ut
> Virtual Server, but I can't tell you why it would be any different. Is the
> consultant offering any specifics?
> Thanks,
> Kent Tegels
> http://staff.develop.com/ktegels/
>
>|||Uli formulated the question :
> Hi,

> we have a VServer with Server 2003.

> I'd like to install Software for net 1.1, 2.0 and also SQLServer 2000 and
> 2005 on it.
> Does anybody knows if that's possible without problems. I have a consultan
t
> here (from cognos) who tells me it's not possible. Can't believe that.

> Please help.

> Thanks,
> Uli
funny you should ask
I am doing exactly what you want to do
be it that I use VirtualPC cause I am still in test
so far everything is working fine
grtz|||Hi Uli
By requiring .NET Framework 1.1 implies the server is doing more than just
run SQL Server. As Kent says running SQL 2000 and SQL 2005 on a single syste
m
works if you have enough resources, also having both frameworks is possible
see [url]http://msdn.microsoft.com/msdnmag/issues/06/03/CLRInsideOut/default.aspx,[/url
]
which implies that if this can't be done the problem is elsewhere or does no
t
exist!
John
"Uli" wrote:
[vbcol=seagreen]
> No.
> Only not to run 2000 and 2005 on one system.
> But we will go on and try with both on one system.
> Thanks a lot.
> Uli
> --
> Wer nicht fragt, stirbt dumm.
> If you don''''t ask, you''''ll die as a dumba**.
>
> "Kent Tegels" wrote:
>sql

Net 1.1 and 2.0 and SQLServer 2000 and 2005 at one machine

Hi,
we have a VServer with Server 2003.
I'd like to install Software for net 1.1, 2.0 and also SQLServer 2000 and
2005 on it.
Does anybody knows if that's possible without problems. I have a consultant
here (from cognos) who tells me it's not possible. Can't believe that.
Please help.
Thanks,
Uli
--
Wer nicht fragt, stirbt dumm.
If you don''t ask, you''ll die as a dumba**.Hello Uli,
I've certainly done 2000 and 2005 on the same physical host before without
implications (other than competing for memory, cpu, etc.) I'm not sure about
Virtual Server, but I can't tell you why it would be any different. Is the
consultant offering any specifics?
Thanks,
Kent Tegels
http://staff.develop.com/ktegels/|||No.
Only not to run 2000 and 2005 on one system.
But we will go on and try with both on one system.
Thanks a lot.
Uli
--
Wer nicht fragt, stirbt dumm.
If you don''''t ask, you''''ll die as a dumba**.
"Kent Tegels" wrote:
> Hello Uli,
> I've certainly done 2000 and 2005 on the same physical host before without
> implications (other than competing for memory, cpu, etc.) I'm not sure about
> Virtual Server, but I can't tell you why it would be any different. Is the
> consultant offering any specifics?
> Thanks,
> Kent Tegels
> http://staff.develop.com/ktegels/
>
>|||Uli formulated the question :
> Hi,
> we have a VServer with Server 2003.
> I'd like to install Software for net 1.1, 2.0 and also SQLServer 2000 and
> 2005 on it.
> Does anybody knows if that's possible without problems. I have a consultant
> here (from cognos) who tells me it's not possible. Can't believe that.
> Please help.
> Thanks,
> Uli
funny you should ask
I am doing exactly what you want to do
be it that I use VirtualPC cause I am still in test
so far everything is working fine
grtz|||Hi Uli
By requiring .NET Framework 1.1 implies the server is doing more than just
run SQL Server. As Kent says running SQL 2000 and SQL 2005 on a single system
works if you have enough resources, also having both frameworks is possible
see http://msdn.microsoft.com/msdnmag/issues/06/03/CLRInsideOut/default.aspx,
which implies that if this can't be done the problem is elsewhere or does not
exist!
John
"Uli" wrote:
> No.
> Only not to run 2000 and 2005 on one system.
> But we will go on and try with both on one system.
> Thanks a lot.
> Uli
> --
> Wer nicht fragt, stirbt dumm.
> If you don''''t ask, you''''ll die as a dumba**.
>
> "Kent Tegels" wrote:
> > Hello Uli,
> >
> > I've certainly done 2000 and 2005 on the same physical host before without
> > implications (other than competing for memory, cpu, etc.) I'm not sure about
> > Virtual Server, but I can't tell you why it would be any different. Is the
> > consultant offering any specifics?
> >
> > Thanks,
> > Kent Tegels
> > http://staff.develop.com/ktegels/
> >
> >
> >

Wednesday, March 7, 2012

Needed software for designing reports

We currently have SQL 2005 (enterprise) reporting services hitting an
odbc based backend (mysql usually). It works great. I run Visual
Studio Pro (and have msdn sql server on my local machine), develop
reports locally and deploy them.
I know the express edition of SQL 2005 reporting services cannot use
an ODBC datasource. Only the standard and up versions.
My question is: For other employees to create and deploy reports what
software (and licenses) are needed? Ideally, I'd love to just deploy
Visual Studio Express and SQL 2005 Express for the users that need to
modify reports, but I have a feeling that won't work...
any ideas?
thank you!If they are just designing reports then you can give the BI Studio (not sure
if that is what it is called). When you install the designer it installs a
version of VS if you do not have it installed. This is free. Also, there are
no licensing issue either. RS is licensed by the server, not by where you
have the client tools installed.
You will want to have a server they can deploy to as part of the development
process, however, for most of their testing they can do this from the
development environment.
If the users can't handle Report Designer (which is really a developer
targeted tool) then check out report builder.
Note, you do not need SQL Server install locally in order to design reports.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
<eric.gay@.gmail.com> wrote in message
news:1179174786.894457.142220@.h2g2000hsg.googlegroups.com...
> We currently have SQL 2005 (enterprise) reporting services hitting an
> odbc based backend (mysql usually). It works great. I run Visual
> Studio Pro (and have msdn sql server on my local machine), develop
> reports locally and deploy them.
> I know the express edition of SQL 2005 reporting services cannot use
> an ODBC datasource. Only the standard and up versions.
> My question is: For other employees to create and deploy reports what
> software (and licenses) are needed? Ideally, I'd love to just deploy
> Visual Studio Express and SQL 2005 Express for the users that need to
> modify reports, but I have a feeling that won't work...
> any ideas?
> thank you!
>

NEED VERY BASIC HELP

At my workplace our ERP software in on a VFP database. I have learned quite
a bit about extracting data with the select statements from the VFP
database. We are in the talks of converting the the SQL version of our ERP
and I have some very basic questions since I am extremely new to the SQL
world.
I have created executable forms in VFP that queries the VFP tables for
certain users. Can I continue to use these forms or do I need to go to
another software. Is my understanding correct that SQL cannot create forms
like the VFP does? If I can use the VFP interface what is the Select syntax
to access the SQL database from within the VFP interface?
The VFP looks like this: Select 'field names' from 'database name'!'table
name'
What would the SQL look like? I can use the Query Analyzer to do Select
statements but I would like to be able to query the SQL database from within
the VFP interface. Thanks for your help.
Please see my comments to your other posts.
Cindy Winegarden MCSD, Microsoft Most Valuable Professional
cindy_winegarden@.msn.com www.cindywinegarden.com
Blog: http://spaces.msn.com/members/cindywinegarden
"Preacher Man" <nospam> wrote in message
news:uSJS23GwFHA.2808@.TK2MSFTNGP10.phx.gbl...

NEED VERY BASIC HELP

At my workplace our ERP software in on a VFP database. I have learned quite
a bit about extracting data with the select statements from the VFP
database. We are in the talks of converting the the SQL version of our ERP
and I have some very basic questions since I am extremely new to the SQL
world.
I have created executable forms in VFP that queries the VFP tables for
certain users. Can I continue to use these forms or do I need to go to
another software. Is my understanding correct that SQL cannot create forms
like the VFP does? If I can use the VFP interface what is the Select syntax
to access the SQL database from within the VFP interface?
The VFP looks like this: Select 'field names' from 'database name'!'table
name'
What would the SQL look like? I can use the Query Analyzer to do Select
statements but I would like to be able to query the SQL database from within
the VFP interface. Thanks for your help.
Please see my comments to your other posts.
Cindy Winegarden MCSD, Microsoft Most Valuable Professional
cindy_winegarden@.msn.com www.cindywinegarden.com
Blog: http://spaces.msn.com/members/cindywinegarden
"Preacher Man" <nospam> wrote in message
news:uSJS23GwFHA.2808@.TK2MSFTNGP10.phx.gbl...

NEED VERY BASIC HELP

At my workplace our ERP software in on a VFP database. I have learned quite
a bit about extracting data with the select statements from the VFP
database. We are in the talks of converting the the SQL version of our ERP
and I have some very basic questions since I am extremely new to the SQL
world.
I have created executable forms in VFP that queries the VFP tables for
certain users. Can I continue to use these forms or do I need to go to
another software. Is my understanding correct that SQL cannot create forms
like the VFP does? If I can use the VFP interface what is the Select syntax
to access the SQL database from within the VFP interface?
The VFP looks like this: Select 'field names' from 'database name'!'table
name'
What would the SQL look like? I can use the Query Analyzer to do Select
statements but I would like to be able to query the SQL database from within
the VFP interface. Thanks for your help.Please see my comments to your other posts.
Cindy Winegarden MCSD, Microsoft Most Valuable Professional
cindy_winegarden@.msn.com www.cindywinegarden.com
Blog: http://spaces.msn.com/members/cindywinegarden
"Preacher Man" <nospam> wrote in message
news:uSJS23GwFHA.2808@.TK2MSFTNGP10.phx.gbl...

Saturday, February 25, 2012

Need Urgent Help...............

Hi i am manish,working wth sql server2000
Need Urgent Help............
Currently,we are preparing our one software,
I want to enfore some security check ,so that user of that software not able
to watch what kind of data that software contains
security i need for that
1) application level: no other external software are allowed
2)default Windows NT groups are to be disable
3) user should able to execute any kind select ,etc query
Regards
ManishHave a look at Application Roles in BOL. By activating an application role
from your application and by only granting permissions to that application
role, you should be able to get the behaviour you require
HTH
Jasper Smith (SQL Server MVP)
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"Manish Mokadam" <manish.mokadam@.honeywell.com> wrote in message
news:471E447A-D6B2-4361-8814-AF59362FA34D@.microsoft.com...
> Hi i am manish,working wth sql server2000
> Need Urgent Help............
> Currently,we are preparing our one software,
> I want to enfore some security check ,so that user of that software not
able to watch what kind of data that software contains
> security i need for that
> 1) application level: no other external software are allowed
> 2)default Windows NT groups are to be disable
> 3) user should able to execute any kind select ,etc query
>
> Regards
> Manish

need urgent help

Hi,

I am creating a attendance sheet software for inhouse use.

my data is like this:-

-----------------------------
| name | login time | logout
time |
-----------------------------
| a | 2007-11-10 12:00:00 | 2007-11-10
16:00:00 |
-----------------------------
| b | 2007-11-10 15:00:00 | 2007-11-10
18:00:00 |
-----------------------------

My requirement:-

I want to generate an hourly report like this:-
----------------------------
date time range total people logged
in
----------------------------
2007-11-10 0 -2 0
----------------------------
2007-12-10 2-4 0
----------------------------
..
..
----------------------------
2007-11-10 12-14 1
----------------------------
2007-11-10 14-16 2
----------------------------
2007-11-10 16-18 1
-----------------------------
..
..
----------------------------
2007-11-10 22-24 0
----------------------------

This is what I want to creat , but I don't know how can I generate
such kind of report.

Can you please guide me for the same. Please reply urgently.

Thanks & Regards,
BhishmHi Bhishm,

I'm afraid you will need to supply a lot more information than this.
What table(s) exist for storing these details? What technology are you
using to design the report? What does the "Time Range" value in the
report represent (looks like hours?) Do you simply need a SQL
Statement to prepare data in the "report" format you specified?

If I simply assume that everything un-said is as I imagine it, I guess
the solution might be something like:
/* Initialise data table */
CREATE TABLE tblLog (LogName nvarchar(50), LogInTime datetime,
LogOutTime datetime)

INSERT INTO tblLog (LogName, LogInTime, LogOutTime)
SELECT 'personA', '2007-11-10T12:00:00', '2007-11-10T16:00:00'
UNION ALL
SELECT 'personB', '2007-11-10T15:00:00', '2007-11-10T18:00:00'
UNION ALL
SELECT 'personC', '2007-11-10T11:00:00', '2007-11-10T14:00:00'

/* Create supporting table */
CREATE TABLE HrInDay (HrMin INT, HrMax INT, TimeRange VARCHAR(10))

DECLARE @.i INT, @.Date VARCHAR(8)

SET @.i = 0
SET @.Date = '20071110' -- Date parameter for "Report"

WHILE @.i < 24
BEGIN
INSERT INTO HrInDay (HrMin, HrMax, TimeRange)
VALUES (@.i, @.i + 2, CAST(@.i AS VARCHAR) + ' - ' + CAST(@.i + 2 AS
VARCHAR))
SET @.i = @.i + 2
END

/* Select from a derived table so it's sorted - there is probably a
better way to do this but I'm too lazy to find it :) */
SELECT LogDate, TimeRange, NoPplLogged
FROM (
SELECT @.Date AS LogDate,
MAX(TimeRange) AS TimeRange,
HrMin,
COUNT(DISTINCT LogName) AS NoPplLogged
FROM tblLog
RIGHT JOIN HrInDay
ON DATEPART(hh, LogInTime) < HrMax
AND DATEPART(hh, LogOutTime) HrMin
AND CONVERT(VARCHAR(8), LogInTime, 112) = @.Date
GROUP BY HrMin
) AS Report

DROP TABLE HrInDay
DROP TABLE tblLog

Good luck!
J|||Thanks a lot :) JhofM for showing the way.

I got a lot of help from it in solving it.

Now I am looking into possilities and will let you know my results.

Thanks a lot again, it's of great help

need urgent help

Hi,
I am creating a attendance sheet software for inhouse use.
my data is like this:-
-----
| name | login time | logout
time |
-----
| a | 2007-11-10 12:00:00 | 2007-11-10
16:00:00 |
-----
| b | 2007-11-10 15:00:00 | 2007-11-10
18:00:00 |
-----
My requirement:-
I want to generate an hourly report like this:-
----
date time range total people logged
in
-----
2007-11-10 0 -2 0
----
2007-12-10 2-4 0
----
.
.
-----
2007-11-10 12-14 1
-----
2007-11-10 14-16 2
----
2007-11-10 16-18 1
-----
.
.
-----
2007-11-10 22-24 0
----
This is what I want to creat , but I don't know how can I generate
such kind of report.
Can you please guide me for the same. Please reply urgently.
Thanks & Regards,
Bhishm> This is what I want to creat , but I don't know how can I generate
> such kind of report.
An idea is to create a temp table, and filling it op with one row at a time.
The rows can be foud by declaring a datetime variable, and assigning it the
lowest datetime you need to have in your report.
Then you kan do something like this:
create table #temptable (...)
declare startdate datetime
set @.startdate '2007-11-20 00:00:00.000'
while @.startdate < getdate()
begin
insert into #temptable
select @.startdate as time, count(*)
from loggingtable
where login_time between @.startdate and dateadd(hh, 2, @.startdate)
group by login_time
set @.startdate = dateadd(hh,2,@.startdate)
end
The above is not tested, but my idea should shine through, so you can
continue your own work.
/Sjang|||Brishim
Untested
create table #t (name char(1),login datetime,logout datetime)
insert into #t values ('a', '2007-11-10 12:00:00','2007-11-10 16:00:00')
insert into #t values ('b', '2007-11-10 15:00:00','2007-11-10 18:00:00')
select '12-14' [time range] ,
count(case when convert(char(2),login,108) >= 12 and
convert(char(2),login,108)< 15
or convert(char(2),logout,108) >= 12 and convert(char(2),logout,108)<
15
then 1 end) [total people logged] from #t
union all
select '14-16' [time range],
count(case when convert(char(2),login,108) >= 14 and
convert(char(2),login,108)< 17
or convert(char(2),logout,108) >= 14 and convert(char(2),logout,108)<
17
then 1 end)
from #t
"Bhishm" <bhishms@.gmail.com> wrote in message
news:f74d745f-661a-4a57-8b18-a685b8658c43@.i37g2000hsd.googlegroups.com...
> Hi,
> I am creating a attendance sheet software for inhouse use.
> my data is like this:-
> -----
> | name | login time | logout
> time |
> -----
> | a | 2007-11-10 12:00:00 | 2007-11-10
> 16:00:00 |
> -----
> | b | 2007-11-10 15:00:00 | 2007-11-10
> 18:00:00 |
> -----
> My requirement:-
> I want to generate an hourly report like this:-
> ----
> date time range total people logged
> in
> -----
> 2007-11-10 0 -2 0
> ----
> 2007-12-10 2-4 0
> ----
> .
> .
> -----
> 2007-11-10 12-14 1
> -----
> 2007-11-10 14-16 2
> ----
> 2007-11-10 16-18 1
> -----
> .
> .
> -----
> 2007-11-10 22-24 0
> ----
>
> This is what I want to creat , but I don't know how can I generate
> such kind of report.
> Can you please guide me for the same. Please reply urgently.
> Thanks & Regards,
> Bhishm

need urgent help

Hi,
I am creating a attendance sheet software for inhouse use.
my data is like this:-
----
--
| name | login time | logout
time |
----
--
| a | 2007-11-10 12:00:00 | 2007-11-10
16:00:00 |
----
--
| b | 2007-11-10 15:00:00 | 2007-11-10
18:00:00 |
----
--
My requirement:-
I want to generate an hourly report like this:-
----
--
date time range total people logged
in
----
--
2007-11-10 0 -2 0
----
--
2007-12-10 2-4 0
----
--
.
.
----
--
2007-11-10 12-14 1
----
--
2007-11-10 14-16 2
----
--
2007-11-10 16-18 1
----
--
.
.
----
--
2007-11-10 22-24 0
----
--
This is what I want to creat , but I don't know how can I generate
such kind of report.
Can you please guide me for the same. Please reply urgently.
Thanks & Regards,
Bhishm> This is what I want to creat , but I don't know how can I generate
> such kind of report.
An idea is to create a temp table, and filling it op with one row at a time.
The rows can be foud by declaring a datetime variable, and assigning it the
lowest datetime you need to have in your report.
Then you kan do something like this:
create table #temptable (...)
declare startdate datetime
set @.startdate '2007-11-20 00:00:00.000'
while @.startdate < getdate()
begin
insert into #temptable
select @.startdate as time, count(*)
from loggingtable
where login_time between @.startdate and dateadd(hh, 2, @.startdate)
group by login_time
set @.startdate = dateadd(hh,2,@.startdate)
end
The above is not tested, but my idea should shine through, so you can
continue your own work.
/Sjang|||Brishim
Untested
create table #t (name char(1),login datetime,logout datetime)
insert into #t values ('a', '2007-11-10 12:00:00','2007-11-10 16:00:00')
insert into #t values ('b', '2007-11-10 15:00:00','2007-11-10 18:00:00')
select '12-14' [time range] ,
count(case when convert(char(2),login,108) >= 12 and
convert(char(2),login,108)< 15
or convert(char(2),logout,108) >= 12 and convert(char(2),logout,108)<
15
then 1 end) [total people logged] from #t
union all
select '14-16' [time range],
count(case when convert(char(2),login,108) >= 14 and
convert(char(2),login,108)< 17
or convert(char(2),logout,108) >= 14 and convert(char(2),logout,108)<
17
then 1 end)
from #t
"Bhishm" <bhishms@.gmail.com> wrote in message
news:f74d745f-661a-4a57-8b18-a685b8658c43@.i37g2000hsd.googlegroups.com...
> Hi,
> I am creating a attendance sheet software for inhouse use.
> my data is like this:-
> ----
--
> | name | login time | logout
> time |
> ----
--
> | a | 2007-11-10 12:00:00 | 2007-11-10
> 16:00:00 |
> ----
--
> | b | 2007-11-10 15:00:00 | 2007-11-10
> 18:00:00 |
> ----
--
> My requirement:-
> I want to generate an hourly report like this:-
> ----
--
> date time range total people logged
> in
> ----
--
> 2007-11-10 0 -2 0
> ----
--
> 2007-12-10 2-4 0
> ----
--
> .
> .
> ----
--
> 2007-11-10 12-14 1
> ----
--
> 2007-11-10 14-16 2
> ----
--
> 2007-11-10 16-18 1
> ----
--
> .
> .
> ----
--
> 2007-11-10 22-24 0
> ----
--
>
> This is what I want to creat , but I don't know how can I generate
> such kind of report.
> Can you please guide me for the same. Please reply urgently.
> Thanks & Regards,
> Bhishm

need urgent help

Hi,
I am creating a attendance sheet software for inhouse use.
my data is like this:-
-----
| name | login time | logout
time |
-----
| a | 2007-11-10 12:00:00 | 2007-11-10
16:00:00 |
-----
| b | 2007-11-10 15:00:00 | 2007-11-10
18:00:00 |
-----
My requirement:-
I want to generate an hourly report like this:-
date time range total people logged
in
-----
2007-11-10 0 -2 0
2007-12-10 2-4 0
..
..
-----
2007-11-10 12-14 1
-----
2007-11-10 14-16 2
2007-11-10 16-18 1
-----
..
..
-----
2007-11-10 22-24 0
This is what I want to creat , but I don't know how can I generate
such kind of report.
Can you please guide me for the same. Please reply urgently.
Thanks & Regards,
Bhishm
Brishim
Untested
create table #t (name char(1),login datetime,logout datetime)
insert into #t values ('a', '2007-11-10 12:00:00','2007-11-10 16:00:00')
insert into #t values ('b', '2007-11-10 15:00:00','2007-11-10 18:00:00')
select '12-14' [time range] ,
count(case when convert(char(2),login,108) >= 12 and
convert(char(2),login,108)< 15
or convert(char(2),logout,108) >= 12 and convert(char(2),logout,108)<
15
then 1 end) [total people logged] from #t
union all
select '14-16' [time range],
count(case when convert(char(2),login,108) >= 14 and
convert(char(2),login,108)< 17
or convert(char(2),logout,108) >= 14 and convert(char(2),logout,108)<
17
then 1 end)
from #t
"Bhishm" <bhishms@.gmail.com> wrote in message
news:f74d745f-661a-4a57-8b18-a685b8658c43@.i37g2000hsd.googlegroups.com...
> Hi,
> I am creating a attendance sheet software for inhouse use.
> my data is like this:-
> -----
> | name | login time | logout
> time |
> -----
> | a | 2007-11-10 12:00:00 | 2007-11-10
> 16:00:00 |
> -----
> | b | 2007-11-10 15:00:00 | 2007-11-10
> 18:00:00 |
> -----
> My requirement:-
> I want to generate an hourly report like this:-
> ----
> date time range total people logged
> in
> -----
> 2007-11-10 0 -2 0
> ----
> 2007-12-10 2-4 0
> ----
> .
> .
> -----
> 2007-11-10 12-14 1
> -----
> 2007-11-10 14-16 2
> ----
> 2007-11-10 16-18 1
> -----
> .
> .
> -----
> 2007-11-10 22-24 0
> ----
>
> This is what I want to creat , but I don't know how can I generate
> such kind of report.
> Can you please guide me for the same. Please reply urgently.
> Thanks & Regards,
> Bhishm