473,394 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

VB.Net and database


--
hello

I was looking at database connection with VB.net and seeing what the
difference is between vb6/VB.net. In VB6 Prof, I can connect to an Access
databse using code with ADO. With relatively easlity to follow commands and
perform up/del/add on the database.

I have vb.net standard edition. I can connect to the Access database with
VB.net but the similarity stops there. The code I am using is harder to
follow and I cant do the same as VB6. Is that because I havent got VB.net
Professional or is VB.net just not as easy.
I have no interest in the SQL server database for argumnets sake and I want
to use code a databse just controls.
Nov 21 '05 #1
7 1300
"=?Utf-8?B?am9obiBhbmRyZXc=?=" <jo********@discussions.microsoft.com>
wrote in news:F7**********************************@microsof t.com:
The code I am using is harder to
follow and I cant do the same as VB6. Is that because I havent got
VB.net Professional or is VB.net just not as easy.
I have no interest in the SQL server database for argumnets sake and I
want to use code a databse just controls.


It's not harder than ADO - it's only "harder" because you're not used to
ADO.NET.
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 21 '05 #2
> hello

I was looking at database connection with VB.net and seeing what the
difference is between vb6/VB.net. In VB6 Prof, I can connect to an Access
databse using code with ADO. With relatively easlity to follow commands and
perform up/del/add on the database.

I have vb.net standard edition. I can connect to the Access database with
VB.net but the similarity stops there. The code I am using is harder to
follow and I cant do the same as VB6. Is that because I havent got VB.net
Professional or is VB.net just not as easy.
I have no interest in the SQL server database for argumnets sake and I want
to use code a databse just controls.


VB.Net is not VB6++. It's a new interface to the .Net framework that has some
similarities to VB6. It is not intuitive and must be learned in a structured way to
get it's full potential. I've programmed in VB for 14 years and I just completed
my first .net program which took *much* longer than I was expecting. My
project was a simple FTP project that downloads some files and re-formats
them. I wanted to convert the VB6 code that I had to .Net but it wasn't even
close (fixed length strings in a public structure, that took me two days to figure out
how to declare and use them with WinAPI calls).

If you are competent with VB6 then you should stay with it. VBScript and the
VB macro language built into Microsoft products are very similar and knowing
VB is a great advantage. When you decide to switch over to .Net you should
be ready to leave the old VB concepts behind and ready yourself to learn a
new language. I suggest a class at the local community college or some
commited time with some .Net books. Since you're learning a new language
you might as well look into C# to see if it's more to your liking. Either way,
the .Net languages are not hard to learn but you must commit yourself to
the task.

Some day I'll be forced into the .Net framework but learning a new language
at my age just doesn't seem appealing to me now. Good luck if you decide
to transition to .Net.

Jim Edgar
Nov 21 '05 #3
Hi
I can do a a lot of stuff in VB.net already, it wasnt that difficult. Some
harder may be but thats programming for you.
I can do some Java and OOP in VB6. I cant see how VB.net is so difficult to
understand when having a C,Java,OOP background to an Intermediate level.

The database stuff I was confused with as it didnt appear to be smarter.
"Jim Edgar" wrote:
hello

I was looking at database connection with VB.net and seeing what the
difference is between vb6/VB.net. In VB6 Prof, I can connect to an Access
databse using code with ADO. With relatively easlity to follow commands and
perform up/del/add on the database.

I have vb.net standard edition. I can connect to the Access database with
VB.net but the similarity stops there. The code I am using is harder to
follow and I cant do the same as VB6. Is that because I havent got VB.net
Professional or is VB.net just not as easy.
I have no interest in the SQL server database for argumnets sake and I want
to use code a databse just controls.


VB.Net is not VB6++. It's a new interface to the .Net framework that has some
similarities to VB6. It is not intuitive and must be learned in a structured way to
get it's full potential. I've programmed in VB for 14 years and I just completed
my first .net program which took *much* longer than I was expecting. My
project was a simple FTP project that downloads some files and re-formats
them. I wanted to convert the VB6 code that I had to .Net but it wasn't even
close (fixed length strings in a public structure, that took me two days to figure out
how to declare and use them with WinAPI calls).

If you are competent with VB6 then you should stay with it. VBScript and the
VB macro language built into Microsoft products are very similar and knowing
VB is a great advantage. When you decide to switch over to .Net you should
be ready to leave the old VB concepts behind and ready yourself to learn a
new language. I suggest a class at the local community college or some
commited time with some .Net books. Since you're learning a new language
you might as well look into C# to see if it's more to your liking. Either way,
the .Net languages are not hard to learn but you must commit yourself to
the task.

Some day I'll be forced into the .Net framework but learning a new language
at my age just doesn't seem appealing to me now. Good luck if you decide
to transition to .Net.

Jim Edgar

Nov 21 '05 #4
"john andrew" <jo********@discussions.microsoft.com> schrieb:
I have vb.net standard edition. I can connect to the Access database with
VB.net but the similarity stops there. The code I am using is harder to
follow and I cant do the same as VB6. Is that because I havent got VB.net
Professional or is VB.net just not as easy.


