我想别人能用我做的程序,SQL2000+DELPHI7,我想动态创建数据库。SQL里是: use master if not exists(Select * from SysDatabases Where Name='gs') create database gs use gs
1,可这段代码在delphi里怎么写啊?
2,成功后,我机子上的数据呢?怎么让他也得到我的以前的数据啊?
----------------------------------------------
Function IThink(Boy,Girl : TPerson) : String; begin if Boy.钱 < 10W then Girl.Say(''滚!'') else begin if Girl.Anser = ''我愿意'' then Result := ''结婚'' else Result := IntToStr(88); end; 风过不折→百炼成尧 QQ: 7315910
在动态创建数据库之前应该好像要先动态连接SQL服务器啊。 大家帮帮我嘛。。。我要死了啦。。。
----------------------------------------------
Function IThink(Boy,Girl : TPerson) : String; begin if Boy.钱 < 10W then Girl.Say(''滚!'') else begin if Girl.Anser = ''我愿意'' then Result := ''结婚'' else Result := IntToStr(88); end; 风过不折→百炼成尧 QQ: 7315910