|
-
Apr 22nd, 2003, 02:02 PM
#1
Manually build Dataset[RESOLVED]
Hey guys. Looking for some help on manually creating a DataSet. The Data is coming from a parsed text file but I need to first build my DataTables based on the columns specified in a SQL Database so that i can populate the Set from my parsed data, the update the database with the dataset. Anyone got a good chunk of code on doing this easily. I can figure it out, but thought I would see who may have something ready made.
Last edited by Cander; Apr 22nd, 2003 at 02:29 PM.
-
Apr 22nd, 2003, 02:22 PM
#2
Got it . It is FillSchema method of the DataAdapter.
Last edited by Cander; Apr 22nd, 2003 at 02:29 PM.
-
Apr 22nd, 2003, 03:52 PM
#3
PowerPoster
Watch out for performance issues Cander, the FillSchema() method can be a monster (at least the articles that I have read claim this..).
-
Apr 23rd, 2003, 08:22 AM
#4
hmm doesnt seem to be a problem. And I dont see any reason why there should be problem. FillSchema does exactly what Fill does, except for putting in the actual data.. Perhaps it has to do with the 2nd param where you choose mapped or source. Dont know what they mean, but i choose source.
-
Apr 23rd, 2003, 08:35 AM
#5
PowerPoster
I do know that it makes multiple hits to the db for primary key and unique key constraint/information.
-
Apr 23rd, 2003, 08:58 AM
#6
hmm. ok. Well it seems to be ok. The db and the app are both on my machine and doing the stuff in a new thread. No bad performance spikes that I noticed.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|