jes12345
asked on
MS ACCESS find out field type using SQL
Is there some way to find out what type a field in a table is using SQL?
I have a table with a DOUBLE field. In code I then want to run an ALTER table and change it to INTEGER if it is DOUBLE.
I have a table with a DOUBLE field. In code I then want to run an ALTER table and change it to INTEGER if it is DOUBLE.
ASKER
Unfortunately not.. this is only describing how to do the ALTER command (which I already know)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the advises - is ADOX part of the standard .NET lib? I could not find it..
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
No direct solution provided. However found alternative workaround to issue by setting a db schema version in the db
http://www.blueclaw-db.com/alter_table_ddl.htm