473,395 Members | 1,689 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,395 software developers and data experts.

I'm getting crazy overhere....$#$#%$

EMW
The MSDN is a great source of information for programmers of .NET
applications, but not for the simple things!!!!

I have been searching for a few days now, my desk is filled with printouts
from books, help pages and web pages, but still cannot find what I'm looking
for.

I'm trying to write a little program, to practice VB.NET, to convert a table
from EXCEL to an ACCESS DATABASE.
I managed to find some examples on how to create a database using ADOX and I
managed to fill a datagrid with the contents of the EXCEL file.

Now I'm trying to find out how to move the info from the datagrid to de
database in a simple and jet fast way.

All the books, web pages and help pages I've been reading all contain
samples on how to open the NorthWind database (which I now really hate), but
nowhere is there a sample that shows how to create a new table, write
something in it and close the database.
And they also always talk about SQL servers which I don't have.

So you now get my frustration.

Can someone please help me, before my insanity becomes permanent?

rg.
Eric
Jul 21 '05 #1
6 1282
Eric,

There is no shortcut to success.

ADO.NET is what you need to populate your database. ADO.NET lets you write
your code - simple and bad - should you need it,
or well laid out and verbose - should you choose to do it.

I recommend a book on ADO.NET by David Sceppa.

If you want a "quickfix", do this.

You have your excel loaded in a dataset (I presume you were able to do this
much).
(Using Oledb)
Now create a datacommand.
Put relevant commandtext in it.
Obviously the right d/b connection as a connection object
do command.executenonquery.

THATS IT DUDE !!! NOW CHILL :)

- SM

"EMW" <so*****@microsoft.com> wrote in message
news:3f**********************@dreader2.news.tiscal i.nl...
The MSDN is a great source of information for programmers of .NET
applications, but not for the simple things!!!!

I have been searching for a few days now, my desk is filled with printouts
from books, help pages and web pages, but still cannot find what I'm looking for.

I'm trying to write a little program, to practice VB.NET, to convert a table from EXCEL to an ACCESS DATABASE.
I managed to find some examples on how to create a database using ADOX and I managed to fill a datagrid with the contents of the EXCEL file.

Now I'm trying to find out how to move the info from the datagrid to de
database in a simple and jet fast way.

All the books, web pages and help pages I've been reading all contain
samples on how to open the NorthWind database (which I now really hate), but nowhere is there a sample that shows how to create a new table, write
something in it and close the database.
And they also always talk about SQL servers which I don't have.

So you now get my frustration.

Can someone please help me, before my insanity becomes permanent?

rg.
Eric

Jul 21 '05 #2
You should (but I haven't actually tried it) be able to create a table in an
access database (assuming you already have a database file) by creating a
connection to your database using the OleDbConnection object, then you can
create an OleDbCommand and set it to use your connection and set the command
text to something like:

"CREATE TABLE mytable ( myfield1 varchar, myfield2 int.....)"

and then use the OleDbCommand.ExecuteNonQuery method to run the actual
method. That you create your table with the columns you've specified and
then you can go from there. I'm not 100% sure this is actually supported by
the Access drivers, so good luck.

I agree with you on the NorthWind database though!
"EMW" <so*****@microsoft.com> wrote in message
news:3f**********************@dreader2.news.tiscal i.nl...
The MSDN is a great source of information for programmers of .NET
applications, but not for the simple things!!!!

I have been searching for a few days now, my desk is filled with printouts
from books, help pages and web pages, but still cannot find what I'm looking for.

I'm trying to write a little program, to practice VB.NET, to convert a table from EXCEL to an ACCESS DATABASE.
I managed to find some examples on how to create a database using ADOX and I managed to fill a datagrid with the contents of the EXCEL file.

Now I'm trying to find out how to move the info from the datagrid to de
database in a simple and jet fast way.

All the books, web pages and help pages I've been reading all contain
samples on how to open the NorthWind database (which I now really hate), but nowhere is there a sample that shows how to create a new table, write
something in it and close the database.
And they also always talk about SQL servers which I don't have.

So you now get my frustration.

Can someone please help me, before my insanity becomes permanent?

rg.
Eric

Jul 21 '05 #3
EMW
Thanks!

I'm now chilling..... ;)
"Sahil Malik" <no****@ms.com> schreef in bericht
news:ec**************@TK2MSFTNGP11.phx.gbl...
Eric,

There is no shortcut to success.

ADO.NET is what you need to populate your database. ADO.NET lets you write
your code - simple and bad - should you need it,
or well laid out and verbose - should you choose to do it.

I recommend a book on ADO.NET by David Sceppa.

If you want a "quickfix", do this.

You have your excel loaded in a dataset (I presume you were able to do this much).
(Using Oledb)
Now create a datacommand.
Put relevant commandtext in it.
Obviously the right d/b connection as a connection object
do command.executenonquery.

THATS IT DUDE !!! NOW CHILL :)

