1 Replies - 380 Views - Last Post: 30 September 2016 - 04:46 PM

#1 pharaon  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 164
  • Joined: 18-October 07

Question oledb parameters null check

Posted 30 September 2016 - 03:14 PM

i'm using access database and vs2015
insercommand.Parameters.Add("@family_ID", OleDb.OleDbType.Integer)


how to check if the parameter is null before inserting and if it's to use dbnull.value instead
Is This A Good Question/Topic? 0
  • +

Replies To: Question oledb parameters null check

#2 astonecipher  Icon User is offline

  • Too busy for this
  • member icon

Reputation: 2329
  • View blog
  • Posts: 9,356
  • Joined: 03-December 12

Re: Question oledb parameters null check

Posted 30 September 2016 - 04:46 PM

That would be done within the application, unless you are calling a stored procedure, in which case the sp could also validate the input.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1