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

I think I found a bug in VS 2005 Datasets

If you use the Dataset editor to create a "new stored procedure" that
returns an single integer, it creates a matching method in the
TableAdapter that returns an object. If you delete the method, then
add a query that uses an "existing stored procedure" and select the
*exact same SP*, and tell the wizard that it returns a single value,
the created method returns a nullable int. I don't think this is
supposed to happen.

Example:

Add --Query --New stored procedure --SELECT which returns a
single value

SELECT MIN(fooId) FROM dbo.tblFoo
WHERE fooName = @fooName;

Name the SP FindFoo, and call the function the same thing.

The generated function (tblFooAdapter.FindByName) will have return
type "object", even though if you go into the Parameters collection
editor for the function, @RETURN_VALUE has type provider Int.
Now, delete FindFoo from your TableAdapter. Add --Query -->
Existing stored procedure. Select FindFoo, tell the wizard that it
returns a single value, enter a function name. Your new function will
return a Nullable<intinstead of an object. Bug?
Apr 3 '08 #1
0 854

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

Similar topics

2
by: Ken Fine | last post by:
I want to know the most efficient approaches to fill an object's properties from a database using the tools in VS.NET and/or any magic that's a part of ASP.NET, ADO.NET, and related tech. I suspect...
0
by: John Bailey | last post by:
Okay, I have the Visual Studio 2005 Release Candidate, and it is a great improvement over Beta 2. My ISP hasn't decided when they will support the RC, so they are still on Beta 2. I can for the...
1
by: herbert | last post by:
Does VS.2005 support strongly typed datasets between PocketPC and Web Services? I have a project stalled and must decide whether to wait for VS.2005 or go back to untyped DataSets. thanks...
14
by: NormD | last post by:
We have a client-server app using Web Services on an IIS machine. The trace below shows that .NET is searching around for some things (e.g., SystemDrawing.DLL and System.Drawing.EXE) and taking a...
0
by: Alex Kolesnichenko | last post by:
Hello, I'm using Visual C# Express 2005. If I have many (>50) XSD DataSets in project and put SqlDataAdapter on Component, then Configure Adapter and choose Table Mappings for it, all datasets...
1
by: ken | last post by:
Hi, Lets say we have a form that displays time card entries based on the calendar control date on the form. So the user clicks on a date and the form filters the table where the time card entries...
0
by: ccorbett | last post by:
Hi, I am pretty new to microsoft programming environment. I want to create forms in visual basic 2005 studio that read data from stored procedures and load into the forms for editing and new...
12
by: BillE | last post by:
I'm trying to decide if it is better to use typed datasets or business objects, so I would appreciate any thoughts from someone with more experience. When I use a business object to populate a...
1
by: Wendi Turner | last post by:
ASP.NET 2.0 C# WebService Connect to Database: Sql Server 2005 --------------------------------------------------------------------------------------------------- I have successfully created a...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.