Click here to Skip to main content
16,006,001 members
Home / Discussions / C#
   

C#

 
GeneralDataView wont filter in loop Pin
Scalee12-Dec-07 0:46
Scalee12-Dec-07 0:46 
GeneralRe: DataView wont filter in loop Pin
Paul Conrad23-Dec-07 9:57
professionalPaul Conrad23-Dec-07 9:57 
Generalcontext menu strip on treeview sub nodes Pin
D i x y11-Dec-07 23:47
D i x y11-Dec-07 23:47 
GeneralRe: context menu strip on treeview sub nodes Pin
DaveyM6912-Dec-07 1:11
professionalDaveyM6912-Dec-07 1:11 
GeneralTrace Pin
ellllllllie11-Dec-07 23:40
ellllllllie11-Dec-07 23:40 
GeneralRe: Trace Pin
ChrisKo12-Dec-07 7:50
ChrisKo12-Dec-07 7:50 
QuestionProblem with DB2 Pin
User 269896711-Dec-07 22:36
User 269896711-Dec-07 22:36 
GeneralRe: Problem with DB2 Pin
User 269896713-Dec-07 21:01
User 269896713-Dec-07 21:01 
For a work around I open a new connection for each request and close the connection after the request. But here the connection seems not to be closed really. The connection state is closed but the database says there is still a connection. After some request I get the error "Open Connection failed System.Data.OleDb.OleDbException: SQL1226N The maximum number of client connections are already started. SQLSTATE=57030". I don't unterstand this, I close each connection after the request. When I close my program then the connections are closed "really", what is the problem??? Confused | :confused:

That's the way I do my requests:
public DataTable Request()<br />
{<br />
  try<br />
  {<br />
    using (OleDbConnection connection = new OleDbConnection(Constants.DB2_CONNECTION_STRING))<br />
    {<br />
      using (OleDbDataAdapter da = new OleDbDataAdapter(request, connection))<br />
      {<br />
        using (DataTable dtResult = new DataTable())<br />
        {<br />
          da.Fill(dtResult);<br />
          return dtResult;<br />
        }<br />
      }<br />
    }<br />
  }<br />
  catch (Exception ex)<br />
  {<br />
    MessageBox.Show(ex.ToString());<br />
  }<br />
  return null;<br />
}<br />

GeneralHi How i bound Combo BOX Pin
wasimsharp11-Dec-07 22:31
wasimsharp11-Dec-07 22:31 
GeneralRe: Hi How i bound Combo BOX Pin
Christian Graus11-Dec-07 22:54
protectorChristian Graus11-Dec-07 22:54 
GeneralRe: Hi How i bound Combo BOX Pin
Paul Conrad23-Dec-07 9:58
professionalPaul Conrad23-Dec-07 9:58 
GeneralRe: Hi How i bound Combo BOX Pin
wasimsharp23-Dec-07 18:26
wasimsharp23-Dec-07 18:26 
GeneralRe: Hi How i bound Combo BOX Pin
Paul Conrad24-Dec-07 4:46
professionalPaul Conrad24-Dec-07 4:46 
GeneralGridView(winroms) Sorting Pin
VenkataRamana.Gali11-Dec-07 21:55
VenkataRamana.Gali11-Dec-07 21:55 
QuestionGrid with ArrayList-Binding : CurrentCell = null Pin
baerten11-Dec-07 21:20
baerten11-Dec-07 21:20 
Questionasmblly and an aboutBox Pin
barak16048711-Dec-07 20:37
barak16048711-Dec-07 20:37 
GeneralRe: asmblly and an aboutBox Pin
Abhijit Jana11-Dec-07 22:13
professionalAbhijit Jana11-Dec-07 22:13 
GeneralRe: assembly and an aboutBox Pin
dwilliss19-Dec-07 14:37
dwilliss19-Dec-07 14:37 
GeneralMonthCalendar Control Pin
Chandan_Kr11-Dec-07 20:21
Chandan_Kr11-Dec-07 20:21 
GeneralRe: MonthCalendar Control Pin
Abhijit Jana12-Dec-07 0:37
professionalAbhijit Jana12-Dec-07 0:37 
QuestionReadLine needs twice Return Hit after Console.TreatControlCAsInput = true; Optionen Pin
Kerem Guemruekcue11-Dec-07 20:16
Kerem Guemruekcue11-Dec-07 20:16 
Questionwrite a function to check if the value is in float format? Pin
cyn811-Dec-07 19:57
cyn811-Dec-07 19:57 
AnswerRe: write a function to check if the value is in float format? Pin
Kerem Guemruekcue11-Dec-07 20:12
Kerem Guemruekcue11-Dec-07 20:12 
AnswerRe: write a function to check if the value is in float format? Pin
Mr. Candyman11-Dec-07 21:36
Mr. Candyman11-Dec-07 21:36 
AnswerRe: write a function to check if the value is in float format? Pin
Christian Graus11-Dec-07 22:59
protectorChristian Graus11-Dec-07 22:59 

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.