Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 117,614 C# Programmers for FREE! Ask your question and get quick answers from experts. There are 1,973 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Databasing Tutorials?

 
Reply to this topicStart new topic

Databasing Tutorials?, Creating an Excel Table in C# with ADO.NET

Redian
post 30 Jun, 2008 - 11:32 AM
Post #1


New D.I.C Head

*
Joined: 28 Dec, 2007
Posts: 21

Basically, I'm creating a very simple program that creates an Excel table from information put into the program. I've got a class set up for each set of data (essentially what will become the table's rows) and the variables in the class will be the columns. The data is collected and placed in a List<> of the class. All I need to figure out how to do now, is create the excel table. I've read a lot about SQL ADO.NET, but I'm too sure I fully understand the entire process. After reading http://davidhayden.com/blog/dave/archive/2...05/26/2973.aspx and http://www.csharp-station.com/Tutorials/Ad...t/Lesson01.aspx I still don't know how exactly this can be done. I've come to the conclusion that I need an OleDB dataset and data adapter. Where I get stuck is the command I need to put into the data adapter.

Could someone point me in the direction of a tutorial, or explain right here, what kind of command string I need to input into the Data Adapter to create and then add rows to this table?
User is offlineProfile CardPM

Go to the top of the page


nbarten
post 30 Jun, 2008 - 02:05 PM
Post #2


D.I.C Head

**
Joined: 30 Apr, 2007
Posts: 112



Thanked 1 times
My Contributions


errrr... so you want the input be stored in an excel table? What has that to do with SQL (databases)?
User is offlineProfile CardPM

Go to the top of the page

Redian
post 30 Jun, 2008 - 02:14 PM
Post #3


New D.I.C Head

*
Joined: 28 Dec, 2007
Posts: 21

Well from what I understand, when I use a DataAdapter I need a command string..and it seems like the command strings are built with SQL commands...Perhaps I'm wrong? Any help would really be appreciated though. When I google Intro to SQL I get bombarded with books, and I can barely find anything online that's not a preview of some text I have to pay for.
User is offlineProfile CardPM

Go to the top of the page

raincoder
post 11 Jul, 2008 - 04:13 AM
Post #4


New D.I.C Head

*
Joined: 10 Jul, 2008
Posts: 7

Maybe you can find something in here:

http://codervods.com/Default.aspx?mode=def...;currentIndex=0
User is offlineProfile CardPM

Go to the top of the page

turtleC++
post 15 Jul, 2008 - 10:38 AM
Post #5


D.I.C Head

**
Joined: 7 May, 2008
Posts: 51

I'm very interested to learn this as well. Please provide some hints so we can learn about it. My main goal is to build database query through Csharp, however writting data into Excel is not a bad idea since I read somewhere that data in Excel can be transported into Access or I can be wrong..

After I typed message above, I did some google search and here I found one. I haven't gotten the chance to start yet because my project hasn't reached that far yet.

http://www.dotnetspider.com/forum/ViewForum.aspx?ForumId=534


This post has been edited by turtleC++: 15 Jul, 2008 - 11:07 AM
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/7/08 11:58PM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month