DataSource question
Posted: Wed Aug 23, 2006 12:15 am
sqlcommand = "dsn=test;uid=123;pwd=123;sql=select top 24
convert(nchar(5),data_time,6) as data_time from level
test.Series(i).DataSource = sqlcommand
BF1.Series(i).XValues.DateTime = True
BF1.Series(i).XValues.ValueSource = "data_time"
this sql command can't work normally.
but it can be run if i changed this sql command to
dsn=test;uid=123;pwd=123;sql=select top 24 data_time from level
what's the problem?
i can't use the key word " as "
convert(nchar(5),data_time,6) as data_time from level
test.Series(i).DataSource = sqlcommand
BF1.Series(i).XValues.DateTime = True
BF1.Series(i).XValues.ValueSource = "data_time"
this sql command can't work normally.
but it can be run if i changed this sql command to
dsn=test;uid=123;pwd=123;sql=select top 24 data_time from level
what's the problem?
i can't use the key word " as "