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. Database & SysAdmin
  3. Database
  4. Oracle to SQL porting [modified]

Oracle to SQL porting [modified]

Scheduled Pinned Locked Moved Database
databasesql-serveroraclesysadminhelp
2 Posts 2 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.
  • A Offline
    A Offline
    Arudya
    wrote on last edited by
    #1

    Hi, I am pretty new to database section. I tried porting a table created in Oracle to SQL Server 2005. In Oracle, i could see a column defined holding the user details. The column is defines as given below. CREATE_USER VARCHAR2(255 BYTE) DEFAULT USER NOT NULL My doubt is regarding default value USER. I would like to know 1) What will be the value keyword "USER" will be returning in ORACLE. Is it an in built property or function which returns the default user? 2) And the equivalent value to be used for "USER" in SQL Server 2005? Please help Thanks, Arudya

    modified on Wednesday, October 27, 2010 12:01 AM

    C 1 Reply Last reply
    0
    • A Arudya

      Hi, I am pretty new to database section. I tried porting a table created in Oracle to SQL Server 2005. In Oracle, i could see a column defined holding the user details. The column is defines as given below. CREATE_USER VARCHAR2(255 BYTE) DEFAULT USER NOT NULL My doubt is regarding default value USER. I would like to know 1) What will be the value keyword "USER" will be returning in ORACLE. Is it an in built property or function which returns the default user? 2) And the equivalent value to be used for "USER" in SQL Server 2005? Please help Thanks, Arudya

      modified on Wednesday, October 27, 2010 12:01 AM

      C Offline
      C Offline
      Chris Meech
      wrote on last edited by
      #2

      The value returned for USER will be the userid that was supplied to establish the connection. If SQL*Plus is available, login to an oracle database and try the command select user from dual. It should return the same value as you supplied as the userid when you logged in. As for the equivalent in SQL Server, I'd suggest try googling for an equivalent. :)

      Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]

      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