C# help...

maxcblaster

Member
Aug 6, 2009
132
4
0
Ratnapura
The Transection has abroted.. error eka enawa

month end ehekadi thama meka enne.ekedi final settlement ekak aluth table ehekata insert wenna thiyanawa..

insert eka gawa break wela me error eka enawa.:confused::confused::confused::confused:

use karanne SQL 2008r2 Server & Windows 7...



Please help
 
Last edited:

D#rox

Well-known member
  • Oct 6, 2013
    1,926
    211
    63
    රෙද්ද අස්සෙ
    ප්‍රශ්නේ පොඩ්ඩක් පැහැදිලි මදි මචන්. පොඩ්ඩක් check කරලා බලපන් එන්නේ datetime error එකක් ද කියල inner exceptions ටික දිග ඇරලා. :confused::confused:
     

    chew

    Junior member
  • Sep 25, 2006
    31
    5
    8
    Can you check your source code??

    I think there is a problem in your inser query. just chec all the forign keys and data types are correct in yout insert script. This is the most inner exception so better to check one level up and get the exact place in the source code.
     

    Gccamila

    Well-known member
  • Feb 16, 2013
    3,282
    624
    113
    DownTown
    wari-nana.gif
    BUMP
    wari-nana.gif

     

    chathuranga8887

    Active member
  • Nov 9, 2009
    583
    72
    28
    mawanella
    Last edited:

    maxcblaster

    Member
    Aug 6, 2009
    132
    4
    0
    Ratnapura
    Machan uba transaction use කරනවද

    https://www.codeproject.com/Articles/522039/A-Beginners-Tutorial-for-Understanding-Transaction

    http://www.c-sharpcorner.com/article/transaction-in-net

    1)Connection Time out ekk wenna puluwan
    (if u use transaction scope increase the time out else Connection time out)

    2)write a SQL job to do program thing in month end
    http://www.c-sharpcorner.com/UploadFile/raj1979/create-and-schedule-a-job-in-sql-server-2008/

    2) Try use SQL Transaction

    thaks machan....:D:D:D:D:D