| | |
TimeSheet
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2007
Posts: 4
Reputation:
Solved Threads: 0
I have created this table and is accessing it via an aspx web form. I would like to know if it possible to update the table sending the update data to a different table in the database. If Yes how do I accomplish that?
Trafmore
CREATE TABLE dbo.TimeSheet(
dt SMALLDATETIME PRIMARY KEY CLUSTERED,
isWeekDay AS CONVERT(BIT, CASE
WHEN DATEPART(dw, dt) IN (1,7) THEN 0
ELSE 1 END),
Hours_On_Duty VarChar DEFAULT 10.0,
UnpaidOT VarChar,
PaidOT VarChar,
Admin VarChar DEFAULT 10.0,
Court VarChar,
INSTR VarChar,
STDNT varChar,
COMM_SERV VarChar,
VICT_SERV VarChar,
Remarks varChar
);
GO
DECLARE @dt SMALLDATETIME;
SET @dt = '20070101';
WHILE @dt<= '20071231'
BEGIN
INSERT dbo.TimeSheet(dt) SELECT @dt;
SET @dt = @dt + 1;
END
Trafmore
CREATE TABLE dbo.TimeSheet(
dt SMALLDATETIME PRIMARY KEY CLUSTERED,
isWeekDay AS CONVERT(BIT, CASE
WHEN DATEPART(dw, dt) IN (1,7) THEN 0
ELSE 1 END),
Hours_On_Duty VarChar DEFAULT 10.0,
UnpaidOT VarChar,
PaidOT VarChar,
Admin VarChar DEFAULT 10.0,
Court VarChar,
INSTR VarChar,
STDNT varChar,
COMM_SERV VarChar,
VICT_SERV VarChar,
Remarks varChar
);
GO
DECLARE @dt SMALLDATETIME;
SET @dt = '20070101';
WHILE @dt<= '20071231'
BEGIN
INSERT dbo.TimeSheet(dt) SELECT @dt;
SET @dt = @dt + 1;
END
•
•
Join Date: Oct 2008
Posts: 2
Reputation:
Solved Threads: 0
You could try Pacific Timesheet. Great product and user iterface. Support iPhone, time clock, online ASP, etc.
http://www.pacifictimesheet.com
<a href="http://www.pacifictimesheet.com">Pacific Timesheet - Web Time Tracking Software</a>
John
http://www.pacifictimesheet.com
<a href="http://www.pacifictimesheet.com">Pacific Timesheet - Web Time Tracking Software</a>
John
![]() |
Similar Threads
- Thoughts Of The Day. (Geeks' Lounge)
- Computations In Table (MS Access and FileMaker Pro)
- get html element value using php (PHP)
- help required mysql+jsp (MySQL)
- how to connect oracle 8i database with jsp page (JSP)
- application Development (VB.NET)
- can i use a phrase as a key word? (Search Engine Optimization)
Other Threads in the ASP Forum
- Previous Thread: Configuration
- Next Thread: What to do now ???
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection connection database databaseconnection diagnostics dreamweaver excel fso iis microsoft msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption server single specfic sqlserver sqlserverconnection toolkit webserver windows7





