Do not select newly inserted row data

Last post 07-23-2008 2:03 AM by david wendelken. 1 replies.

Sort Posts:

  • Do not select newly inserted row data

    07-10-2008, 8:38 AM
    • Member
      14 point Member
    • naym
    • Member since 07-10-2008, 12:27 PM
    • Posts 14

    Hello

    I develop a asp.net web app. and in code a insert query is executed( where a date field is inserted) and just after insert I've executed select query. but dont get the date field data, which is showing null. but if i use Thread.Sleep(8000); between insert and select query then i get the date from database.

    I am using .net 2.0 and Sql Server 2005

    can anyone tell me what can i do now !!!

    Thankx

    Naym

  • Re: Do not select newly inserted row data

    07-23-2008, 2:03 AM
    • Star
      14,584 point Star
    • david wendelken
    • Member since 07-27-2005, 7:47 PM
    • Fayetteville, NC, USA
    • Posts 2,076
    • Moderator

    You may have to show us some code.  The only thing I can think of is that your code is getting cached data from somewhere and the cache hasn't been updated right away.

    If this answered your question, be sure to mark it as the answer. That way, everybody after you will know it's the answer also!
Page 1 of 1 (2 items)