Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Using a database to populate a dataset using visual studio 2005?

It seems they have changed everything about the process of populating a dataset in VS205 and I can't find any documentation on how to do it. Anyone know how? I want to use a simple stored procedure with 1 param (@param for argument sakes). If you guys could help with this it would be awesome!

Thanks
[314 byte] By [partyk1d24] at [2007-11-11 8:25:19]
# 1 Re: Using a database to populate a dataset using visual studio 2005?
What code are you trying to use? How is it not working?
Phil Weber at 2007-11-11 23:13:17 >
# 2 Re: Using a database to populate a dataset using visual studio 2005?
Well previously I thought you were supposed to connect a dataset to a dataadapter. Now there is a datasource object and I don't understand how to use it to fill a dataset. Also I would like to pass a parameter into the stored procedure I am calling. I could do all this in VS.net but I guess they changed things around.
partyk1d24 at 2007-11-11 23:14:12 >
# 3 Re: Using a database to populate a dataset using visual studio 2005?
See if this helps: http://msdn2.microsoft.com/en-us/library/dz12d98w(vs.80).aspx
Phil Weber at 2007-11-11 23:15:17 >
# 4 Re: Using a database to populate a dataset using visual studio 2005?
Ok that helps so it says it returns a Dataset now how do I access that dataset or use it to bind the information to other objects?
partyk1d24 at 2007-11-11 23:16:22 >
# 5 Re: Using a database to populate a dataset using visual studio 2005?
You might try Googling for some ASP.NET 2.0 data binding tutorials.
Phil Weber at 2007-11-11 23:17:21 >