SqlServer-QA.net

Knowledge Sharing Network
Welcome to SqlServer-QA.net Sign in | Join | Help
in Search

Browse by Tags

All Tags » empty string   (RSS)
  • Empty string and Default values

    Often newbies use empty string and consider it as NULL. But when an empty string is passed, it may not be stored as empty string or NULL. It actually depends on the datatype of the column Consider this exampleDECLARE @t TINYINT,@s SMALLINT,@i INT,@big BIGINT,@f FLOAT,@bit BIT, @sm SMALLMONEY,@m MONEY,@d DATETIME SELECT @t='', ...
    Posted to SQL Server Transact-SQL (SSQA.net) (Weblog) by Madhivanan on September 2, 2008
Powered by Community Server (Commercial Edition), by Telligent Systems