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

.net 2.0 and typed dataset ?

Hey
Will be in .net 2.0 any nice way to use stored procedures and get typed
dataset ?
Jarod

Nov 17 '05 #1
9 1357
Jarod,

Click on the generated dataset in the dataadapter part.

I hope this helps,

Cor
Nov 17 '05 #2
Check out this link http://msdn2.microsoft.com/en-us/library/04y282hb

"Jarod" <bl*****@NOSPAM.gazeta.pl> wrote in message
news:eJ**************@tk2msftngp13.phx.gbl...
Hey
Will be in .net 2.0 any nice way to use stored procedures and get typed
dataset ?
Jarod

Nov 17 '05 #3
Jarod,

In .NET 2.0 (or rather, Visual Studio .NET 2.0), you will be able to
drag your stored procedures into your design surface, and it will create
managed wrappers for them. It's definitely a nice feature.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jarod" <bl*****@NOSPAM.gazeta.pl> wrote in message
news:eJ**************@tk2msftngp13.phx.gbl...
Hey
Will be in .net 2.0 any nice way to use stored procedures and get typed
dataset ?
Jarod

Nov 17 '05 #4
ok, we can do this by drag and drop a "select" stored procedure. how about
if we want to use stored procedures for insert and update as well? how about
our "select" stored procedure includes some logic (case when or if
statements based on some parameter etc.) ? how about if we dont want always
get same column set? do we have to generate, for each set of columns,
another dataset? i think VS.NET is not powerful enough when it cames to
dataset - dataadapter stuff. more generally .NET platform is not powerfull
enough to build an "true domain model" (kinda Business Object Layer). im
waiting for object spaces untill 2007 :/ BTW ive heard Anders Hejlsberg is
working on Object Spaces? is it true?
Nov 17 '05 #5
See inline:

how about if we want to use stored procedures for insert and update as well?

It will support that as well. VS.NET doesn't care what you want to do
with your stored procedure, they are all accessed the same way (pass
parameters, execute, get results). They are all treated the same way.

how about our "select" stored procedure includes some logic (case when or if
statements based on some pparameter etc.)?

See above. VS.NET 2005 will generate the wrapper, along with methods to
call the procedure (it will create a parameter list which mimics the stored
procedure parameter list).

how about if we dont want always get same column set? do we have to
generate, for each set of columns, another dataset?

You would have to tweak the code for this. However, this is a result of
bad design on the part of the stored procedure, not a limitation in VS.NET
2005. It's like returning object from a method, you could do it, and return
any type you like, but what use is it? It's better to have well-defined
result sets.

i think VS.NET is not powerful enough when it cames to dataset - dataadapter
stuff. more generally .NET platform is not powerfull enough to build an
"true domain model" (kinda Business Object Layer). im waiting for object
spaces untill 2007 :/

I think this is debatable. Needless to say, I strongly disagree with
business objects in a sense (espectially when there is a need for
transactions, given their nature).

BTW ive heard Anders Hejlsberg is working on Object Spaces? is it true?

No, he is not. For all intents and purposes, ObjectSpaces is dead.
Now, it is going to be LINQ, or more specifcally, DLINQ, for working with
database servers. It's in the preliminary stages, so it's hard to say how
it will work, and won't be out for a while.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
Nov 17 '05 #6
sorry i was talking about typed dataset's that is generated by visual
studio, when you drag and drop stored procedure.
Nov 17 '05 #7
As was I.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"The Crow" <q> wrote in message
news:O3**************@TK2MSFTNGP09.phx.gbl...
sorry i was talking about typed dataset's that is generated by visual
studio, when you drag and drop stored procedure.

Nov 17 '05 #8
i think u r talking about stored procedure wrapper comimg with vs2005.

It will support that as well. VS.NET doesn't care what you want to do
with your stored procedure, they are all accessed the same way (pass
parameters, execute, get results). They are all treated the same way.
please tell me the answers applied to VS2003. how to specify typed dataset
to use custom stored procedures and take a custom action(espesially based on
return value)?on custom situations how to call paramtered version of stored
procedure and send parameter ? i wish data manuplation and business logic
were just as easy as VS thinks. its not just filling and updating
datasource. and one more question, how about retrieving particular record(s)
with only particular detail records, and travelling between records? dataset
tastes me as an huge datasource, database's on memory implementation, so i
dont like to use dataset when working with particular records. for example,
when i fill a customer and only orders of customer given in a particular
date, having 1 dataset, 2 datatables in it and using customer.Orders[0]
notation is awfull i think. but in case of datasource is completely in
memory, its perfect to be able write something like order.Parent.. hopefully
i told my thoughts clearly.
Nov 17 '05 #9
i meant "in an object oriented fashion" in my questions.
Nov 17 '05 #10

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

Similar topics

1
by: Job Lot | last post by:
I am confused how strongly typed dataset is different from un-typed dataset. Is there any good link explaining pros and cons of both? Which one should be used preferably?
5
by: DraguVaso | last post by:
Hi, Something I don't understand about a Typed DataSet: When a value in the DataSet is DBNull, it throws this error: "Cannot get value because it is DBNull". But aren't Typed DataSets...
1
by: Linesh Gajera | last post by:
Hi Guys i having the same problem with Strongly typed dataset, I have created a stronsetly typed dataset by draging table from Server explorer and now i have retreived xml from SQL server 2000...
1
by: Nedu N | last post by:
Hi All, I am facing problem in copying content of table from a untyped dataset into to a table inside the typed dataset. I wanted to copy the data into typed dataset in order to ease the further...
2
by: BeanTownBizTalkGuru | last post by:
Trying to get some feedback. Here's the scenerio. We are processing XML data which we generated a typed dataset to represent the XML document being processed. After procesing is complete we...
1
by: Trond | last post by:
I have a class MessageController that has a method GetMessagesDataset that connects to a database SPROC. When done it returns a dataset. Then in my ASP.NET for i do this: msgController = new...
12
by: Whoever | last post by:
Hi, I'm trying to return an XmlDocument or XmlNode converted from a typed dataset. public XmlNode whatever() { MyTypedDataSet ds = new MyTypedDataSet(); return new XmlDataDocument(ds); }
3
by: Freeon | last post by:
Hi, I am looking for a way to sort a strong typed dataset. It would seem the most straightforward way is to use a dataview. The only problem is when I use the dataview I seem to loose the strong...
1
by: Optimus | last post by:
Hi everyone, I currently develop an application in vs.net 2005 with vb.net. I was trying to use typed dataset and I've got in trouble for converting untyped dataset into Typed DataSet. I don't...
8
by: Harry Strybos | last post by:
Visual Studio 2005 - SP1 - VB.Net on WinXP SP2 I add a typed dataset to my solution and get the following errors : Error 1 sub 'ReadXmlSerializable' cannot be declared 'Overrides' because it...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.