All I want to do is to insert Null with the database when the textbox is empty.
--ACCOUNT
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
SET IDENTITY_INSERT account ON
INSERT INTO dbo.account
(
AccntID ,
managedby ,
AccountHolder ,
Description ,
AccountType ,
ContactPerson ,
ContactNumber ,
EmailAddress ,
Address ,
ClientTYpe ,
SchemeType ,
SalesManager ,
DateCreated ,
Login ,
Password ,
Balance ,
FilterOption ,
Enable22 ,
AllowExtendedConfig
)
-- Insert statements for procedure here
VALUES (@AccntID, @managedby, @AccountHolder, @Description, @AccountType, @ContactPerson, @ContactNumber, @EmailAddress, @Address, @ClientType, @SchemeType, @SalesManager, @DateCreated, @Login, @Password, @Balance, @FilterOption, @Enable22, @AllowExtendedConfig)
SET IDENTITY_INSERT account OFF
END
What is the best way to add NULL values to the database when my textboxes are empty
dbo.accounttable, mentionNullablefields. Also, provide to which columns you need to set DB Null.