TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dibyajyoti Palata
1.5k
275
14.3k
User defined table in Sql Server
Aug 6 2020 8:38 AM
Can I return integer value after an insert using Stored Procedure with used in user defined type in SQL Server?
if successful return 1
if error return 0
if Yes ..
How?
Please explain with one example.
I have created this user type and stored procedure and used in asp.net, it is inserted.
But my question is can I return integer value after successful.
CREATE
TYPE InsertEmployee
AS
TABLE
(
[emp_id] [
int
]
NOT
NULL
,
[emp_name][
varchar
(100)]
)
GO
CREATE
PROCEDURE
sp_InsertEmployee
(
@DataTableDetails InsertEmployee READONLY
)
AS
BEGIN
INSERT
INTO
tbl_employee
SELECT
emp_id, emp_name
FROM
@DataTableDetails
END
Reply
Answers (
3
)
WHEN Add optional parameters on join query become very slow so How to
Not able to create user under SQL server database