Click here to Skip to main content
15,887,135 members
Home / Discussions / Database
   

Database

 
GeneralRe: what kind of DB uses .idx and .dat files Pin
Robert Smit15-Nov-02 0:48
Robert Smit15-Nov-02 0:48 
GeneralRe: what kind of DB uses .idx and .dat files Pin
Michael P Butler15-Nov-02 1:07
Michael P Butler15-Nov-02 1:07 
QuestionBest way to protect MDB file? Pin
LukeV13-Nov-02 9:59
LukeV13-Nov-02 9:59 
AnswerRe: Best way to protect MDB file? Pin
Vasudevan Deepak Kumar17-Nov-02 23:44
Vasudevan Deepak Kumar17-Nov-02 23:44 
QuestionADO Memory usage - leak? Pin
Gizz13-Nov-02 5:43
Gizz13-Nov-02 5:43 
AnswerRe: ADO Memory usage - leak? Pin
Mazdak14-Nov-02 5:47
Mazdak14-Nov-02 5:47 
GeneralTerminal Services Web Connection via ado(using c++) Pin
BP potato12-Nov-02 16:44
sussBP potato12-Nov-02 16:44 
GeneralDecimal precision Creating Table Pin
Anonymous12-Nov-02 8:19
Anonymous12-Nov-02 8:19 
Creating a database this way:
if( database.OpenEx(sSql,CDatabase::noOdbcDialog) )
{
sSql.Format( "CREATE TABLE Sounding ([Pressure (mb)] FLOAT,[Height(m)] FLOAT)");
database.ExecuteSQL(sSql);

sSql.Format("INSERT INTO Sounding VALUES('%f','%f')",mPressure,mHeight);
database.ExecuteSQL(sSql);
....

If mHeight is 17.60 it is inserted 17600000, if I change to '%.f' it is inserted 17, and if '%.2f' 1760. What is the solution to insert the right decimals?
Thanks.

GeneralRe: Decimal precision Creating Table Pin
Mazdak12-Nov-02 18:56
Mazdak12-Nov-02 18:56 
GeneralRe: Decimal precision Creating Table Pin
Anonymous13-Nov-02 5:40
Anonymous13-Nov-02 5:40 
GeneralRe: Decimal precision Creating Table Pin
Mazdak13-Nov-02 8:07
Mazdak13-Nov-02 8:07 
GeneralRe: Decimal precision Creating Table Pin
José Luis Sogorb14-Nov-02 5:03
José Luis Sogorb14-Nov-02 5:03 
GeneralRe: Decimal precision Creating Table Pin
Mazdak14-Nov-02 5:08
Mazdak14-Nov-02 5:08 
Generalproblem saving binary data into a file Pin
trozner12-Nov-02 6:16
trozner12-Nov-02 6:16 
QuestionYukon (SQL Server 2003) Questions? Pin
Larry Maccherone12-Nov-02 5:50
Larry Maccherone12-Nov-02 5:50 
GeneralHelp with ADO namespace error Pin
Paul Silvernail12-Nov-02 5:22
Paul Silvernail12-Nov-02 5:22 
GeneralRe: Help with ADO namespace error Pin
Mazdak12-Nov-02 5:31
Mazdak12-Nov-02 5:31 
GeneralRe: Help with ADO namespace error Pin
Paul Silvernail12-Nov-02 7:12
Paul Silvernail12-Nov-02 7:12 
GeneralDataSets or Direct Manipulation Pin
Sijin12-Nov-02 1:55
Sijin12-Nov-02 1:55 
GeneralRe: DataSets or Direct Manipulation Pin
Rob Graham18-Nov-02 10:58
Rob Graham18-Nov-02 10:58 
GeneralRe: DataSets or Direct Manipulation Pin
Sijin18-Nov-02 13:59
Sijin18-Nov-02 13:59 
GeneralRe: DataSets or Direct Manipulation Pin
Rob Graham18-Nov-02 17:14
Rob Graham18-Nov-02 17:14 

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.