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

  • SEARCH
  • Home
  • 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 8188875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:04:04+00:00 2026-06-07T03:04:04+00:00

I just fill up my database with an excel file and after checking out

  • 0

I just fill up my database with an excel file and after checking out it i saw that in many column there is an error.

I check out on internet and it is a bug of Excel when insert cells in multiline. So now the word “x000D” is present in many columns.

How i can delete it with a query with sql in the whole database?

  • 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-07T03:04:05+00:00Added an answer on June 7, 2026 at 3:04 am

    If you wanna do this on all your database, you have to create a procedure looping through

    the INFORMATION_SCHEMA.COLUMNS view, which will give you all columns (with their tables) of your database. You can check the DATA_TYPE of your columns (you don’t need to update integer columns, for example)

    Then with dynamic sql, build a query like that in the loop

    UPDATE <MYTABLE> SET <MYCOLUMN> = REPLACE(<MYCOLUMN>, 'x000D', '')
    

    and execute it.

    EDIT

    Faster, not so clean, without a stored proc, you can type in SQL Server Management studio :

    SELECT 'UPDATE ' 
    + c.TABLE_NAME 
    + ' SET ' 
    + c.COLUMN_NAME 
    + ' =REPLACE(' + c.COLUMN_NAME + ', ''x000D'', '''');'
    FROM INFORMATION_SCHEMA.COLUMNS c
    WHERE c.DATA_TYPE = 'nvarchar' // or IN (<the types you wanna correct>)
    

    you copy the result and execute it, and you’re done.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just checking my JS and I have an error, but I cannot see where.
I just tried inserting value in to a database and that work. Now I
I am trying to fill out a DataGridView with data from a database. The
I'm just thinking about MySQL database design and there are often situations where A
I have a form that users can fill out, and the data will be
i have a database with 16 fields and i just want to fill the
Some of my columns need explicit widths, while others should just fill up all
I am just trying to fill my ListView but I get a NullPointerException Here
This bad boy just does not want to change size to fill the dock
This will probably be just another unsolved thread but i'll fill in some info

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.