Re: Empty String Question
From: Tibor Karaszi (tibor_please.no.email_karaszi_at_hotmail.nomail.com)
Date: 03/29/04
- Next message: Bruce de Freitas: "RE: DB Files & Perf question"
- Previous message: Geoff N. Hiten: "Re: 'Online Pending' status in cluster"
- In reply to: Forch: "Empty String Question"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 29 Mar 2004 17:20:02 +0200
Forch,
No, these are two different things. I'm surprised that Oracle changes an empty string to NULL. AFAIK, you'd
have to use a trigger to change the values for the INSERT. Or better yet, fix the code ;-).
-- Tibor Karaszi, SQL Server MVP http://www.karaszi.com/sqlserver/default.asp "Forch" <anonymous@discussions.microsoft.com> wrote in message news:A66C975A-852E-4EC5-8B79-A81E91732FB5@microsoft.com... > Hello everyone..... I hope you are having a great day... > > We have recently converted an Oracle Database to SQL Server 2000. Please consider the following command: > > insert into Localtable (SomeTextField) values (''); > > In Oracle, the data in stored as NULL, where in SQL Server it is stored as an empty string. > > My question is, is there anyway the default for an Empty String can be stored as NULL? > > Thanks, > > Forch
- Next message: Bruce de Freitas: "RE: DB Files & Perf question"
- Previous message: Geoff N. Hiten: "Re: 'Online Pending' status in cluster"
- In reply to: Forch: "Empty String Question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|