Microsoft
Software
Hardware
Network
Question : Datareader.Read() does not pull the required rows
Hello,
I think i have a fairly simple problem, I have a stored procedure which returns me 1 row.
It takes in two parameters .
But before I select the row , I have to get additional values from a different table to be used for the actual select.
So the stored proc is ike this..
Declare @test varchar, @test1 int
Select @test = tbl1.column1,
@test2 = tbl1.column2
from testtable where column3 = @inputParameter
//**@inputParameter is a stored proc parameter**//
The actual select is here
Select * from table2 where colum1 = @test
and column2 = @test1
In the .net application when I use Datareader.Read() I dont get anything because of the first select statement.
"Select @test = tbl1.column1,
@test2 = tbl1.column2
from testtable where column3 = @inputParameter"
If I remove the above statement it works fine...
Is there a work around for this ? I cant do a join on these two tables in question because they are totally unrelated.
Thanks,
Ashwin
Answer : Datareader.Read() does not pull the required rows
i think i was concerned that i router mode, vpn services might be disabled. if not, then i would agree that this would be the preferrable mode.
Posted via EE Mobile
Random Solutions
Allowing non-administrators to update Global Address List in Exchange 2007
Move Objects in GIMP
An expression of non-boolean type specified in a context where a condition is expected
Changing Windows 7 Language in Home Premium..
Wordpress plugin TinyMCE Advanced not working and I'm getting 404 Reports from wp-includes tinymce files
Closing Quickbooks 2007 results in a .NET Broadbast Event Window Error
DELETE from a SAS table based on two column values of another table
if file exists
Jquery ui modal and using form in the pop up window.
Is it worth making iPhone games?