Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8749887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:46:07+00:00 2026-06-13T12:46:07+00:00

I want to delete row in SQL database when a column value matches with

  • 0

I want to delete row in SQL database when a column value matches with current date.
I have created a scheduled job for deletion of data using SQL Server Management Studio. I have followed step as shown in Video
Here Type of script is T-SQL and command I have given is:

Delete from NewDB.dbo.Datetabel where Date=getDate();
COMMIT

I want to schedule this job on daily basis. But now for testing purpose I have given on hourly basis. But this job is failed.

Where will I get the details of Error. I am working on sql2008 r2

What should be reason for failure?
Edited:
Now job is getting success when code is changed as:

BEGIN TRAN 
Delete from NewDB.dbo.Datetabel where Date=getDate();
COMMIT;

But Data is not deleted from the tabel.
What may be issue now?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:46:08+00:00Added an answer on June 13, 2026 at 12:46 pm
    BEGIN TRAN 
    Delete from NewDB.dbo.Datetabel 
    WHERE convert(varchar(10), getdate(), 111) = convert(varchar(10), Date, 111)
    COMMIT
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have several dataframes in which I want to delete each row that matches
How can I delete a specific row from an sql table? I have a
I have a table in a SQL Server database that contains a row I
Here want to delete rows with a duplicated column's value ( Product ) which
I want to delete a row in the grid, but the grid always post's
I want to delete some data displayed in a HTML table row (first on
I want to delete an entry from my Database but it says it can't
I created a database in SQL Server with a couple of tables. I ran
I need to delete many rows from sql server 2008 database, it must be
I have created database table. But there is a strange thing I can insert

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.