Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
T-SQL (SS2K5)
»
Unable to login users
Unable to login users
Rate Topic
Display Mode
Topic Options
Author
Message
suresh0534
suresh0534
Posted Friday, September 07, 2012 4:02 PM
SSC Rookie
Group: General Forum Members
Last Login: Monday, April 01, 2013 10:39 AM
Points: 27,
Visits: 161
It is an 8 years project.I am working on this project since 1 year.ther is a stored procedure to verifiy user login credentials.If every thing is correct then user is logined to that website.
I didn't get any problem till now, from last 2 days i am getting some problems. Users are unable to login into my website.They are entering user name and password and clicking login button, after clicking the login button it saying user and password is incorrect.
But every users is getting same problem.
When i open the log file , in the log file there is exception i.e get_login_user is an stored procedure (skg is username and password is skg@123)
[09-19-2012 07:51:31:786] Inside Exceptionexec get_login_user 'skg', 'skg@123'
[09-19-2012 07:51:31:817] ExceptionSystem.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
at DbUtil.ExecuteQuery(String sqlStr, String dtblName) in C:\Documents and Settings\Administrator\My Documents\Visual Studio 2010\DbUtil.cs:line 27
public static DataTable ExecuteQuery(string sqlStr, string dtblName)
{
SqlConnection Conn = DbUtil.GetDbConn();
SqlCommand sqlCommand = new SqlCommand(sqlStr, Conn);
sqlCommand.CommandTimeout = 120;
DataTable result;
try
{
SqlDataAdapter sqlDataAdapter = new SqlDataAdapter(sqlCommand);
DataSet dataSet = new DataSet();
sqlDataAdapter.Fill(dataSet, dtblName);
DataTable dataTable = dataSet.Tables[dtblName];
DbConn.Close();
DbConn.Dispose();
if (dataTable.Rows.Count != 0)
{
result = dataTable;
}
else
{
result = null;
}
}
catch (Exception ex)
{
SnAppLogger.Write("Inside Exception" + sqlStr.ToString());
SnAppLogger.Write("Exception" + ex.ToString());
DbConn.Close();
DbConn.Dispose();
result = null;
}
return result;
}
The Line 27 is sqlDataAdapter.Fill(dataSet, dtblName);
This Problem getting Daily Morning at 7:30 AM, no body is logined to that website.
If i restart the Database Server, then they are able login into website.
I am unable to find the problem.
Please help me........
Thanks,
Suresh
Post #1356280
Lynn Pettis
Lynn Pettis
Posted Friday, September 07, 2012 4:06 PM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 9:13 PM
Points: 21,615,
Visits: 27,447
Unfortunately my crystal ball is still broken, and since we can't see what you see there really isn't much we can do based on what you have posted.
What types of errors are users getting when they attempt to login? Does your login process log errors for easier debugging of login issues, and if so what errors are being reported there?
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #1356284
RBarryYoung
RBarryYoung
Posted Friday, September 07, 2012 4:22 PM
SSCrazy Eights
Group: General Forum Members
Last Login: Saturday, May 04, 2013 11:13 AM
Points: 9,855,
Visits: 9,374
If I were just to take wild guess, I'd say that this could be a license/connection limit problem.
However, like Lynn, my ESP's on the wane, so that really is just a WAG.
-- RBarryYoung
,
(302)375-0451
blog:
MovingSQL.com
, Twitter:
@RBarryYoung
Proactive
Performance Solutions, Inc.
"Performance is our middle name."
Post #1356291
suresh0534
suresh0534
Posted Friday, September 07, 2012 4:45 PM
SSC Rookie
Group: General Forum Members
Last Login: Monday, April 01, 2013 10:39 AM
Points: 27,
Visits: 161
I didn't understand what license and connection limit problem. Can you explain in detail.
Post #1356298
Lynn Pettis
Lynn Pettis
Posted Friday, September 07, 2012 5:51 PM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 9:13 PM
Points: 21,615,
Visits: 27,447
suresh0534 (9/7/2012)
I didn't understand what license and connection limit problem. Can you explain in detail.
How about you start answering my questions first? A little rude to be asking more questions when you haven't answered any yet.
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #1356308
RBarryYoung
RBarryYoung
Posted Saturday, September 08, 2012 9:49 PM
SSCrazy Eights
Group: General Forum Members
Last Login: Saturday, May 04, 2013 11:13 AM
Points: 9,855,
Visits: 9,374
suresh0534 (9/7/2012)
I didn't understand what license and connection limit problem. Can you explain in detail.
No I could not, because you haven't given any of the details that we would need to do this. Besides, I said it was a guess. So please see Lynn's original reply, and provide the information that he requested.
Thanks,
-- RBarryYoung
,
(302)375-0451
blog:
MovingSQL.com
, Twitter:
@RBarryYoung
Proactive
Performance Solutions, Inc.
"Performance is our middle name."
Post #1356444
vanapandi
vanapandi
Posted Monday, September 10, 2012 12:38 AM
Grasshopper
Group: General Forum Members
Last Login: Monday, May 06, 2013 4:04 AM
Points: 22,
Visits: 32
send me ur stored procedure..then only i can vieww ur problems
Post #1356571
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.