The code will be the same in VB.NET Standard and Professional. The
Professional edition includes designers that will automatically generate
code for you and thus will help you to save time. In addition to that,
VS.NET's server explorer supports more server/database types than in the
Standard edition.

There are many substantial differences between data access in VB6 and
VB.NET. Currently, I assume you are used to the way to do data access in
VB6, so it seems to be harder for you to do that in VB.NET. Once you have
understood how data access works with .NET, it would be as easy as in VB6
for you.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #5
Can you program a access database (link and manipulate like in VB6)in VB.net
with code in Standard edition?

"Herfried K. Wagner [MVP]" wrote:
"john andrew" <jo********@discussions.microsoft.com> schrieb:
I have vb.net standard edition. I can connect to the Access database with
VB.net but the similarity stops there. The code I am using is harder to
follow and I cant do the same as VB6. Is that because I havent got VB.net
Professional or is VB.net just not as easy.


The code will be the same in VB.NET Standard and Professional. The
Professional edition includes designers that will automatically generate
code for you and thus will help you to save time. In addition to that,
VS.NET's server explorer supports more server/database types than in the
Standard edition.

There are many substantial differences between data access in VB6 and
VB.NET. Currently, I assume you are used to the way to do data access in
VB6, so it seems to be harder for you to do that in VB.NET. Once you have
understood how data access works with .NET, it would be as easy as in VB6
for you.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #6
John,

You can try this sample that I once made and is in this message,

http://groups-beta.google.com/group/...00033570443de4

You can just paste it in almost every class.

Because you cannot create in dotnet an Access database is that done in using
ADODB (ADOX).
A reference you set by doing Project -> add References -> Com and select
that needed dll.

When the access database is created it makes some tables in that database
using ADONET.

Than those tables are still not populated. However when you go than on and
look on MSDN for
Dataset
Datatable
Datarow
Dataview
OledbDataadapter
OledbCommandbuilder
Datagrid (to test)

You find enough samples to go on with that or just reply to this newsgroup,
than me or others will probably suply you other samples.

I hope this helps?

Cor


"john andrew" <jo********@discussions.microsoft.com> schreef in bericht
news:91**********************************@microsof t.com...
Can you program a access database (link and manipulate like in VB6)in
VB.net
with code in Standard edition?

"Herfried K. Wagner [MVP]" wrote:
"john andrew" <jo********@discussions.microsoft.com> schrieb:
> I have vb.net standard edition. I can connect to the Access database
> with
> VB.net but the similarity stops there. The code I am using is harder to
> follow and I cant do the same as VB6. Is that because I havent got
> VB.net
> Professional or is VB.net just not as easy.


The code will be the same in VB.NET Standard and Professional. The
Professional edition includes designers that will automatically generate
code for you and thus will help you to save time. In addition to that,
VS.NET's server explorer supports more server/database types than in the
Standard edition.

There are many substantial differences between data access in VB6 and
VB.NET. Currently, I assume you are used to the way to do data access in
VB6, so it seems to be harder for you to do that in VB.NET. Once you
have
understood how data access works with .NET, it would be as easy as in VB6
for you.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #7
"john andrew" <jo********@discussions.microsoft.com> schrieb:
Can you program a access database (link and manipulate like in VB6)in
VB.net
with code in Standard edition?


Yes.

<URL:http://www.connectionstrings.com/>
-> "Access"

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Cherrish Vaidiyan | last post by:
sir, The following are the steps that i followed in setting up standby database on Red hat Linux 9. i am using Oracle 9i. i have followed the steps in this site : ...
6
by: Marvin Libson | last post by:
Hi All: I am running DB2 UDB V7.2 with FP11. Platform is Windows 2000. I have created a java UDF and trigger. When I update my database I get the following error: SQL1224N A database...
8
by: Kamlesh | last post by:
Hi, How do I know the physical database path of a database. When I goto the DB2INSTANCE users's directory (/home/db2inst1), I see following folders: /db2inst1/NODE0000/SQL00001...
1
by: pintur | last post by:
The message is: SQL1036C Errore di I/O durante l' accesso al database. SQLSTATE=58030 what is the proble? what for restore tables? thanks
3
by: josh.kuo | last post by:
Sorry about the subject, I can't think of a better one. I recently wrote some PHP classes that I think might be of interest to this group. Since I have been reaping the benefits of reading news...
8
by: morleyc | last post by:
Hi, until recently i was quite happy to add data sources from mssql database in visual studio and drag the datasets directly onto the form this creating a directly editable form which worked well....
0
by: Jack | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
by: Winder | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
by: Laurynn | last post by:
# (ebook - pdf) - programming - mysql - php database applicati # (Ebook - Pdf)Learnkey How To Design A Database - Sql And Crystal Report # (ebook-pdf) E F Codd - Extending the Database Relational...
9
by: Peter Duniho | last post by:
Is there a straightfoward API in .NET that allows for inspection of a database? That is, to look at the structure of the database, without knowing anything in advance about it? For example,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.