社区
数据库相关
帖子详情
SOL Server 和Delphi 连接问题(在线等)
sunshining66
2003-11-11 10:14:24
当两者连接时,用哪种连接方式比较好,是用BDE,ADO还是别的什么方法啊,谢谢
...全文
79
6
打赏
收藏
SOL Server 和Delphi 连接问题(在线等)
当两者连接时,用哪种连接方式比较好,是用BDE,ADO还是别的什么方法啊,谢谢
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
6 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
Alanwn
2003-11-12
打赏
举报
回复
现在流行ado
XXSingle
2003-11-12
打赏
举报
回复
ado 越来越稳定,速度越来越快,打包便捷
bde 不再开发,只在维护阶段,打包困难
===============================
呵呵,,从以前的贴子偷出来的
奔跑9999
2003-11-12
打赏
举报
回复
ado
angle097113
2003-11-12
打赏
举报
回复
网络版的时候ado很容易实现的
adoconnetion直接连接主机的服务器就好了
zhboy
2003-11-11
打赏
举报
回复
bde在使用的时候需要额外安装,而windows本身都配有ado,你自己选择吧。
而且bde大概要10多兆,
sunshining66
2003-11-11
打赏
举报
回复
希望大家说的详细点啊
delphi
socket call php socket 例子
delphi
socket call php socket 例子,可根据需要扩展写成聊天室、网站助理类似淘宝助理,有订单提醒。 连接客户端时不会超时 set_time_limit(0); $port = 10081 ; $ip = '192.168.1.102'; // create a streaming socket, of type TCP/IP $sock = socket_create ( AF_INET , SOCK_STREAM ,
SOL
_TCP ); // set the option to reuse the port socket_set_option ( $sock ,
SOL
_SOCKET , SO_REUSEADDR , 1 ); // "bind" the socket to the address to "localhost", on port $port // so this means that all connections on this port are now our resposibility to send/recv data, disconnect, etc.. socket_bind ( $sock , $ip , $port ); // start listen for connections socket_listen ( $sock ); // create a list of all the clients that will be connected to us.. // add the listening socket to this list $clients = array( $sock ); while ( true ) { // create a copy, so $clients doesn't get modified by socket_select() $read = $clients ; // get a list of all the clients that have data to be read from // if there are no clients with data, go to next iteration if ( socket_select ( $read , $write = NULL , $except = NULL , 0 ) < 1 ) continue; // check if there is a client trying to connect if ( in_array ( $sock , $read )) { // accept the client, and add him to the $clients array $clients [] = $newsock = socket_accept ( $sock ); // send the client a welcome message socket_write ( $newsock , "这是一个
delphi
(客户端) socket 与 PHP_socket(服务器) 通信的例子 测试,交流QQ:410578660。 but ill make an exception :)\n" . "There are " .( count ( $clients ) - 1 ). " client(s) connected to the
server
\n" ); socket_getpeername ( $newsock , $ip ); echo "New client connected: { $ip } \n" ; // remove the listening socket from the clients-with-data array $key = array_search ( $sock , $read ); unset( $read [ $key ]); } // loop through all the clients that have data to read from foreach ( $read as $read_sock ) { // read until newline or 1024 bytes // socket_read while show errors when the client is disconnected, so silence the error messages $data = @ socket_read ( $read_sock , 1024 , PHP_NORMAL_READ ); // check if the client is disconnected if ( $data === false ) { // remove client for $clients array $key = array_search ( $read_sock , $clients ); unset( $clients [ $key ]); echo "client disconnected.\n" ; // continue to the next client to read from, if any continue; }
最老套的
问题
:Sql
Server
无法
连接
服务器的
问题
本机
连接
无误,但是其它机器远程
连接
报错。 错误提示:SQL
Server
不存在或访问被拒绝 1.ping服务器IP地址 如果失败,说明物理
连接
有
问题
,比较可能是由于客户端和服务器之间安装有防火墙软件造成的。结果是成功的,没有
问题
。 2.telnet服务器IP地址1433 命令执行成功。 3.检查服务器端的网络配置。 利用SQL
Server
自带的服务器网络使用工具来进行检查。已经启用命名...
Java
连接
SQL
Server
2000的
问题
一
数据库操作现在是项目开发的根本,学习Java首先应该学会怎么样
连接
数据库,用Java
连接
数据库可不像用
Delphi
这类工具那样设几个属性就OK,说简单也简单,说复杂,其实也挺复杂的,而且很麻烦,如果是初学,根本不能保证第一次就
连接
成功,下面以SQL
Server
2000为例,说说Java
连接
数据库的基本方法,也记录一下心得。 1、下载SQL
Server
2000 driver f
Delphi
使用BDE
连接
远程MS SQL
SERVER
2000数据库时出现“Db-library network communciations layer not loaded.”错误的解决方法...
错误环境:windows xp sp2,
delphi
7,远程MS SQL
SERVER
2000企业版 错误情形:使用BDE
连接
远程的MS SQL
SERVER
2000数据库,打开
连接
时出现“Db-library network communciations layer not loaded.”错误提示 解决方法:将Windows
server
2003企业版下面的NTWDBLIB.DLL文...
delphi
idtcpclient和idtcp
server
的心跳包
最近有个项目需要用到socket通信,对于socket的网络异常处理(程序异常退出或者网络掉了)及重连纠结了好久,网上虽然有很多资料,但是都是从一个地方转过来的,不够详细,查了很久的资料才弄出来的,原来的出处给忘了。 环境:
delphi
7+indy控件(dephi7自带) 工作需要才用
delphi
7,建议使用
delphi
2007及以上版本,
delphi
2007里面带的indy控件版本
数据库相关
2,507
社区成员
88,453
社区内容
发帖
与我相关
我的任务
数据库相关
Delphi 数据库相关
复制链接
扫一扫
分享
社区描述
Delphi 数据库相关
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章