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

Database

 
GeneralRe: Problem in String Compare Pin
Fang Ming29-Sep-07 17:02
Fang Ming29-Sep-07 17:02 
GeneralRe: Problem in String Compare Pin
Colin Angus Mackay29-Sep-07 21:22
Colin Angus Mackay29-Sep-07 21:22 
GeneralRe: Problem in String Compare Pin
Fang Ming30-Sep-07 1:02
Fang Ming30-Sep-07 1:02 
Questionretrieving servers list using dmo Pin
subai28-Sep-07 23:56
subai28-Sep-07 23:56 
AnswerRe: retrieving servers list using dmo Pin
Fang Ming29-Sep-07 1:56
Fang Ming29-Sep-07 1:56 
Questionsql to convert an int to varchar Pin
Fang Ming28-Sep-07 21:01
Fang Ming28-Sep-07 21:01 
AnswerRe: sql to convert an int to varchar Pin
subai28-Sep-07 23:36
subai28-Sep-07 23:36 
QuestionRe: sql to convert an int to varchar Pin
Fang Ming29-Sep-07 1:36
Fang Ming29-Sep-07 1:36 
ooh. i m sorry

i mean how can i convert that to varchar with leading zero:
10 -> 10
0~9 -> '00' ~ '09'

and it will be used in a " insert ... select ... from ..." statement.

i have a table that containts a datetime column.
now i want to transform the data in this to another

i have to convert datetime to varchar
such as : '2007-09-29 08:05'(datetime) -> '08:05' (varchar)

my poor statement is
"convert( varchar, datepart( hour , [DateTime] ) ) +':' +convert( varchar, datepart( minute , [DateTime]) ) "

but the result is '8:5' what my boss don't want

help me.
thanks a lot.

AnswerRe: sql to convert an int to varchar Pin
PIEBALDconsult1-Oct-07 4:50
mvePIEBALDconsult1-Oct-07 4:50 
GeneralRe: sql to convert an int to varchar Pin
Fang Ming7-Oct-07 18:31
Fang Ming7-Oct-07 18:31 
QuestionMusic Files Pin
kirthikirthi28-Sep-07 20:02
kirthikirthi28-Sep-07 20:02 
AnswerRe: Music Files Pin
gus_br28-Sep-07 20:54
gus_br28-Sep-07 20:54 
QuestionSQL Statment Pin
webhay28-Sep-07 19:26
webhay28-Sep-07 19:26 
AnswerRe: SQL Statment Pin
John-ph28-Sep-07 20:43
John-ph28-Sep-07 20:43 
QuestionObject Persistence Pin
gus_br28-Sep-07 9:18
gus_br28-Sep-07 9:18 
AnswerRe: Object Persistence Pin
Colin Angus Mackay28-Sep-07 9:44
Colin Angus Mackay28-Sep-07 9:44 
GeneralRe: Object Persistence Pin
gus_br28-Sep-07 9:52
gus_br28-Sep-07 9:52 
GeneralRe: Object Persistence Pin
Colin Angus Mackay28-Sep-07 10:03
Colin Angus Mackay28-Sep-07 10:03 
QuestionCommon Dialog Object Reference... Pin
new_phoenix28-Sep-07 9:07
new_phoenix28-Sep-07 9:07 
QuestionHaving trouble with a TableDef object... Pin
new_phoenix28-Sep-07 6:56
new_phoenix28-Sep-07 6:56 
Questioncolumn as stored procedure parameter? Pin
Ed Hill _5_28-Sep-07 6:06
Ed Hill _5_28-Sep-07 6:06 
AnswerRe: column as stored procedure parameter? Pin
John-ph28-Sep-07 10:47
John-ph28-Sep-07 10:47 
GeneralRe: column as stored procedure parameter? Pin
Ed Hill _5_1-Oct-07 0:26
Ed Hill _5_1-Oct-07 0:26 
GeneralRe: column as stored procedure parameter? Pin
John-ph2-Oct-07 19:47
John-ph2-Oct-07 19:47 
QuestionPASSWORD RETRIEVAL Pin
LyndonJohn28-Sep-07 3:34
LyndonJohn28-Sep-07 3:34 

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.