300分求BCB+SQL源代码

tccsdn 2003-01-08 01:37:06
小弟学BCB有一段时间了,在CSDN上的各位帮助之下,对BCB有了一定的了解
,最近想学SQL,不知道怎么下手,不知道和本地数据库有什么样的区别?我在WINDOWS2000上装了一下SQL2000,提示不能装服务器端,不知怎么安装,我想在公司局域
网上搭建个平台,就是装不上。我要求的代码只要能反映存取SQL服务器上的一个表就行了,目的是在总体上有一个了解,或者是提供点BCB+SQL的学习资源。
本来是想放300分的,怎么CSDN不肯呢
...全文
13 26 打赏 收藏 转发到动态 举报
写回复
用AI写文章
26 条回复
切换为时间正序
请发表友善的回复…
发表回复
oishi 2003-01-14
  • 打赏
  • 举报
回复
在OPTION中把dclusr.*可以删除!
tongzhenhua 2003-01-12
  • 打赏
  • 举报
回复
个人学习的话
我推荐 BCB/DELPHI+SQL 2K 个人版。个人版在98下都能用。感觉很好使。
另外写SQL程序的话你先要把 表格,数据库都先建好了才行的噢。SQL总会用的吧。
Kin_CIOM 2003-01-11
  • 打赏
  • 举报
回复
直接将bpr文件中的dclusr.*的路径删除
海底深蓝 2003-01-09
  • 打赏
  • 举报
回复
只要你的query组件能够连上远程数据库服务器,操作和本地数据库基本一致
tccsdn 2003-01-09
  • 打赏
  • 举报
回复
to oishi(秦时明月汉时关):
你给我的代码在WIN2000+BCB6编译了下,出现:unable to find package import dclusr.bpi的错误,连接通不过,是不是没装SQL的问题呢?请赐教
tccsdn 2003-01-09
  • 打赏
  • 举报
回复
这个文件没找到,我感觉不是这个文件问题,因为我在WINDOWS2000下写的程序
在WIN98下也出现这问题,我写可以,有些不行,前提是,我的BCB重新装过的。
oishi 2003-01-09
  • 打赏
  • 举报
回复
你还没有装SQL吗?
应该不是!
你查找一下这个文件
dclusr.bpi
你有没有!
这样的问题我以前也遇过!
不过忘了怎么改的了?
我今天回去看看!
sunmedia 2003-01-09
  • 打赏
  • 举报
回复
你应该是在WIN2000 专业版上安装的是SQL Server2000的企业版才会出现这样的提示,你应该安装SQL Server2000的标准版就可以了!!
Kin_CIOM 2003-01-09
  • 打赏
  • 举报
回复
Windows2000 Professional 上不能安装SQL Server200企业版服务器端
可以安装专业版服务器端
sdsugar 2003-01-08
  • 打赏
  • 举报
回复
提示:在安装的过程中,你可以选择SQL SERVER 2000里的“高级选项”,其实这个名称是吓唬人的,其实在你选择了这个以后,安装会简单很多。还有最好看看SQL 方面的书。偶用的是靠MCSE时的书,看看就会了。其实偶也是大菜鸟一个,哈哈,和兄弟交流交流 :)
tccsdn 2003-01-08
  • 打赏
  • 举报
回复
这不是和本地数据库是一样的吗?
痞子酷 2003-01-08
  • 打赏
  • 举报
回复
呵呵~~~~~~
netsys2 2003-01-08
  • 打赏
  • 举报
回复
增加:
DM->Query1->Close();
DM->Query1->SQL->Clear();
DM->Query1->SQL->Add("insert into Addbook.DB ");
DM->Query1->SQL->Add("values(:NAME,:TEL)");
DM->Query1->ParamByName("NAME")->AsString = "myname";
DM->Query1->ParamByName("TEL")->AsString = "1234567";
DM->Query1->ExecSQL();

