all groups > sql server replication > september 2007 >
You're in the

sql server replication

group:

Empty string is being translated to null - how can this be prevented?


Re: Empty string is being translated to null - how can this be prevented? Hilary Cotter
9/4/2007 12:00:00 AM
sql server replication:
Can you convert the empty strings into a single space on the publisher?

--
RelevantNoise.com - dedicated to mining blogs for business intelligence.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
[quoted text, click to view]

Re: Empty string is being translated to null - how can this be prevented? Michael Meyer
9/4/2007 12:00:00 AM
Do you mean in the application code itself that is populating the column or
would there be some means of doing this in SQL Server 2005 itself outside of
using the compatibility setting?


[quoted text, click to view]

Empty string is being translated to null - how can this be prevented? Michael Meyer
9/4/2007 7:18:09 AM
The setup is Microsoft SQL Server 2005 as the publisher for transactional
replication to an Oracle Subscriber.
There are some not null columns that have empty strings in them and when it
gets to the Oracle subscriber it is being translated in to null and causing
an ORA-01400 (cannot insert null into...) error.

Is there any thing in the setup of replication that can help avoid this
situation?

Thanks

Re: Empty string is being translated to null - how can this be prevented? Hilary Cotter
9/4/2007 1:04:26 PM
Either in the application code or in an after trigger.

--
RelevantNoise.com - dedicated to mining blogs for business intelligence.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
[quoted text, click to view]

AddThis Social Bookmark Button