Click here to Skip to main content
15,885,366 members
Home / Discussions / C#
   

C#

 
QuestionReflection and Linq Extension Methods Pin
Gustavo Ushijima26-Oct-12 3:53
Gustavo Ushijima26-Oct-12 3:53 
AnswerRe: Reflection and Linq Extension Methods Pin
onelopez26-Oct-12 4:19
onelopez26-Oct-12 4:19 
QuestionPrinting Automatically When A Particular Event Occurs Pin
Matt U.26-Oct-12 3:43
Matt U.26-Oct-12 3:43 
AnswerRe: Printing Automatically When A Particular Event Occurs Pin
Eddy Vluggen26-Oct-12 4:48
professionalEddy Vluggen26-Oct-12 4:48 
GeneralRe: Printing Automatically When A Particular Event Occurs Pin
Matt U.26-Oct-12 6:54
Matt U.26-Oct-12 6:54 
GeneralRe: Printing Automatically When A Particular Event Occurs Pin
Matt U.26-Oct-12 7:36
Matt U.26-Oct-12 7:36 
AnswerRe: Printing Automatically When A Particular Event Occurs Pin
Clifford Nelson26-Oct-12 9:02
Clifford Nelson26-Oct-12 9:02 
QuestionADO.NET 4 SqlConnection SqlDataAdapter Pin
devvvy25-Oct-12 23:34
devvvy25-Oct-12 23:34 
I'm having a problem ...
<br />
DataTable GetSomeData()<br />
{<br />
    DataTable dtResult = null;<br />
    IDbCommand Cmd = new SqlCommand(SQL, OldSqlConn);<br />
    DataAdapter da = new DataAdapter(Cmd);<br />
    DataSet ResultSet = new DataSet();<br />
    da.Fill(ResultSet);<br />
<br />
    if(ResultSet!=null)<br />
    {<br />
        dtResult = ResultSet.Tables(0);<br />
        foreach(DataRow rw in dtResult.Rows)<br />
        {<br />
           if(SomeConditionMet) {<br />
              rw["SomeCol"] = xxxxx; << Blows up here saying Column 'SomeCol' does not belong to table ABC (But I'm quite confident SomeCol is a column which should be returned by the SQL query... wondering if it's any issue with ADO.NET SqlConn caching or if OldSqlConn has any stale data at one point during the night app loses database connection or something... confused as I can't reproduce this on debugger and it happens only once in a month)<br />
           }<br />
        }<br />
     }<br />
<br />
    return dtResult;<br />
}<br />

dev

AnswerRe: ADO.NET 4 SqlConnection SqlDataAdapter Pin
Deflinek25-Oct-12 23:43
Deflinek25-Oct-12 23:43 
AnswerRe: ADO.NET 4 SqlConnection SqlDataAdapter Pin
Pete O'Hanlon25-Oct-12 23:55
mvePete O'Hanlon25-Oct-12 23:55 
GeneralRe: ADO.NET 4 SqlConnection SqlDataAdapter Pin
devvvy26-Oct-12 2:58
devvvy26-Oct-12 2:58 
GeneralRe: ADO.NET 4 SqlConnection SqlDataAdapter Pin
Eddy Vluggen26-Oct-12 3:33
professionalEddy Vluggen26-Oct-12 3:33 
GeneralRe: ADO.NET 4 SqlConnection SqlDataAdapter Pin
devvvy28-Oct-12 20:00
devvvy28-Oct-12 20:00 
AnswerRe: ADO.NET 4 SqlConnection SqlDataAdapter Pin
Simon_Whale26-Oct-12 0:31
Simon_Whale26-Oct-12 0:31 
Question[Help] Sending message automatically Pin
askersuku25-Oct-12 19:18
askersuku25-Oct-12 19:18 
AnswerRe: [Help] Sending message automatically Pin
Pete O'Hanlon25-Oct-12 23:51
mvePete O'Hanlon25-Oct-12 23:51 
QuestionTextBox not recognising Input Pin
chappie425-Oct-12 14:43
chappie425-Oct-12 14:43 
AnswerRe: TextBox not recognising Input Pin
Eddy Vluggen25-Oct-12 15:08
professionalEddy Vluggen25-Oct-12 15:08 
GeneralRe: TextBox not recognising Input Pin
chappie425-Oct-12 15:15
chappie425-Oct-12 15:15 
GeneralRe: TextBox not recognising Input Pin
Manfred Rudolf Bihy26-Oct-12 0:29
professionalManfred Rudolf Bihy26-Oct-12 0:29 
GeneralRe: TextBox not recognising Input Pin
Eddy Vluggen26-Oct-12 1:42
professionalEddy Vluggen26-Oct-12 1:42 
Questionextension method Pin
mhd.sbt25-Oct-12 9:52
mhd.sbt25-Oct-12 9:52 
AnswerRe: extension method Pin
Pete O'Hanlon25-Oct-12 10:07
mvePete O'Hanlon25-Oct-12 10:07 
AnswerRe: extension method Pin
Richard Andrew x6425-Oct-12 12:19
professionalRichard Andrew x6425-Oct-12 12:19 
AnswerRe: extension method Pin
samu4u25-Oct-12 23:53
samu4u25-Oct-12 23:53 

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.