Results 1 to 4 of 4

Thread: SQL Server

  1. #1
    Junior Member
    Join Date
    Sep 2006
    Answers
    2

    Question SQL Server

    C# application is connected to SQL Server 2000.
    SQL Server 2000 table allows 'INSERT' and 'UPDATE' commands work successfully with NULL values for all the NOT-NULL fields. No NONULLEXCEPTION is thrown. Please explain.


  2. #2
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: SQL Server

    That is not possible .
    There must be some error in your program or the command is not executing properly from C#.


  3. #3
    Junior Member
    Join Date
    Sep 2006
    Answers
    2

    Unhappy Re: SQL Server

    I checked my code many times. Only the primary key field validates the data for NULL and throws exception. The rest of the NOTNULL fields accepts all NULL values when INSERTed and UPDATEd from C#. But executing the same commands in the Query Analyser or data entry done directly works as expected i.e. throws errors when NULL values are inserted or updated. This is strange.


  4. #4
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: SQL Server

    are you using any procedure or directly executing the sql statment ???


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact