Click here to Skip to main content
15,885,216 members
Home / Discussions / Database
   

Database

 
QuestionVISTA and SQL SERVER 2005 Pin
Yoyosch8-Oct-07 7:23
Yoyosch8-Oct-07 7:23 
AnswerRe: VISTA and SQL SERVER 2005 Pin
Andy_L_J9-Oct-07 22:19
Andy_L_J9-Oct-07 22:19 
QuestionODB Problem ? Pin
hungdl8-Oct-07 6:36
hungdl8-Oct-07 6:36 
AnswerRe: ODB Problem ? Pin
Dave Kreskowiak8-Oct-07 6:48
mveDave Kreskowiak8-Oct-07 6:48 
GeneralRe: ODB Problem ? Pin
hungdl8-Oct-07 7:24
hungdl8-Oct-07 7:24 
GeneralRe: ODB Problem ? Pin
Dave Kreskowiak8-Oct-07 9:17
mveDave Kreskowiak8-Oct-07 9:17 
QuestionConverting Integet to Time: Pin
Shahzad.Aslam7-Oct-07 23:46
Shahzad.Aslam7-Oct-07 23:46 
AnswerRe: Converting Integet to Time: Pin
PIEBALDconsult8-Oct-07 5:16
mvePIEBALDconsult8-Oct-07 5:16 
I use:

CREATE FUNCTION [Lib].[IntToTime] (@Subject INT)  
RETURNS DATETIME AS  
BEGIN 
DECLARE @result AS DATETIME
SET @result = '1970-01-01 00:00:00'
 
SET @result = DATEADD ( HH , @Subject/10000 , @result )
SET @Subject = @Subject - @Subject/10000*10000
 
SET @result = DATEADD ( mi , @Subject/100 , @result )
SET @Subject = @Subject - @Subject/100*100
 
SET @result = DATEADD ( ss , @Subject , @result )
 
RETURN ( @result )
END


Then you can CONVERT the DateTime to string as needed.
AnswerRe: Converting Integet to Time: Pin
Virendrak11-Oct-07 0:56
Virendrak11-Oct-07 0:56 
QuestionRemote Connection Pin
Xerox47-Oct-07 21:43
professionalXerox47-Oct-07 21:43 
QuestionWhat sql server 2000 componenets do I have? Pin
Jwalant Natvarlal Soneji7-Oct-07 21:20
Jwalant Natvarlal Soneji7-Oct-07 21:20 
AnswerRe: What sql server 2000 componenets do I have? Pin
Jwalant Natvarlal Soneji8-Oct-07 16:53
Jwalant Natvarlal Soneji8-Oct-07 16:53 
Questioncross tab query problem Pin
veereshIndia7-Oct-07 20:01
veereshIndia7-Oct-07 20:01 
AnswerRe: cross tab query problem Pin
pmarfleet7-Oct-07 21:50
pmarfleet7-Oct-07 21:50 
Questionfunction multi statement table values in stored procedure Pin
Sonia Gupta7-Oct-07 19:30
Sonia Gupta7-Oct-07 19:30 
AnswerRe: function multi statement table values in stored procedure Pin
N a v a n e e t h7-Oct-07 22:12
N a v a n e e t h7-Oct-07 22:12 
GeneralRe: function multi statement table values in stored procedure Pin
Sonia Gupta7-Oct-07 22:28
Sonia Gupta7-Oct-07 22:28 
GeneralRe: function multi statement table values in stored procedure Pin
pmarfleet7-Oct-07 23:18
pmarfleet7-Oct-07 23:18 
QuestionIs it possible for SQL Server 2000 and MySQL? Pin
klaydze7-Oct-07 19:24
klaydze7-Oct-07 19:24 
AnswerRe: Is it possible for SQL Server 2000 and MySQL? Pin
Jwalant Natvarlal Soneji7-Oct-07 21:23
Jwalant Natvarlal Soneji7-Oct-07 21:23 
QuestionModify Database Pin
Widgets7-Oct-07 19:02
Widgets7-Oct-07 19:02 
QuestionApplication partitioning Pin
mikker_1237-Oct-07 7:04
mikker_1237-Oct-07 7:04 
QuestionSQL server 2005 with Enterprise Library 1.1 Pin
asif m@hmood6-Oct-07 23:15
asif m@hmood6-Oct-07 23:15 
QuestionAccount is locked Pin
Ahamed Azeem6-Oct-07 22:46
Ahamed Azeem6-Oct-07 22:46 
AnswerRe: Account is locked Pin
Paul Conrad7-Oct-07 11:11
professionalPaul Conrad7-Oct-07 11:11 

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.