Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Insert and Orace DB

Insert and Orace DB

Scheduled Pinned Locked Moved ASP.NET
databasejavascriptoraclehelptutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Naif_Prof
    wrote on last edited by
    #1

    Hi, i have one one WebForm contain 6 text box and one user control to read date from Javascript code i creat connection to oracle database and i want to insert new record to database every thing(connection to DB) is ok but i have the following prob. * how to write insert statement ( format ) * date conversion in oracle the insert statement is look like insert into emp ( empno,ename,hiredate) values (1234,'Alen',to_date('10-01-2006','dd-mm-yyyy'); how i can write same this statement in code behiend as string and give to dataadepter to execute it any one help me to solve it thanks ..

    V A 2 Replies Last reply
    0
    • N Naif_Prof

      Hi, i have one one WebForm contain 6 text box and one user control to read date from Javascript code i creat connection to oracle database and i want to insert new record to database every thing(connection to DB) is ok but i have the following prob. * how to write insert statement ( format ) * date conversion in oracle the insert statement is look like insert into emp ( empno,ename,hiredate) values (1234,'Alen',to_date('10-01-2006','dd-mm-yyyy'); how i can write same this statement in code behiend as string and give to dataadepter to execute it any one help me to solve it thanks ..

      V Offline
      V Offline
      V 0
      wrote on last edited by
      #2

      For SQL syntax, see google or on the Oracle site (need subscribe, but is free). for formatting a Date string See the ToString method of the DateTime object. Good Luck. Coulda, woulda, shoulda doesn't matter if you don't.

      1 Reply Last reply
      0
      • N Naif_Prof

        Hi, i have one one WebForm contain 6 text box and one user control to read date from Javascript code i creat connection to oracle database and i want to insert new record to database every thing(connection to DB) is ok but i have the following prob. * how to write insert statement ( format ) * date conversion in oracle the insert statement is look like insert into emp ( empno,ename,hiredate) values (1234,'Alen',to_date('10-01-2006','dd-mm-yyyy'); how i can write same this statement in code behiend as string and give to dataadepter to execute it any one help me to solve it thanks ..

        A Offline
        A Offline
        albCode
        wrote on last edited by
        #3

        Convert date in your application by using ToString method outformatdate .ToString("dd-MM-yyyy"); _____________________ Proud to be Albanian _____________________

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups