Hello Woody,
Thanks for posting in the group.
I noticed that you mentioned report in the post. Did you mean crystal
report?
Generally speaking, if we want to return specific rows from a DB, we could
use a select statement or a stored procedure in .NET programming, and then
use the returned records as the data source.
For an example, we could code like:
DataSet ds = new DataSet();
SqlConnection cn = new SqlConnection("server=myServer;user
id=myUID;password=a"b;database=northwind");
SqlDataAdapter da = new SqlDataAdapter("select * from customers where
customerid = ***",cn);
da.Fill(ds, "customers");
Also, there is a good document named ".NET Data Access Architecture Guide"
in MSDN. This document provides guidelines for implementing an
ADO.NET-based data access layer in a multi-tier .NET application. It
focuses on a range of common data access tasks and scenarios and presents
guidance to help you choose the most appropriate approaches and techniques.
We could reach it at
http://msdn.microsoft.com/library/en-us/dnbda/html/daag.asp?frame=true.
Does that answer your question?
Best regards,
Yanhong Huang
Microsoft Online Partner Support
Get Secure! ¨C
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!From: "Woody Splawn" <
[email protected]>
!Subject: Can you pass parameters to a View?
!Date: Thu, 13 Nov 2003 10:29:18 -0800
!Lines: 14
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <#
[email protected]>
!Newsgroups: microsoft.public.dotnet.languages.vb
!NNTP-Posting-Host: 168.158-60-66-fuji-dsl.static.surewest.net 66.60.158.168
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:156592
!X-Tomcat-NG: microsoft.public.dotnet.languages.vb
!
!I am using SQL Server 2000 as a back-end to a VS.net Client/Server app. In
!a certain report I use a view as part of the query spec. For the view, at
!present, I am querying for all the records in the table. But I am
wondering
!if there is a way, at runtime, to pass values to the View (like start date
!and end date) so that I don't have to return every record in the table of
my
!view. If I can't pass a parameter, perhaps I can create a view, a-fresh,
!with the parameters, each time I run the report. If I can, I don't know
!what the syntax might be under Visual Studio Code nor where to go to find
!it.
!
!Could somone point me in the right direction?
!
!
!
!