[VB.NET]如何用VB.NET访问UNIX里的SQL数据库?

VB.NET源码-156个实用实例哦…… 如何用VB.NET访问UNIX里的SQL数据库?
如何用VB.NET访问UNIX里的SQL数据库?
请举个例子,TKS!
__________________________________________________________________________
UNIX里的SQL数据库?什么数据库?
__________________________________________________________________________
UNIX得什么数据库阿???Oracle??
ADO

dim cnn as new ADODB.Connection
dim rec as new ADDDB.Recordset

cnn.Open Provider=MSDAORA; &_
Data Source=NT; , scott , tiger

set rec=cnn.Execute( select * frome USER_TABLES )
do while not rec.eof

debug.print rec.fields( TABLE_NAME ).value
rec.movenext


loop
__________________________________________________________________________
对unix不太了解,不知道支不支持SQL2000或者其它数据库,朋友说有这种问题,就是Unix下有SQL2000的数据库。
__________________________________________________________________________
。。。。 MS SQL Server 没法安装在 *nix 下的,一般*nix下用的最多的几种数据库分别是
Oracle、DB2、Sybase、MySQl、Postgres SQL

你在Windows平台上用VB .Net编程,可以通过 ODBC 来访问这些数据库(包括 Windows 上的 MS SQL Server)
__________________________________________________________________________
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
6 , chunks.zip<br>This will open a file and read it in "Chunks" of a selected file.<END><br>7 , logging.zip<br>This is a bas that will log installation procedures so the file can be removed later.<END><br>8 , savetree.zip<br>This will save the info in a Tree View. "This technique allows a program to save hierarchical information like the data in a TreeView in a way that is easy to understand."<END><br>11 , OLE.zip<br>Demonstrates the use of OLE.<END><br>12 , gradtxt2.zip<br>"A program for drawing horizontal, rectangular or spherical gradient texts."<END><br>13 , sweepgl.zip<br>This example greatly demonstrates how to use OpenGL in Visual Basic.<END><br>15 , drawdemo.zip<br>This is an excellent example of how to make a paint program with a few extras.<END><br>16 , cube.zip<br>This example demonstrates how to rotate a cube in visual basic.<END><br>17 , sprite1.zip<br>This is an Excellent example on how to use sprites in your program.<END><br>18 , charcreate.zip<br>This is an example of how to assign "characters" to differant pictureboxes. This would be a good starting point for VB game developers.<END><br>19 , breakthrough.zip<br>This demonstrates a simple game in Visual Basic. An excellent example.<END><br>26 , openlib.zip<br>These are the type libs that go with OpenGL. This is used to make 3D text.<END><br>27 , basMath.zip<br>This module contains functions for various math equations. <END><br>28 , calc.zip<br>This is a basic calculator written in Visual Basic.<END><br>29 , stopwatch.zip<br>This shows how to count off time in a Stop Watch format.<END><br>31 , taskhide.zip<br>This will hide your application from the taskbar, Alt+Tab, and Alt+Ctrl+Del.<END><br>32 , newbie.zip<br>This is a nicely done help file for programmers that are new to Visual Basic.<END><br>33 , vbfaq.zip<br>This is AOL's PC Dev Visual Basic FAQ. This is an excellent starting point for begginners.<END><br>34 , Bas.zip<br>it is very good modual for activex<END><br>35, paraviasource.zip<br>This is
SQL-server2000数据库管理系统A全文共9页,当前为第1页。SQL-server2000数据库管理系统A全文共9页,当前为第1页。SQL-server2000数据库管理系统A SQL-server2000数据库管理系统A全文共9页,当前为第1页。 SQL-server2000数据库管理系统A全文共9页,当前为第1页。 《SQL-server 2000数据库管理系统》试卷(A) 试卷( 卷) 年 月考试 级 专业 一、选择题(共20分,每题1分) 1、SQL-server数据库文件的扩展名为( )。 A、.ndf B、.ldf C、.mdb D、.mdf 2、下列四项中,不属于数据库特点的是( )。 A、数据共享 B、数据完整性 C、数据冗余很高 D、数据独立性高 3、下列四项中,不属于SQL2000实用程序的是( )。 A、企业管理器 B、查询分析器 C、服务管理器 D、媒体播放器 4、创建用户数据库的Transact-SQL命令是( )。 A、create table B、create C、create database D、drop 5、使用Transact-SQL语句创建数据库时,( )关键字是用于指定数据库的事务日志文件。 A、log on B、primary C、filename D、filegrowth 6、在SQL中,create table为( )数据库中基本表结构的命令。A、建立 B、修改 C、删除 D、查询 7、SQL Server安装程序创建4个系统数据库,下列哪个不是( )系统数据库。 A、master B、model C、pub D、msdb SQL-server2000数据库管理系统A全文共9页,当前为第2页。SQL-server2000数据库管理系统A全文共9页,当前为第2页。8、Microsoft公司的SQLServer2000数据库管理系统一般只能运行于( )。A、Windows平台 B、UNIX平台 C、LINX平台 D、NetWare平台 SQL-server2000数据库管理系统A全文共9页,当前为第2页。 SQL-server2000数据库管理系统A全文共9页,当前为第2页。 9、SQL语言中,条件年龄 BETWEEN 15 AND 35表示年龄在15至35之间,且( )。 A、包括15岁和35岁 B、不包括15岁和35岁 C、包括15岁但不包括35岁 D、包括35岁但不包括15岁 10、在SQL Server2000中.( )为用户建立数据库提供模板。A、master B、model C、tempdb D、msdb 11、SQL Server系统中的所有系统级信息存储于哪个数据库( )。A、master B、model C、tempdb D、msdb 12、下列语句中正确的是 ( ) 。表 score(sti_id,names,math,English,VB) A、select stu_id,sum(math) from score B、select sum(math),avg(VB) from score C、select * ,sum(english) from score D、delete * from score 13、表设计器的"允许空"单元格用于设置该字段是否可输入空值,实际上就是创建该字段的( )约束。 A、主键 B、外键 C、NULL D、CHECK 14、在Transact-SQL语句中,用以修改数据库结构的命令是( )。 A、create database B、drop database C、alter database D、alter table 15、在Transact-SQL语句中,用以删除数据库的命令是( )。 A、create database B、drop database C、alter database D、drop table 16、整数数据类型int的存储大小为( )。 A、1B B、2B C、3B D、4B 17、money型数据的存储大小为( )。 A、2B B、4B C、8B D、10B 18、SQL-server数据库中每个表至多可以有( )列。 A、1024 B、512 C、256 D、65536 SQL-server2000数据库管理系统A全文共9页,当前为第3页。SQL-server2000数据库管理系统A全文共9页,当前为第3页。19、数据表的名称最长不超过( )个字符。 SQL-server2000数据库管理系统A全文共9页,当前为第3页。 SQL-server2000数据库管理系统A全文共9页,当前为第3页。 A、64 B、128 C、256 D、512 20、每个表允许存在( )个主键约束。 A、1 B、2 C
SQL数据库管理系统-A全文共3页,当前为第1页。SQL数据库管理系统-A全文共3页,当前为第1页。 绝密 启用前 学院 SQL数据库管理系统-A全文共3页,当前为第1页。 SQL数据库管理系统-A全文共3页,当前为第1页。 学年第二学期期末考试 级 专业( )《SQL数据库管理系统 》试卷A 题号 一 二 三 四 五 六 七 总 分 得分 评卷人 得分 评卷人 一、选择题(共20分,每题1分) 1、SQL-server数据库文件的扩展名为( )。 A、.ndf B、.ldf C、.mdb D、.mdf 2、数据库文件初始大小,在SQL- server 2000 中默认值为( )。 A、1MB B、2MB C、3MB D、4MB 3、SQL- server 2000辅助数据库文件的扩展名为( )。 A、.ldf B、.ndf C、.mdb D、.mdf 4、创建用户数据库的Transact-SQL命令是( )。 A、create table B、create C、create database D、drop 5、使用Transact-SQL语句创建数据库时,( )关键字是用于指定数据库的事务日志文件。 A、log on B、primary C、filename D、filegrowth 6、在SQL中,create table为( )数据库中基本表结构的命令。 A、建立 B、修改 C、删除 D、查询 7、在SQL中,alter table为( )数据库中基本表结构的命令。 A、建立 B、修改 C、删除 D、查询 8、Microsoft公司的SQLServer2000数据库管理系统一般只能运行于( )。 A、Windows平台 B、UNIX平台 C、LINX平台 D、NetWare平台 9、SQLServer2000标准版不支持的操作系统是( )。 A、Windows 2000 Server B、Windows NT Server C、Windows98 D、Windows 2000 Advanced Server 10、在SQL Server2000中.( )为用户建立数据库提供模板。 A、master B、model C、tempdb D、msdb 11、SQL Server系统中的所有系统级信息存储于哪个数据库( )。 A、master B、model C、tempdb D、msdb 12、下列语句中正确的是 ( ) 。表 score(sti_id,names,math,English,VB) A、select stu_id,sum(math) from score B、select sum(math),avg(VB) from score C、select * ,sum(english) from score D、delete * from score 13、表设计器的"允许空"单元格用于设置该字段是否可输入空值,实际上就是创建该字段的( )约束。 A、主键 B、外键 C、NULL D、CHECK 14、在Transact-SQL语句中,用以修改数据库结构的命令是( )。 A、create database B、drop database C、alter database D、alter table 15、在Transact-SQL语句中,用以删除数据库的命令是( )。 A、create database B、drop database C、alter database D、drop table 16、整数数据类型int的存储大小为( )。 A、1B B、2B C、3B D、4B 17、money型数据的存储大小为( )。 A、2B B、4B C、8B D、10B 18、SQL-server数据库中每个表至多可以有( )列。 A、1024 B、512 C、256 D、65536 19、数据表的名称最长不超过( )个字符。 A、64 B、128 C、256 D、512 20、每个表允许存在( )个住键约束。 A、1 B、2 C、3 D、4 二、填空题(共20分,每空1分) 1、数据库系统由__________和__________________两部分组成。 2、在SQL中,主码约束的关键字为__________,外码约束的关键字为____________。 3、数据库管理系统的基本功能包括____________、____________、____________和___________。 4、数据完整性可以分为____________、___________、____________和用户自定义完整性。 5、在SQL中,create view、update和drop view命令分别为_______、_______和

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值