Click here to Skip to main content
15,892,059 members
Home / Discussions / Database
   

Database

 
GeneralRe: Creating Records based on Quant Field Pin
Mycroft Holmes12-Nov-09 23:05
professionalMycroft Holmes12-Nov-09 23:05 
AnswerRe: Creating Records based on Quant Field Pin
Niladri_Biswas12-Nov-09 16:16
Niladri_Biswas12-Nov-09 16:16 
AnswerRe: Creating Records based on Quant Field Pin
David Skelly12-Nov-09 22:38
David Skelly12-Nov-09 22:38 
GeneralRe: Creating Records based on Quant Field Pin
David Skelly13-Nov-09 0:15
David Skelly13-Nov-09 0:15 
GeneralRe: Creating Records based on Quant Field Pin
ffowler13-Nov-09 1:50
ffowler13-Nov-09 1:50 
GeneralRe: Creating Records based on Quant Field Pin
David Skelly13-Nov-09 2:31
David Skelly13-Nov-09 2:31 
GeneralRe: Creating Records based on Quant Field Pin
ffowler13-Nov-09 2:50
ffowler13-Nov-09 2:50 
QuestionProblem with Datepart Pin
Vimalsoft(Pty) Ltd12-Nov-09 3:10
professionalVimalsoft(Pty) Ltd12-Nov-09 3:10 
Good Day all

i have the Following Query

DECLARE @CurrentTime DATETIME
SET @CurrentTime = CURRENT_TIMESTAMP
select tr.Descr [Room], tb.Purpose [Purpose], tb.Description [Description],
convert(varchar,datepart(hour,tb.starttime))+':'+convert(varchar,datepart(minute,tb.starttime)) [Start Time],
convert(varchar,datepart(hour,tb.endtime))+':'+convert(varchar,datepart(minute,tb.endtime)) [End Time],
tu.name [Requested by] from tbl_booking tb inner join tbl_resource tr
on tb.resources = tr.id
inner join tbl_user tu on tu.id = tb.RequestedByUser
where (day(startdate) = day(@CurrentTime))and(month(startdate)=month(@CurrentTime))and(year(startdate)=year(@CurrentTime))and(tb.status=1)
order by [Room],[Start Time]


and in the [Start Time]and [End Time] it gives me time that is not Complete

it Gives this

14:0

instead of

14:00


Thanks

Vuyiswa Maseko,

Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

AnswerRe: Problem with Datepart Pin
J4amieC12-Nov-09 3:52
J4amieC12-Nov-09 3:52 
AnswerRe: Problem with Datepart Pin
Not Active12-Nov-09 5:36
mentorNot Active12-Nov-09 5:36 
GeneralRe: Problem with Datepart Pin
David Skelly12-Nov-09 5:42
David Skelly12-Nov-09 5:42 
GeneralRe: Problem with Datepart Pin
Not Active12-Nov-09 5:44
mentorNot Active12-Nov-09 5:44 
AnswerRe: Problem with Datepart Pin
David Skelly12-Nov-09 5:42
David Skelly12-Nov-09 5:42 
GeneralRe: Problem with Datepart Pin
Vimalsoft(Pty) Ltd12-Nov-09 22:52
professionalVimalsoft(Pty) Ltd12-Nov-09 22:52 
QuestionChanging a column to IDENTITY Pin
garfield18511-Nov-09 22:34
garfield18511-Nov-09 22:34 
AnswerRe: Changing a column to IDENTITY Pin
Niladri_Biswas12-Nov-09 1:16
Niladri_Biswas12-Nov-09 1:16 
GeneralRe: Changing a column to IDENTITY Pin
garfield18512-Nov-09 2:41
garfield18512-Nov-09 2:41 
GeneralRe: Changing a column to IDENTITY Pin
WoutL12-Nov-09 3:05
WoutL12-Nov-09 3:05 
GeneralRe: Changing a column to IDENTITY Pin
Niladri_Biswas12-Nov-09 3:22
Niladri_Biswas12-Nov-09 3:22 
QuestionSqlConnection or what??????? i need help Pin
Mohamed El-Wehishy11-Nov-09 9:36
Mohamed El-Wehishy11-Nov-09 9:36 
NewsFree Online SQL Server 2008 R2 Developer Training Available on MSDEV Pin
brucedkyle11-Nov-09 5:56
brucedkyle11-Nov-09 5:56 
QuestionAdvice Needed - Regarding Data Transfer Between Databases On Seperate Servers [modified] Pin
It_tech11-Nov-09 4:36
It_tech11-Nov-09 4:36 
AnswerRe: Advice Needed - Regarding Data Transfer Between Databases On Seperate Servers Pin
_Damian S_11-Nov-09 13:34
professional_Damian S_11-Nov-09 13:34 
GeneralRe: Advice Needed - Regarding Data Transfer Between Databases On Seperate Servers Pin
It_tech12-Nov-09 0:44
It_tech12-Nov-09 0:44 
AnswerRe: Advice Needed - Regarding Data Transfer Between Databases On Seperate Servers Pin
Mycroft Holmes11-Nov-09 13:43
professionalMycroft Holmes11-Nov-09 13:43 

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.