Hi @Bobby P ,
The syntax in your INSERT INTO statement is incorrect. It fails when inserting data, so you can't see anything.The value of VARCHAR type must use ”, and the value of BIT type can only take the value 1, 0 or NULL.Please try:
DECLARE @NDCs TABLE
(
[NDC] VARCHAR(11),
[Valid] BIT
)
;
INSERT INTO @NDCs
VALUES('[NDC]',
1)
SELECT *
FROM @NDCs
;
Output:
Regards,
Echo
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.