?
Solved

- conversion from 'int' to 'text' is not supported on the connected database server

Posted on 2008-10-09
3
Medium Priority
?
2,326 Views
Last Modified: 2012-06-21
I have a numeric field that the client wants to be text now. I right-click, choose modify, and change it from type int to text (I also tried ntext). I am doing this in SQL Server Management Express. The database uses Windows Authentication. I get the error message:

conversion from 'int' to 'text' is not supported on the connected database server

What do I need to do? Thanks!
0
Comment
Question by:gaynes
[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
3 Comments
 
LVL 25

Accepted Solution

by:
DBAduck - Ben Miller earned 2000 total points
ID: 22682012
I would change the type to varchar(max) instead of text.  It is much more text like and you would alleviate having things that you had to deal with on the update and changing of the text field.

If this is NOT SQL 2005 then I would change it to a varchar(30) and save it and then change it to text.
0
 
LVL 5

Expert Comment

by:Cvijo123
ID: 22682081
imo never use ntext or text if u really dont need and for your example changeing int to varchar(30) should be more than enough.

text and ntext fields are not stored on pages with rest of row data, they are stored on separete part of page and every query that select those columns is slow and u are limited on doing some thing if u have text/ntext field.

so use varchar :)

0
 

Author Closing Comment

by:gaynes
ID: 31504813
Thanks! Exactly what I needed.
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
Suggested Courses

770 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