Re: Unbound Data Access

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Instead of attempting this in client code, have you considered
creating a stored procedure to handle the problem? You pass the PK to
the sproc, which performs the computations and inserts the data into
the other table. I'm assuming that the other table exists in the same
database or on the same server.

--Mary

On 23 Jan 2006 17:59:04 -0800, harry.verstandig@xxxxxxxxx wrote:

>I am having a problem with asp.net 2.0 that I did not have with 1.1. In
>C# code behind, I want to read data via a GetData(int productID) class
>to obtain several columns of data from one row of one table in a Sql
>2000 database which I need to calculate some values needed to be
>inserted into another table. I obtain the parameter (key field) from a
>value attribute in a list box on the .aspx page but I can't figure out
>what code to use in the calling method to simply pass that parameter to
>the GetData() class, and have the required data returned so I can drop
>the values into my vars. All the available literature seems to focus on
>the new data bound controls. Any help appreciated.
.



Relevant Pages

  • Re: Timeout on populating a datagrid
    ... > criteria the sproc can take upto 30 seconds to complete, ... >> stored procedure you use to update a record in the database. ... >> I'd review the stored procedure SQL in a query tool and see how long ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: What is a good strategy for joining data from separate databases
    ... One is my application's own database, and the other is a Data Mart created for me with a view I access. ... My current .NET business object merely makes a single stored procedure call to retrieve a resultset, with any joins required handled by the stored procedure. ... It is now considered unacceptable to have a dependency like that in the stored procedure and I need to re-structure the data access such that the .NET business object retrieves data separately from each database eliminiating the need for one database to be able to be linked or even aware of the other. ... Construct the SQL for a cross-database JOIN in client code ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: 2005 Stored Procedure Metadata
    ... Use case is we want to scan through all SP's in a database and find all ... occurances of a servername hard coded in the sproc. ...
    (microsoft.public.sqlserver.programming)
  • 2005 Stored Procedure Metadata
    ... Use case is we want to scan through all SP's in a database and find all ... occurances of a servername hard coded in the sproc. ...
    (microsoft.public.sqlserver.programming)
  • Re: Extended Stored Procedure: Get the current db of the client
    ... with the caveat that you don't recommend it because Microsoft ... of a stored procedure versus umpteen of the same stored procedure spread ... I am not going after Gert Sue. ... the database context as a parameter if you need it, ...
    (microsoft.public.sqlserver.odbc)