Solved

Convert column from Varbinary(50) to Varchar(50)

Posted on 2006-11-30
2
626 Views
Last Modified: 2006-11-30
A database column that I am working with has a field that was mistakenly set to Varbinary(50) instead of Varchar(50). I changed it to Varchar(50) however now all the characters in the column have been padded with extra unknown characters. How do I fix the data in this column to remove the extra characters?
0
Comment
Question by:craigdev
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 500 total points
ID: 18044674
Update urTable
SET vabinaryColumn  = cast (vabinaryColumn as Varchar(50) )
0
 
LVL 1

Author Comment

by:craigdev
ID: 18044694
thanks mate
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how the fundamental information of how to create a table.

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question