Wrox Programmer Forums
|
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 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 February 28th, 2005, 01:40 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default SQL Server Database Projects

Hello,

In Visual Studio .NET's database project, when creating Yukon SP's, I saw there was a ExecuteResultSet object, but it was marked obsolete. So, is there a way to return a large resultset to the caller of the stored procedure? How do you implement code to return a select statement created in the database project?

Thanks,

Brian
__________________
Brian
 
Old April 1st, 2006, 03:17 AM
Registered User
 
Join Date: Feb 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use this code to return Select statement results in a database project –

  Dim DA As New SqlDataAdapter("SelData", SqlConnection1)
  'SelData - Stored Proc
  DA.SelectCommand.CommandType = CommandType.StoredProcedure
  DA.TableMappings.Add("TBL1", "DS")
  Dim DS As New DataSet
  DA.Fill(DS, "DS")





Similar Threads
Thread Thread Starter Forum Replies Last Post
Sql Server Database vineet_online1 SQL Language 2 May 17th, 2007 02:13 AM
deploy ms commerce server 2002 projects dipankaronline Biztalk 0 April 19th, 2006 02:37 AM
SQL database from one server to another. singhvicky MySQL 1 February 25th, 2005 05:57 AM
SQL Server Database Size itHighway Classic ASP Basics 1 February 12th, 2005 01:12 AM
Commerce Server projects BretK VS.NET 2002/2003 0 November 4th, 2004 06:29 PM





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