Click here to Skip to main content
15,888,610 members
Home / Discussions / Database
   

Database

 
GeneralRe: Updating Database through datagrid Pin
Raheem MA4-Apr-07 1:37
Raheem MA4-Apr-07 1:37 
QuestionTransactions in a stored procedure Pin
gauthee4-Apr-07 1:20
gauthee4-Apr-07 1:20 
AnswerRe: Transactions in a stored procedure Pin
joon vh.4-Apr-07 1:35
joon vh.4-Apr-07 1:35 
AnswerRe: Transactions in a stored procedure Pin
andyharman4-Apr-07 3:14
professionalandyharman4-Apr-07 3:14 
QuestionHow to Execute the DTS Package from C#.net Code Behind? Pin
SrinivasanPrabakaran4-Apr-07 0:51
SrinivasanPrabakaran4-Apr-07 0:51 
QuestionConverting seconds to hours and mins Pin
si_694-Apr-07 0:43
si_694-Apr-07 0:43 
AnswerRe: Converting seconds to hours and mins Pin
Hayder Marzouk4-Apr-07 2:13
Hayder Marzouk4-Apr-07 2:13 
AnswerRe: Converting seconds to hours and mins Pin
DQNOK4-Apr-07 8:40
professionalDQNOK4-Apr-07 8:40 
I may be too simplistic here, but I tend to agree with Hayder marzouk
(presuming I'm understand what you're trying to accomplish here).

I used a slightly different formula than he did: his didn't work quite right when I tried it in Access .. probably my fault. In MSAccess, this works:

CREATE PROCEDURE pcSeconds2FormattedTime( seconds INTEGER ) AS
SELECT (@seconds\3600) & ':' & ((@seconds - (@seconds \3600)*3600 )\60) & ':' & @seconds - (3600*(@seconds\3600) + 60*((@seconds - (@seconds \3600)*3600 )\60))
FROM dual;

(presuming you have something called "dual").

If you don't have the '\' operator (integer division), then use the FLOOR function as suggested. Also, in a real db system, use the real concatenation operator '||', not the '&' ampersand.

Depending on whether the SQL compiler will do "common subexpression elimination", this may or may not run any faster than your method.

GeneralRe: Converting seconds to hours and mins Pin
si_695-Apr-07 0:50
si_695-Apr-07 0:50 
QuestionSQL Server Management Studio Express Pin
Zalro3-Apr-07 23:24
Zalro3-Apr-07 23:24 
AnswerRe: SQL Server Management Studio Express Pin
originSH5-Apr-07 0:51
originSH5-Apr-07 0:51 
QuestionCustom Replication / Mirroring for SQL Server 2005 Express Pin
Ligblou3-Apr-07 21:30
Ligblou3-Apr-07 21:30 
QuestionMS Access as Database and SQL: Problem in WHERE clause Pin
santoshsan3-Apr-07 21:20
santoshsan3-Apr-07 21:20 
AnswerRe: MS Access as Database and SQL: Problem in WHERE clause Pin
Adeel Chaudhry3-Apr-07 21:34
Adeel Chaudhry3-Apr-07 21:34 
GeneralRe: MS Access as Database and SQL: Problem in WHERE clause Pin
Colin Angus Mackay3-Apr-07 21:38
Colin Angus Mackay3-Apr-07 21:38 
GeneralRe: MS Access as Database and SQL: Problem in WHERE clause Pin
santoshsan3-Apr-07 23:15
santoshsan3-Apr-07 23:15 
GeneralRe: MS Access as Database and SQL: Problem in WHERE clause Pin
santoshsan3-Apr-07 22:54
santoshsan3-Apr-07 22:54 
AnswerRe: MS Access as Database and SQL: Problem in WHERE clause Pin
Colin Angus Mackay3-Apr-07 21:37
Colin Angus Mackay3-Apr-07 21:37 
GeneralRe: MS Access as Database and SQL: Problem in WHERE clause Pin
santoshsan3-Apr-07 23:09
santoshsan3-Apr-07 23:09 
AnswerRe: MS Access as Database and SQL: Problem in WHERE clause Pin
ChandraRam4-Apr-07 0:17
ChandraRam4-Apr-07 0:17 
Questionproblem when creating database independant access layer Pin
Hassan Amaar3-Apr-07 21:11
Hassan Amaar3-Apr-07 21:11 
AnswerRe: problem when creating database independant access layer Pin
Paddy Boyd3-Apr-07 23:55
Paddy Boyd3-Apr-07 23:55 
GeneralRe: problem when creating database independant access layer Pin
Hassan Amaar5-Apr-07 1:49
Hassan Amaar5-Apr-07 1:49 
GeneralRe: problem when creating database independant access layer Pin
Paddy Boyd5-Apr-07 2:29
Paddy Boyd5-Apr-07 2:29 
AnswerRe: problem when creating database independant access layer Pin
Hayder Marzouk4-Apr-07 2:26
Hayder Marzouk4-Apr-07 2:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.