删除:
DM->Query1->Close();
DM->Query1->SQL->Clear();
DM->Query1->SQL->Add("delete from Addbook.DB ");
DM->Query1->SQL->Add("where NAME = '123'" );
DM->Query1->ExecSQL();

修改:
DM->Query1->Close();
DM->Query1->SQL->Clear();
DM->Query1->SQL->Add("update Addbook.DB ");
DM->Query1->SQL->Add("set TEL='" + newTel +"'");
DM->Query1->SQL->Add("where NAME = 'myname'" );
DM->Query1->ExecSQL();

查询

DM->Query1->Close();
DM->Query1->SQL->Clear();
DM->Query1->SQL->Add("select * from Addbook.DB ");
DM->Query1->SQL->Add("where NAME = 'myname'" );
DM->Query1->Open();

if( !DM->Query1->RecordCount )
return false;

for(int i=0;i<DM->Query1->RecordCount;i++)
ShowMessage(DM->Query1->FieldByName("NAME")->AsString);


wildhorse01 2003-01-08
  • 打赏
  • 举报
回复
www.chinabcb.com
wildhorse01 2003-01-08
  • 打赏
  • 举报
回复
可以在任意win平台上安装msde吗,用的与mssql一样
oishi 2003-01-08
  • 打赏
  • 举报
回复
明天发给你!
OK
请多多指教!
tccsdn 2003-01-08
  • 打赏
  • 举报
回复
to oishi(秦时明月汉时关) :
请你查收邮箱,谢谢
oishi 2003-01-08
  • 打赏
  • 举报
回复
应该是大型系统才用吧!
是多层开发!小系统还是用C/S好!
tccsdn 2003-01-08
  • 打赏
  • 举报
回复
不知现在一般用的是什么样的开发模式,听说现在流行什么中间件什么的,不知是
何物,这些东西是不是一定要在软件公司才能接触到呀
oishi 2003-01-08
  • 打赏
  • 举报
回复
我有一点!
不过是第一次用BCB6+SQL2000
写的!代码不是很好!相要我可以给你!
来信
flyaqiao@hotmail.com
加载更多回复(6)
全网第一家 FastReport.v4.8.36 for.Delphi.BCB.Full.Source 最新版 CURRENT VERSION Build: 4.8.36 Date: 11/22/09 http://fast-report.com/en/products/report-for-delphi-fastreport-4-feature-matrix.html FastReport Studio 4.8 released! + added ability to split big bands(biggest than page height) by default + added ability to use keeping(KeepTogether/KeepChild/KeepHeader) in multi-column report + added BDE engine + added DBX engine + added confirmation reading for TfrxMailExport + added new enumerations drDontEditReportScript and drDontEditInternalDatasets to TfrxDesignerRestriction + added new TfrxDesignerRestriction: drDontEditReportScript and drDontEditInternalDatasets + added PrnOutFileName property to printer options + added RTF 4.1 support for TfrxRichText object + added TfrxDesigner.MemoParentFont property + added TfrxGroupHeader.ShowChildIfDrillDown property + added TfrxPrintOptions.PrnOutFileName property to set ability to print to file + added TfrxReportOptions.HiddenPassword property to set password silently from code + added TimeOut field to TfrxMailExport form + added checksum calculating for 2 5 interleaved barcode * changed PDF export: added full unicode support, improved performance, decreased memory requirements - changed inheritance mechanism, correct inherits of linked objects (fixups) - fixed "Page" and "Line" variables inside vertical bands - fixed ActiveForm ActiveX object - fixed bug in multi-column page when band overlap stretched PageHeader - fixed bug when cross tab cut the text in corner, when corner height greater than column height - fixed bug when designer place function in commented text block - fixed bug when designer shows commented functions in object inspector - fixed bug when engine delete first space from text in split Memo - fixed bug when Engine try to split non-stretcheable view and gone to endless loop - fixed bug when group doesn't fit on the whole page - fixed bug with displacement of subreport when use PrintOnParent property in s
全网第一家 FastReport. v4.7.147 最新版 CURRENT VERSION Build: 4.7.147 Date: 06/11/09 http://fast-report.com/en/products/report-for-delphi-fastreport-4-feature-matrix.html FASTREPORT® 4.0 VCL FastReport 4.0 has four editions with different features and price. Basic Edition FastReport 4 Basic Edition meets the needs of developers who are creating applications with "direct logic" reports. If you’re not sure you can make use of the full range of the features in FastReport 4, then the Basic Edition may be your best option. It’s easy to learn, and makes it impossible for your users to damage the reports you’ve developed. Standard Edition If you need more than the Basic Edition, then this is for you. The Standard Edition includes: A dialog designer. An internal script engine, which allows you to handle the reports’ logic; it supports four languages (PascalScript, C++Script, JSCript, and BasicScript). An end-user report designer. Professional Edition In addition to all the features of our FastReport 4 Standard Edition, the Professional Edition also includes: A built-in SQL query builder, which allows you to create complex queries without having a good command of SQL. Full source codes in the report generator, which allows you to thoroughly understand the work logic and to make any necessary changes and minor adjustments. Enterprise Edition This edition goes beyond the standards of today’s reporting software. Distance no longer matters! In addition to all the advantages of FastReport 4 Professional Edition, this edition includes Web-reporting components. Basic Standard Professional Enterprise Dialogue forms x x x Script x x x Run-time designer x x x Sources x x Visual SQL designer x x Web-reporting x 中文修正企业版高强压缩 全部源码中文修正企业版下载后可直接安装使用,默认为 简体中文语言 用于delphi开发者的报表工具 FastReport 是非常强大的报表控件,它能使用户的应用程序快速有效地产生报表。FastReport 提供了创建报表所需的所有工具,包括报表引擎,报表设计工具,预览器,对话框设计工具,以及Pascal-like 宏解释程序。 特点: 无需附加的动态链接库(DLL)就可提供快速、紧致、灵活的代码。 运行时可使用内建的功能强大且易于使用的设计工具。 带有"文本搜索"和"编辑"功能的MSWord-like报表预览。 常用的组件集:文本,线,图片,形状,对象链接和嵌入(OLE), RichText, 图表,Barcode。 可以创建自己的组件。 将报表输出为其它格式(例如:TXT, RTF, CSV, HTML, PDF 等等)。 内建的Pascal-like宏语言使得用户无需在Delphi环境中就可以写出代码。它可以创建出使用其它工具所不能创建的报表。 FastReport包含了对话框表格。在准备创建报表前,用户可以使用这一表格来修改参数,而且可以不受限制地使用它。FastReport使用同一个设计工具来创建对话框,这一设计工具带有对话框控件的标准集:按钮,编辑框,复选框等等。 FastReport提供了多样的数据库引擎,它允许用户在运行时创建表格,查询程序及数据库组件。用户的报表和应用程序是完全独立的。 FastReport可以从各种数据源的表格、查询程序、数组及数据文件中导入数据。 FastReport并不依赖于Borland公司的数据库引擎(BDE)。只要是基于标准Tdataset组件的数据库,都能使用FastReport。 FastReport也可在IB_Objects下工作。IB_Objects是用于Interbase数据库管理系统(DBMS)的功能强大且使用广泛的库。 在FastReport中可使用22语言,这就使得用户的应用程序更易于国际化。 本版本支持以下 IDE: Delphi 4,5,6,7,2005 C++Builder 4,5,6 BDS 2006 (Delphi 2006, C++Builder 2006) RAD Studio 2007 (Delphi 2007, C++Builder 2007) RAD Studio 2009 (Delphi 2009, C++Builder 2009) 中文修正企业版高强压缩 全部源码中文修正企业版下载后可直接安装使用,默认为 简体中文语言

13,825

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