将列添加到Jet / Access数据库 [英] Adding Columns to Jet/Access database

查看:79
本文介绍了将列添加到Jet / Access数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我的应用程序中添加,删除,重命名等我的Jet / Access数据库。

我的应用程序。


我知道我可以添加列对于数据集,并使用它,但至于
我知道没有办法将添加的表推送到原始数据库

通过.NET。


ADO.NET中有什么东西可以让我这么做吗?或者我是否需要使用SQL语法来添加和编辑列?


感谢您的帮助!


John

解决方案

John,


做你要问的,你n可以使用SQL语句(字符串)那些是

执行


OleDbcommand.executenonquery


在这个页面上是来自访问的SQL命令非常完整描述。

http://msdn.microsoft.com/library/de.../acfundsql.asp

< a rel =nofollowhref =http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k/html/acintsql.asp\"target =_ blank> http: //msdn.microsoft.com/library/de...l/acintsql.asp
http://msdn.microsoft.com/library/de...l/acadvsql.asp


我希望这有点帮助?


Cor


" johnb41" <或**** @ informatik.com> schrieb

我需要在我的应用程序中添加,删除,重命名等我的Jet / Access数据库中的列。

我知道我可以为一个列添加列数据集,并使用它,但据我所知,没有办法通过.NET将添加的表推送到原始数据库。

我有什么东西吗? 'ADO.NET中缺少哪些允许这个?或者我必须使用SQL语法来添加和编辑列吗?

感谢您的帮助!




有没有VB语言关键字。请注意,有一个

ADO.Net新闻组,用于语言无关的问题:mpdframework.adonet

Armin


>这没有VB语言关键字。请注意,有一个

ADO.Net新闻组,用于语言无关的问题:mpdframework.adonet



cmd.ExecuteNonQuery


(没有半号,否则就是C#)


:-)


其余的是Adonet。
< br $> b $ b :-)

Cor


I need to Add, delete, rename, etc columns in my Jet/Access database in
my app.

I know I can add columns for a dataset, and work with it, but as far as
I know there is no way to push the added table to the original database
via .NET.

Is there something I''m missing from ADO.NET that allows this? Or do I
have to use the SQL syntax for adding and editing columns?

Thanks for your help!

John

解决方案

John,

To do what you ask, you n can do using SQL statements (strings) those are
executed with

OleDbcommand.executenonquery

On this page are the SQL commands from access very complete described.

http://msdn.microsoft.com/library/de.../acfundsql.asp

http://msdn.microsoft.com/library/de...l/acintsql.asp

http://msdn.microsoft.com/library/de...l/acadvsql.asp

I hope this helps a little bit?

Cor


"johnb41" <or****@informatik.com> schrieb

I need to Add, delete, rename, etc columns in my Jet/Access database
in my app.

I know I can add columns for a dataset, and work with it, but as far
as I know there is no way to push the added table to the original
database via .NET.

Is there something I''m missing from ADO.NET that allows this? Or do
I have to use the SQL syntax for adding and editing columns?

Thanks for your help!



There is no VB language keyword for this. Please note that there is an
ADO.Net newsgroup for language unrelated questions: m.p.d.framework.adonet
Armin


> There is no VB language keyword for this. Please note that there is an

ADO.Net newsgroup for language unrelated questions: m.p.d.framework.adonet


cmd.ExecuteNonQuery

(without a semicolumn otherwise it is C#)

:-)

The rest is Adonet.

:-)

Cor


这篇关于将列添加到Jet / Access数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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