Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set empty field value to NULL
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01640098
Message ID:
01640100
Views:
49
>Hi,
>
>Is it possible to change some property of a field/column in a SQL Database that automatically sets the value to NULL if the value is an empty string? That is, the application may update the value of a column to an empty string but I want the SQL to set it as NULL.
>
>TIA

This can be done through a trigger. Simple AFTER UPDATE/INSERT trigger can do that.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform