Click here to Skip to main content
15,920,576 members
Home / Discussions / Database
   

Database

 
QuestionROW_NUMBER() problem Pin
Yulianto.23-Apr-09 20:31
Yulianto.23-Apr-09 20:31 
AnswerRe: ROW_NUMBER() problem Pin
Eddy Vluggen23-Apr-09 22:20
professionalEddy Vluggen23-Apr-09 22:20 
QuestionSQL Transaction Problem Pin
Kaushal Arora23-Apr-09 20:30
Kaushal Arora23-Apr-09 20:30 
AnswerRe: SQL Transaction Problem Pin
Ashfield23-Apr-09 21:00
Ashfield23-Apr-09 21:00 
GeneralRe: SQL Transaction Problem Pin
Kaushal Arora23-Apr-09 21:33
Kaushal Arora23-Apr-09 21:33 
GeneralRe: SQL Transaction Problem Pin
Ashfield24-Apr-09 1:23
Ashfield24-Apr-09 1:23 
QuestionCannot alter column of type NTEXT or IMAGE Pin
Jammer23-Apr-09 11:28
Jammer23-Apr-09 11:28 
AnswerRe: Cannot alter column of type NTEXT or IMAGE Pin
Rob Smiley28-Apr-09 2:14
Rob Smiley28-Apr-09 2:14 
wow, you still can't do this in sql2008?!

One approach is to create a whole new column with the required type, then copy the content from the old column into it & delete the old column. Of course, the column names cannot be the same, so you'll need to use sp_rename at some point.

Unfortunately, this can get very tricky when there are other constraints in the database that rely on your column (default value is probably most relevant here). Also, be aware of the 4000 character limit of nvarchar.

There's lots of tools out there that will assist with this kind of change. We use xSqlObject here, which is excellent (www.xsqlsoftware.com/Product/Sql_Schema_Compare.aspx[^])

Best of luck!

"An eye for an eye only ends up making the whole world blind"

GeneralRe: Cannot alter column of type NTEXT or IMAGE Pin
Jammer29-Apr-09 9:12
Jammer29-Apr-09 9:12 
GeneralRe: Cannot alter column of type NTEXT or IMAGE Pin
Rob Smiley29-Apr-09 11:10
Rob Smiley29-Apr-09 11:10 
QuestionHiring home based workers (2449) Pin
usman777723-Apr-09 8:02
usman777723-Apr-09 8:02 
AnswerRe: Hiring home based workers (2449) Pin
Le centriste23-Apr-09 9:26
Le centriste23-Apr-09 9:26 
AnswerRe: Hiring home based workers (2449) Pin
SayreCC23-Apr-09 15:01
SayreCC23-Apr-09 15:01 
QuestionTrigger Firing in multiple database,sql server 2005 Pin
Sujit Mandal23-Apr-09 0:39
Sujit Mandal23-Apr-09 0:39 
AnswerRe: Trigger Firing in multiple database,sql server 2005 Pin
Giorgi Dalakishvili23-Apr-09 6:59
mentorGiorgi Dalakishvili23-Apr-09 6:59 
QuestionSQL server Express is not installed after uninstall Pin
Rupesh Kumar Swami22-Apr-09 23:23
Rupesh Kumar Swami22-Apr-09 23:23 
QuestionHow to create database diagram in MYSQL Pin
vishal naik22-Apr-09 17:29
vishal naik22-Apr-09 17:29 
QuestionError handling in sql 2000 trigger Pin
codemunch22-Apr-09 10:10
codemunch22-Apr-09 10:10 
QuestionSQL SCRIPT Pin
kibromg22-Apr-09 5:25
kibromg22-Apr-09 5:25 
AnswerRe: SQL SCRIPT Pin
David Mujica22-Apr-09 5:43
David Mujica22-Apr-09 5:43 
GeneralRe: SQL SCRIPT Pin
kibromg22-Apr-09 6:44
kibromg22-Apr-09 6:44 
QuestionUPDATE statement using a view Pin
Shrimpersfan22-Apr-09 4:19
Shrimpersfan22-Apr-09 4:19 
AnswerRe: UPDATE statement using a view Pin
Eddy Vluggen22-Apr-09 5:17
professionalEddy Vluggen22-Apr-09 5:17 
QuestionCreating a temporary table Pin
fly90422-Apr-09 4:04
fly90422-Apr-09 4:04 
AnswerRe: Creating a temporary table Pin
Syed Mehroz Alam22-Apr-09 6:49
Syed Mehroz Alam22-Apr-09 6:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.