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
Ramon Quintana
NA
404
65.9k
How can i INSERT a @@rowcount in a table camp
Sep 20 2018 11:04 AM
Hi, I have a @@rowcount value catch from a Delete sentence, i need to INSERT that value in a table varchar column.
I WROTE this Query:
declare @delete int
delete from TableName1
select @delete = @@rowcount
insert into TableName2 (nom_tab, Reg_deleted)
values ('TableName1','@@rowcount');
BUT:
it only insert the WORD "@@rowcount" and NOT THE VALUE
Reply
Answers (
2
)
Sql Server Identity Related
Access denied using XP_CMDSHELL