- SM

"EMW" <so*****@microsoft.com> wrote in message
news:3f**********************@dreader2.news.tiscal i.nl...
The MSDN is a great source of information for programmers of .NET
applications, but not for the simple things!!!!

I have been searching for a few days now, my desk is filled with printouts from books, help pages and web pages, but still cannot find what I'm looking
for.

I'm trying to write a little program, to practice VB.NET, to convert a

table
from EXCEL to an ACCESS DATABASE.
I managed to find some examples on how to create a database using ADOX

and I
managed to fill a datagrid with the contents of the EXCEL file.

Now I'm trying to find out how to move the info from the datagrid to de
database in a simple and jet fast way.

All the books, web pages and help pages I've been reading all contain
samples on how to open the NorthWind database (which I now really hate),

but
nowhere is there a sample that shows how to create a new table, write
something in it and close the database.
And they also always talk about SQL servers which I don't have.

So you now get my frustration.

Can someone please help me, before my insanity becomes permanent?

rg.
Eric


Jul 21 '05 #4
EMW
YES!!! I got it working.... I guess it helps putting onces frustration on a
newsserver... ;)
"EMW" <so*****@microsoft.com> schreef in bericht
news:3f**********************@dreader2.news.tiscal i.nl...
The MSDN is a great source of information for programmers of .NET
applications, but not for the simple things!!!!

I have been searching for a few days now, my desk is filled with printouts
from books, help pages and web pages, but still cannot find what I'm looking for.

I'm trying to write a little program, to practice VB.NET, to convert a table from EXCEL to an ACCESS DATABASE.
I managed to find some examples on how to create a database using ADOX and I managed to fill a datagrid with the contents of the EXCEL file.

Now I'm trying to find out how to move the info from the datagrid to de
database in a simple and jet fast way.

All the books, web pages and help pages I've been reading all contain
samples on how to open the NorthWind database (which I now really hate), but nowhere is there a sample that shows how to create a new table, write
something in it and close the database.
And they also always talk about SQL servers which I don't have.

So you now get my frustration.

Can someone please help me, before my insanity becomes permanent?

rg.
Eric

Jul 21 '05 #5
Cor
Hi EMW,

Of course that did work, because you did not get any message which said:
"don't do it", so you was looking again taking the advices or did it by
yourself, but you did know it could be solved ".

:-)

Cor
Jul 21 '05 #6
EMW
Actually I hit a page in the MSDN showing me how to use the code...

Eric.
"Cor" <no*@non.com> schreef in bericht
news:u6*************@tk2msftngp13.phx.gbl...
Hi EMW,

Of course that did work, because you did not get any message which said:
"don't do it", so you was looking again taking the advices or did it by
yourself, but you did know it could be solved ".

:-)

Cor

Jul 21 '05 #7

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

Similar topics

303
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
11
by: doltharz | last post by:
Please Help me i'm doing something i though was to be REALLY EASY but it drives me crazy The complete code is at the end of the email (i mean newsgroup article), i always use Option...
12
by: Gnolen | last post by:
Hi, I am really getting crazy here! I just do not get why this happens with the borders of the td/tr! I just want a border on the bottom of the rows(or td) but I just can't do it!!! I have tried...
4
by: leodippolito | last post by:
Hello sirs, I am trying to send a POST request to a webservice on the click of a button. This will return me an XML document with a list of combo box items. The problem: in FIREFOX, when the...
3
by: Larry Tate | last post by:
I have had a monstrous time getting any good debugging info out of the .net platform. Using ... ..NET Framework 1.1 Windows 2K Server VB.NET <- is this the problem? error handling in the...
2
by: Praveen | last post by:
Hi All, I have made a webservice in C# and it works fine in my machine. I ran into a crazy problem when I wanted to deploy it in windows 2003 server. I have run "aspnet_regiis.exe -i" to make...
4
by: sugoi.sama | last post by:
hi, i'm having a hellish adventure with PHP5 i hope someone just can help me out on this... i'm desperate All i want to do, is to get the index of the returned elements, so i can acess them...
3
by: David Murmann | last post by:
Hi all! i just had this crazy idea: instead of while cond(): pass write
3
by: squash | last post by:
I have spent two hours trying to make sense of this script, called crazy.php. The output should be nothing because $cookie_password is nowhere defined in this script, correct? But it actually...
5
by: Pekeika | last post by:
Good morning group, When I open my Python window, this is appearing instead of the command line >>>. (I'm somehow new to Python). File "boot_com_servers.py", line 21, in <module> File...
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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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.