Solved

changing data type

Posted on 2011-03-04
4
329 Views
Last Modified: 2012-05-11
Hi,

I need to change data type of one of the tables, but the saving keeps timing out.  Any ideas?  thx
0
Comment
Question by:mcrmg
  • 2
4 Comments
 
LVL 23

Expert Comment

by:Rajkumar Gs
ID: 35039015
From which data type to which datatype ?
0
 

Author Comment

by:mcrmg
ID: 35039141
from varchar(50) to varchar(100), this field is empty, but there are more than 2 M records..thx
0
 
LVL 40

Accepted Solution

by:
Sharath earned 125 total points
ID: 35039205
Post your statement. Are you trying like this?
alter table your_table alter column your_col varchar(100)
0
 

Author Comment

by:mcrmg
ID: 35039238
I was using design then save...thx
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
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 ?
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how the fundamental information of how to create a table.

809 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