Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Altering Column Data Types

Status
Not open for further replies.

faust13

Programmer
Joined
Aug 7, 2001
Messages
176
Location
US
I'm pretty sure I have the syntax, but it doesn't seem to like it:

ALTER TABLE myTbl ALTER COLUMN myColumn INT NULL

myColumn's datatype is nvarchar(30).

Thanks! ----------------------------------------
Is George Lucas Kidding...
 

What error are you getting?

If the column contains any non-numeric characters SQL will not alter to INT data type. Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top