Stan Winchester
2005-03-21 23:50:25 UTC
Is there a way to add a default value with a MS Access ALTER TABLE ADD
COLUMN?
<CFQUERY NAME="AddSendEmail" DATASOURCE="#request.dsn#">
ALTER TABLE tbl_Users
ADD COLUMN SendEmail BIT default (1) NOT NULL
</CFQUERY>
I've tried it with and without the parentheses and it will not work.
I need to do this for a patch that must be applied online.
Thank you,
Aftershock Web Design, Inc.
by: Stan Winchester
President/Developer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199619
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=13123.11886.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
COLUMN?
<CFQUERY NAME="AddSendEmail" DATASOURCE="#request.dsn#">
ALTER TABLE tbl_Users
ADD COLUMN SendEmail BIT default (1) NOT NULL
</CFQUERY>
I've tried it with and without the parentheses and it will not work.
I need to do this for a patch that must be applied online.
Thank you,
Aftershock Web Design, Inc.
by: Stan Winchester
President/Developer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199619
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=13123.11886.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54