create proc getTransList
as begin
declare ...l_transType int,
...l_transCustomerNoint,
...l_transAmountdecimal(16,0)
declare cs cursor for
select top 10 transType, transCustomerNo, transAmount from transList
open cs
fetch next from cs into
...l_transType,...l_transCustomerNo, ...l_transAmount
while ......fetch_status = 0
begin
select ...l_transType + 2 as transType,
...l_transCustomerNo + 2 as transCustomerNo,
...l_transAmount as transAmount
fetch next from cs into
...l_transType,...l_transCustomerNo, ...l_transAmount
end
close cs
deallocate cs
end
When this proc is run in QA, I get TEN rows back. But when I call it from my .NET project, I only get the FIRST row back. Now if I use the select statement directly from my .NET project, I do get the ten rows. I do have to use the SP to bring in data from other tables.
Does anyone know how to do this?
Thanks
I want to display data like this:(little example)|-----------------||__DataItem("Name")__|__DataItem...
By renateves
MRecordsSample while compiling gives the following errors. How to fix this? Thanks in advance.CSharp...
By ganesh
I have a grid that has one checkbox column.when user selects thecheckboxes and clicks on delete butt...
By sunilshishodia
<HTML><HEAD><META NAME="GENERATOR" Content="Microsoft DHTML Editing Control"><T...
By swerveforjesus
Hi there, I have a DataGrid that contains 5 columns. Two of which are BoundColumns: PruductName and ...
By jeff_liu, 1 Comments
I'm seeing that my datalist isn't putting in the Carriage return in the datalist paragraph. I have a...
By griff303, 2 Comments
How do I read data from two different tables within the same database?Example, dbTraining has two ta...
By price, 4 Comments
Ok, here's how it's supposed to work, you type in a record number into a text field called "txt_dbNu...
By jason3211, 3 Comments
Hi every one.I need one favour from you all.I am working on a web page.I am new in this line.the fun...
By astronauts, 3 Comments