改变数据库系统 [英] changing database systems

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

问题描述



我自己的prabhat saxena,我第一次使用这个网站,所以我不知道如何访问这个网站,


我的问题是: - >即时通讯使用vsual studio 05与水晶报告XI R2以及数据库sqlserver,

但我想在运行时将数据库从sqlserver更改为oracle,

是否有可能?如果可能的话你可以给我一个样品申请吗?


如果你不知道那么你可以把我的问题传递给任何其他解决我问题的人吗?


我的问候

prabhat saxena


my self prabhat saxena, i am using first time this site, so i don,t know how can access this site,

actualy my problem is:-> i m using vsual studio 05 with crystal report XI R2 and also database sqlserver,
but i want to change the database at runtime from sqlserver to oracle,
is it possible or not? if possible then can u provide me a sample application?

if u dont know then can u pass my question to any other person, who solve my problem?


my regards
prabhat saxena

推荐答案

问候,


我把你的问题从.NET文章部分中的另一个(不相关的)主题转移到这个论坛,最有可能得到答案。


kind问候,


Jos
Greetings,

I moved your question from another (unrelated) thread in the .NET Articles section
to this forum where it most likely can be answered.

kind regards,

Jos


对于杂耍行为感到抱歉,但我觉得这个问题更适合.NET论坛,因为它直接关系到到Visual Studio IDE。
Sorry for the juggling act, but I feel this question will be better suited in the .NET forum as it relates directly to the Visual Studio IDE.



hi,

我自己的prabhat saxena,我第一次使用这个网站,所以我不知道如何访问这个网站,


其实我的问题是: - >即时通讯使用vsual studio 05与水晶报告XI R2以及数据库sqlserver,

但我想在运行时将数据库从sqlserver更改为oracle,

是否有可能?如果可能的话你可以给我一个样品申请吗?


如果你不知道那么你可以把我的问题传递给任何其他解决我问题的人吗?


我的问候

prabhat saxena

my self prabhat saxena, i am using first time this site, so i don,t know how can access this site,

actualy my problem is:-> i m using vsual studio 05 with crystal report XI R2 and also database sqlserver,
but i want to change the database at runtime from sqlserver to oracle,
is it possible or not? if possible then can u provide me a sample application?

if u dont know then can u pass my question to any other person, who solve my problem?


my regards
prabhat saxena



这是可能的。


但是,如果要将数据库从MSSql Server切换到Oracle服务器,则需要不同类型的驱动程序才能访问它们。


所以如果你想要你的要支持这两种类型的数据库的软件,你必须使用预处理程序指令来执行此操作....查找预处理程序指令以更好地理解它们。但这些指令必不可少告诉处理器要编译哪些代码以及不编译哪些代码。


所以..这样你可以编译你想要使用的数据库的代码。 。

EG:

This is possible.

However if you are switching your database from, say, MSSql Server to an Oracle server you require different types of drivers to be able to access them.

So if you want your software to support both types of databases, you''ll have to use the preprocessor directives to do this....look up preprocessor directives to better understand them. But essential these directives tell the processor what code to compile and what code not to compile.

So..that way you can compile the code for the database that you want to use...
E.G.:

展开 | 选择 | Wrap | 行号


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

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