Click here to Skip to main content
15,900,110 members
Home / Discussions / Database
   

Database

 
GeneralRe: db4o Embedded DB Pin
Mike Hankey1-Aug-10 5:31
mveMike Hankey1-Aug-10 5:31 
GeneralRe: db4o Embedded DB Pin
Dan Mos1-Aug-10 5:39
Dan Mos1-Aug-10 5:39 
QuestionInsert and delete Pin
T.RATHA KRISHNAN31-Jul-10 1:52
T.RATHA KRISHNAN31-Jul-10 1:52 
AnswerRe: Insert and delete Pin
Eddy Vluggen31-Jul-10 2:19
professionalEddy Vluggen31-Jul-10 2:19 
QuestionThis May Be A Stupid Question But... [modified] Found It! Pin
Roger Wright30-Jul-10 20:14
professionalRoger Wright30-Jul-10 20:14 
AnswerRe: This May Be A Stupid Question But... Pin
Mycroft Holmes30-Jul-10 21:30
professionalMycroft Holmes30-Jul-10 21:30 
GeneralRe: This May Be A Stupid Question But... Pin
Roger Wright2-Aug-10 17:20
professionalRoger Wright2-Aug-10 17:20 
AnswerRe: This May Be A Stupid Question But... Pin
Peter_in_278030-Jul-10 21:58
professionalPeter_in_278030-Jul-10 21:58 
I haven't done it in your kind of environment, but the following approach has worked for me elsewhere:

connect_to_server();
if (error_db_not_exist == open_database(my_db))
  {
  read_from_file(canned_sql);
  run_query(canned_sql); // maybe multiple queries to run
  if (success != open_database(my_db))
    // oh, @#$%^&*!
  }

where canned_sql is the appropriate set of creates, etc. Hopefully you can get this by querying system tables on your test server. An alternative is to export your test db, then delete all the *data* from that, leaving just the "structure".
HTH
Peter
Software rusts. Simon Stephenson, ca 1994.

AnswerRe: This May Be A Stupid Question But... Pin
Jörgen Andersson30-Jul-10 23:40
professionalJörgen Andersson30-Jul-10 23:40 
GeneralRe: This May Be A Stupid Question But... Pin
Roger Wright31-Jul-10 4:34
professionalRoger Wright31-Jul-10 4:34 
AnswerRe: This May Be A Stupid Question But... Pin
PIEBALDconsult31-Jul-10 10:22
mvePIEBALDconsult31-Jul-10 10:22 
AnswerRe: This May Be A Stupid Question But... Pin
Corporal Agarn2-Aug-10 9:55
professionalCorporal Agarn2-Aug-10 9:55 
GeneralRe: This May Be A Stupid Question But... Pin
Roger Wright2-Aug-10 17:18
professionalRoger Wright2-Aug-10 17:18 
GeneralRe: This May Be A Stupid Question But... Pin
Roger Wright3-Aug-10 20:16
professionalRoger Wright3-Aug-10 20:16 
Questionquery takes long time! Pin
Jassim Rahma30-Jul-10 4:34
Jassim Rahma30-Jul-10 4:34 
AnswerRe: query takes long time! Pin
dan!sh 30-Jul-10 4:49
professional dan!sh 30-Jul-10 4:49 
AnswerRe: query takes long time! Pin
Eddy Vluggen30-Jul-10 5:07
professionalEddy Vluggen30-Jul-10 5:07 
GeneralRe: query takes long time! Pin
Jassim Rahma30-Jul-10 5:43
Jassim Rahma30-Jul-10 5:43 
GeneralRe: query takes long time! Pin
Eddy Vluggen30-Jul-10 6:04
professionalEddy Vluggen30-Jul-10 6:04 
GeneralRe: query takes long time! Pin
David Skelly30-Jul-10 6:12
David Skelly30-Jul-10 6:12 
GeneralRe: query takes long time! Pin
Eddy Vluggen30-Jul-10 6:29
professionalEddy Vluggen30-Jul-10 6:29 
AnswerRe: query takes long time! Pin
PIEBALDconsult30-Jul-10 19:13
mvePIEBALDconsult30-Jul-10 19:13 
QuestionRetrieve the value from Dynamic Sql Pin
.NET- India 30-Jul-10 2:36
.NET- India 30-Jul-10 2:36 
AnswerRe: Retrieve the value from Dynamic Sql Pin
dan!sh 30-Jul-10 3:12
professional dan!sh 30-Jul-10 3:12 
QuestionSelecting Recent row Pin
T.RATHA KRISHNAN30-Jul-10 1:41
T.RATHA KRISHNAN30-Jul-10 1:41 

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.