没有数据库的连接 [英] connnection without database

查看:80
本文介绍了没有数据库的连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在不连接数据库的情况下如何检索数据。

什么是连接架构和断开连接的架构,它们之间有什么区别。

i wanted to know without connecting to database how can we retrieve data.
what is connected architecture and disconnected architecture,what is the difference between these.

推荐答案

不错的问题Karthikeyan先生,但我担心你甚至连网络都不能检索数据,除非你是一个魔术师..很多..:P:P



你问题的下一部分有问题答案。

连接架构是指连接到服务器evry单一时刻,以检索实时数据和统计数据...例如:在铁路预订系统中,您每次都必须连接到服务器以获取状态或您自己的预订和内容....

来到.NET POV,打开连接,工作和处理你的数据集,然后关闭连接。



如果断开连接架构,你不需要连接到服务器evrytime.Open连接,从服务器上检索数据集,关闭连接,处理数据集并处理它......它就像你系统上的本地副本一样..



和顺便说一句......在MSDN上有数据文章甚至可以在这里使用..



希望它有帮助...... :)):)
Nice question Mr. Karthikeyan but I am afraid you can''t retrieve data without even connecting to a DB until and unless you are a magician..lol..:P:P

the next part of ur question has probabale answers.
Connected architecture refers to being connected to the server evry single instant of time to retrieve real time data and stats...for ex:In a railway reservation system, you would have to be connected to the server everytime to knw the status or your own booking and stuffs....
Coming to .NET POV, open the connection, work and process ur dataset and then close the connection.

In case of disconnected architecture, you dont nee to be connected to the server evrytime.Open the connection,retreive the dataset from the server,close the connection,work on the datset and process it....Its just like a local copy on ur system..

And btw..there are numerou articles on MSDN or even here to make use of..

Hope it helps...:):)


您可能要求关于SQL dataadapter以断开连接的方式工作我们不需要打开或关闭sql连接



但SQL datareader以连接的方式工作,我们必须打开和关闭sql连接。



并且无法在没有连接字符串或连接的情况下获取数据。


hi,





i dont know the way of your first Question. becoz thats impossible. but i can say answer for your second question that is,







In Disconnected architecture DataSet is used for retriewing data from database. Then no need for maintaining the connection also. All the operations can be performed with the data once retriewed. It wont cause traffic problem while working with database.

In connected architecture DataReader is used for retriewing data from database. Here a connection is always maintained. Update, Delete, Read and Select operations can be performed on each time at database.., so tat a connection must be needed to be maintained.. so it cause traffic problems.







问候

sarva




regards
sarva


这篇关于没有数据库的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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