Solved

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

Posted on 2008-10-09
3
2,239 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 24

Accepted Solution

by:
DBAduck - Ben Miller earned 500 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
[Unsupported] SQL Update in CRM 2011 Database 19 64
Remove () 10 40
sql trace 4 26
invoke-sqlcmd help 5 31
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
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 ?
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

734 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