i mess up i want to delete all regs >5633 in sql server is that posible

i mess up i want to delete all regs >5633 in sql server is that posible

sql server
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ErnestoAuthor Commented:
i want to
delete from instrumentos where recno>5633
PortletPaulEE Topic AdvisorCommented:
delete from instrumentos where recno>5633

Well, the syntax looks correct, but ...
Make sure you have a backup in case something goes wrong.

How many records will you be deleting? (if it is a lot consider doing it in smaller batches)

Are there any constraints? (i.e. are other tables affected by this)?

Only you know that database; We only know as much about that db as you have included on this page.
Vitor MontalvãoMSSQL Senior EngineerCommented:
So, you have the correct DELETE statement.
What you need more?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

ErnestoAuthor Commented:
i mean
i have not the recno field,
is any way to have the reference of the recnumber by the system and procede?
PortletPaulEE Topic AdvisorCommented:
can you provide the complete table definition? (field names, types etc.)

and perhaps a few rows of data too?

If you do not have a [recno] field how do you know that you need to delete where recno > 5633 ?
Vitor MontalvãoMSSQL Senior EngineerCommented:
Are you saying that recno isn't a column from a table? If so, do you want to mean ROWNUMBER?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.