如何通过套接字编程在Tcp / ip中连接数据库? [英] How connect databse in Tcp/ip through socket programming?

查看:149
本文介绍了如何通过套接字编程在Tcp / ip中连接数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在ccp / ip中通过套接字编程连接数据库在c#????

How connect database in Tcp/ip through socket programming in c#????

推荐答案

你为什么要这样做?您必须为数据库引擎重新实现客户端协议。这样做需要有关该协议的文档,大多数高端制造商都不提供这些协议!



除此之外,您很可能会编写未经优化的代码用于与该数据库通信,跳过加密和压缩层。这意味着与使用制造商客户端相比,您的代码运行相同的查询会更慢。
Why would you want to?? You would have to re-implement the client protocol for your database engine. Doing so would require documentation on that protocol, which most of the higher end manufacturers do NOT provide!

On top of that, you would more than likely be writing unoptimized code for communicating with that database, skipping encryption and compression layers. This means that your code would be slower running the same query than if you used the manufacturers client.


这篇关于如何通过套接字编程在Tcp / ip中连接数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