|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Is anyone aware of a SQL query that can change a field's data type?
I am trying to work on an Access Database remotely, and need to change a field data type from text to number. However, I am unable to physically download/upload the database as I am working through Terminal Services. Your help is appreciated. Chris |
|
#2
|
||||
|
||||
|
try something like this
Code:
ALTER TABLE <TableName> ALTER COLUMN <ColumnName> SET DATA TYPE NUMBER This won't work if you already have non numeric data in the column fields though. |
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > Using SQL to change data type |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|