How to store in to Database

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2006
Posts: 121
Reputation: manal is an unknown quantity at this point 
Solved Threads: 17
manal's Avatar
manal manal is offline Offline
Junior Poster

How to store in to Database

 
0
  #1
Mar 28th, 2006
Slam evey one...
i have question i hope i find its answer here.....
i want to read date from datatimepicker that user select then store value in database i know how to connect to database and how to get value from datetimpicker but need to know how to store it

Thanx...
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 5
Reputation: Mihir3000 is an unknown quantity at this point 
Solved Threads: 0
Mihir3000 Mihir3000 is offline Offline
Newbie Poster

Re: How to store in to Database

 
0
  #2
Mar 29th, 2006
Originally Posted by manal
Slam evey one...
i have question i hope i find its answer here.....
i want to read date from datatimepicker that user select then store value in database i know how to connect to database and how to get value from datetimpicker but need to know how to store it

Thanx...
if you are using MS Access database then in insert query you need to specify '#' keyword.
For example : insert into tbl1 values (#date1#,'name','etc');

if database is other than MS Access then above query changes to
insert into tbl1 values ('date1','name','etc');
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 121
Reputation: manal is an unknown quantity at this point 
Solved Threads: 17
manal's Avatar
manal manal is offline Offline
Junior Poster

Re: How to store in to Database

 
0
  #3
Mar 29th, 2006
Thank u..it was helpful
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC