Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Unable to login users Expand / Collapse
Author
Message
Posted Friday, September 7, 2012 4:02 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, August 27, 2014 9:28 AM
Points: 48, Visits: 273
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
Posted Friday, September 7, 2012 4:06 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 3:15 PM
Points: 23,397, Visits: 32,238
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
Posted Friday, September 7, 2012 4:22 PM


SSCrazy Eights

SSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy Eights

Group: General Forum Members
Last Login: Thursday, June 5, 2014 10:54 AM
Points: 9,902, Visits: 9,480
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
Posted Friday, September 7, 2012 4:45 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, August 27, 2014 9:28 AM
Points: 48, Visits: 273
I didn't understand what license and connection limit problem. Can you explain in detail.
Post #1356298
Posted Friday, September 7, 2012 5:51 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 3:15 PM
Points: 23,397, Visits: 32,238
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
Posted Saturday, September 8, 2012 9:49 PM


SSCrazy Eights

SSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy Eights

Group: General Forum Members
Last Login: Thursday, June 5, 2014 10:54 AM
Points: 9,902, Visits: 9,480
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
Posted Monday, September 10, 2012 12:38 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, May 2, 2014 12:06 AM
Points: 22, Visits: 45
send me ur stored procedure..then only i can vieww ur problems
Post #1356571
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse