Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 57139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:38:40+00:00 2026-05-10T17:38:40+00:00

I have to write a component that re-creates SQL Server tables (structure and data)

  • 0

I have to write a component that re-creates SQL Server tables (structure and data) in an Oracle database. This component also has to take new data entered into the Oracle database and copy it back into SQL Server.

Translating the data types from SQL Server to Oracle is not a problem. However, a critical difference between Oracle and SQL Server is causing a major headache. SQL Server considers a blank string (”) to be different from a NULL value, so a char column can be defined as NOT NULL and yet still include blank strings in the data.

Oracle considers a blank string to be the same as a NULL value, so if a char column is defined as NOT NULL, you cannot insert a blank string. This is causing my component to break whenever a NOT NULL char column contains a blank string in the original SQL Server data.

So far my solution has been to not use NOT NULL in any of my mirror Oracle table definitions, but I need a more robust solution. This has to be a code solution, so the answer can’t be ‘use so-and-so’s SQL2Oracle product’.

How would you solve this problem?

Edit: here is the only solution I’ve come up with so far, and it may help to illustrate the problem. Because Oracle doesn’t allow ” in a NOT NULL column, my component could intercept any such value coming from SQL Server and replace it with ‘@’ (just for example).

When I add a new record to my Oracle table, my code has to write ‘@’ if I really want to insert a ”, and when my code copies the new row back to SQL Server, it has to intercept the ‘@’ and instead write ”.

I’m hoping there’s a more elegant way.

Edit 2: Is it possible that there’s a simpler solution, like some setting in Oracle that gets it to treat blank strings the same as all the other major database? And would this setting also be available in Oracle Lite?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T17:38:40+00:00Added an answer on May 10, 2026 at 5:38 pm

    I don’t see an easy solution for this.

    Maybe you can store your values as one or more blanks -> ' ', which aren’t NULLS in Oracle, or keep track of this special case through extra fields/tables, and an adapter layer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 61k
  • Answers 61k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Hmmm... interesting... fails for me using XslTransform and XslCompiledTransform in… May 11, 2026 at 9:37 am
  • added an answer I think the easiest way is to use NSThread's -(void)cancel… May 11, 2026 at 9:37 am
  • added an answer I haven't come across any LOB applications but I have… May 11, 2026 at 9:37 am

Related Questions

I have to write a component that re-creates SQL Server tables (structure and data)
I have to write a reliable, totally-ordered multicast system from scratch in Python. I
I have to write a program that read from a file that contains the
I have to write a multiplayer pacman game in Java for a university assignment
For my programming class I have to write a linked list class. One of
I have to write an applet that brings up a password dialog. The problem
I have to write something in vbscript that need to use a unique set.
I have an OLE COM object that trying to write a wrapper for, I
I have a PS/2 touchpad which I would like to write a driver for
For a school assignment I have to write x86 assembly code, except I can't

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.