Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Code: 80040E14 #8

Closed
ErikEJ opened this issue Dec 5, 2015 · 1 comment
Closed

Error Code: 80040E14 #8

ErikEJ opened this issue Dec 5, 2015 · 1 comment

Comments

@ErikEJ
Copy link
Owner

ErikEJ commented Dec 5, 2015

edit log table:

level nvarchar 10 True False 0 0

execute code:

-- Script Date: 5/8/2015 4:06:13 PM - ErikEJ.SqlCeScripting version 3.5.2.49
ALTER TABLE [log] ALTER COLUMN [level] nvarchar(10) DEFAULT '11' NOT NULL ;
GO

get message:

Error Code: 80040E14
Message : There was an error parsing the query. [ Token line number = 1,Token line offset = 53,Token in error = DEFAULT ]
Minor Err.: 25501
Source : SQL Server Compact ADO.NET Data Provider
Num. Par. : 1
Num. Par. : 53
Err. Par. : DEFAULT

comments

ErikEJ wrote May 10 at 6:51 AM

Thanks for reporting this - assume you are using the GUI to change the column?

Looks like this should be what was actually generated:

ALTER TABLE [Elmah] ALTER COLUMN [Host] nvarchar(50) NOT NULL;

ALTER TABLE [Elmah] ALTER COLUMN [Host] SET DEFAULT ('11');

@ErikEJ ErikEJ added this to the Backlog milestone Dec 8, 2015
@ErikEJ
Copy link
Owner Author

ErikEJ commented Dec 11, 2015

Turns out this was typed, not generated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant