SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Stored Procedure Returning output of Another Stored Procedure


Stored Procedure Returning output of Another Stored Procedure

Author
Message
yash.job
yash.job
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 16
I have a login page which validate user Credential on Asp.net Website

SqlCommand sqlComm = new SqlCommand();
sqlComm.CommandType = System.Data.CommandType.StoredProcedure;
sqlComm.CommandText = "loginSp";


sqlComm.Parameters.Add("@userid", SqlDbType.VarChar, 50).Value = txtusrnm.Text;
sqlComm.Parameters.Add("@Password", SqlDbType.VarChar, 50).Value = txtpswd.Text;

sqlComm.Connection = new SqlConnection(conString);
SqlDataAdapter sa = new SqlDataAdapter(sqlComm);
DataSet ds = new System.Data.DataSet();
sa.Fill(ds);

ConnectionString :
<add key="connection" value="server=localhost;database=XXX;trusted_connection=yes;Min Pool Size=5;Max Pool Size=60;Connect Timeout=60"/>

The issue is that Sometime above Line of Code Return the Output of other Procedure instead of Calling "loginSp" Stored Procedure ... I wrote a log file in each and every step

here is the logFile

http://notepad.cc/hogauphi9

I don't know what is Wrong happening .. I m facing Error on Development Server only ..
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search