Click here to Skip to main content
15,903,175 members
Home / Discussions / Database
   

Database

 
GeneralRe: DateTime _Oct2007 Pin
r a j u u30-Oct-07 2:18
r a j u u30-Oct-07 2:18 
QuestionProblem with GetSchemaTable Pin
stofel30-Oct-07 0:22
stofel30-Oct-07 0:22 
AnswerRe: Problem with GetSchemaTable Pin
andyharman30-Oct-07 7:21
professionalandyharman30-Oct-07 7:21 
AnswerRe: Problem with GetSchemaTable Pin
stofel30-Oct-07 21:50
stofel30-Oct-07 21:50 
QuestionNeed query Pin
micydon30-Oct-07 0:01
micydon30-Oct-07 0:01 
AnswerRe: Need query Pin
r a j u u30-Oct-07 0:24
r a j u u30-Oct-07 0:24 
AnswerRe: Need query Pin
Senu Gandhi30-Oct-07 0:32
Senu Gandhi30-Oct-07 0:32 
QuestionTimeout expired Pin
Senu Gandhi29-Oct-07 23:36
Senu Gandhi29-Oct-07 23:36 
I am working on .Net 2.0 and SQL 2000.
While running my application, during dataset fill I get the following error

"Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding"

I tried setting connection timeout to 0 and command timeout to 0.

This is the code:

public DataSet FillDatasetSQL(string strQuery)
{
try
{
//-----Connection open
sqlConn = new SqlConnection(strSqlConn);
sqlConn.Open();

//-----Fill Dataset
DataSet ds = new DataSet();
sqlAdap = new SqlDataAdapter(strQuery, sqlConn);
sqlAdap.Fill(ds, "Tablename"); <=========== error occurs here

//-----Connection close
sqlConn.Close();
sqlConn.Dispose();

return ds;
}
catch(Exception ex)
{
if (sqlConn.State == ConnectionState.Open) sqlConn.Close(); sqlConn.Dispose();
throw ex;
}
}



Please help

Senthil
AnswerRe: Timeout expired Pin
Nic Rowan29-Oct-07 23:57
Nic Rowan29-Oct-07 23:57 
GeneralRe: Timeout expired Pin
Senu Gandhi30-Oct-07 0:23
Senu Gandhi30-Oct-07 0:23 
GeneralRe: Timeout expired Pin
Nic Rowan30-Oct-07 0:29
Nic Rowan30-Oct-07 0:29 
AnswerRe: Timeout expired Pin
r a j u u30-Oct-07 0:08
r a j u u30-Oct-07 0:08 
GeneralRe: Timeout expired Pin
r a j u u30-Oct-07 0:10
r a j u u30-Oct-07 0:10 
GeneralRe: Timeout expired Pin
Senu Gandhi30-Oct-07 0:26
Senu Gandhi30-Oct-07 0:26 
AnswerRe: Timeout expired Pin
GuyThiebaut30-Oct-07 3:36
professionalGuyThiebaut30-Oct-07 3:36 
QuestionSQL UDF Remoting Pin
Nic Rowan29-Oct-07 23:02
Nic Rowan29-Oct-07 23:02 
AnswerRe: SQL UDF Remoting Pin
andyharman30-Oct-07 7:15
professionalandyharman30-Oct-07 7:15 
QuestionCursor_sql server 2005 Pin
r a j u u29-Oct-07 21:51
r a j u u29-Oct-07 21:51 
AnswerRe: Cursor_sql server 2005 Pin
neeraj_indianic29-Oct-07 22:33
neeraj_indianic29-Oct-07 22:33 
GeneralRe: Cursor_sql server 2005 Pin
r a j u u29-Oct-07 23:30
r a j u u29-Oct-07 23:30 
GeneralRe: Cursor_sql server 2005 Pin
Navdeep Bhardwaj30-Oct-07 0:10
Navdeep Bhardwaj30-Oct-07 0:10 
GeneralRe: Cursor_sql server 2005 Pin
r a j u u30-Oct-07 0:30
r a j u u30-Oct-07 0:30 
Questioninsert more than 50,000 records Pin
ganeshMohan29-Oct-07 20:45
ganeshMohan29-Oct-07 20:45 
AnswerRe: insert more than 50,000 records Pin
_Damian S_29-Oct-07 21:04
professional_Damian S_29-Oct-07 21:04 
Generalwant to know about BCP Pin
ganeshMohan30-Oct-07 5:17
ganeshMohan30-Oct-07 5:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.