Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 4th, 2005, 10:11 AM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default Very Simple Data Typing Question

I have a simple, non-related table that has a primary key and a foreing key like this:

pkProductID fkCategoryID
1 1
2 1
3 1
4 2
5 2

and soforth.

both of these fields are integers in the database, but ADO.NET sees them as text in my dataset because it is not typed. So, if I try to sort by pkProductID I get...

1
10
11
12
...
2
21

and soforth.

How then can I capture the datatype from the original database on just these two columns? Do I need to create an XML schema for the whole dataset? Do I have to use XSD.exe?

 
Old April 4th, 2005, 10:13 PM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks guys. I figured this out. You have to use the dataset.FillSchema method before you call the fill method. Took me a while, but I found the anwer online. Thanks anyway.

Aaron






Similar Threads
Thread Thread Starter Forum Replies Last Post
not at all simple question petergoodman XSLT 0 July 18th, 2008 08:37 AM
Simple Question ironchef Spring 2 April 30th, 2007 09:32 AM
Simple question maximus101 Classic ASP Basics 2 October 18th, 2005 10:22 PM
Simple Question dinosaur_uk VB.NET 2002/2003 Basics 1 September 10th, 2004 09:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.