Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Invalid type declaration for text columns #82

Open
lmeyer1 opened this issue May 9, 2019 · 2 comments
Open

Invalid type declaration for text columns #82

lmeyer1 opened this issue May 9, 2019 · 2 comments
Labels

Comments

@lmeyer1
Copy link
Contributor

lmeyer1 commented May 9, 2019

Describe the Issue

The generated create table script has an syntax error.

Expected behavior

The generated scripts should be valid T-SQL statements.

Steps to Reproduce

  • Create a table containing a text or ntext column.
  • Pull the table schema

The generated script will contain a column definition containing text(16), e.g.

[InfoSP] text(16) COLLATE French_CI_AS NULL,

which will generate the following error when run against the database:

Msg 2716, Level 16, State 1, Line 1
Column, parameter, or variable # 8: Cannot specify a column width on data type text.

Other Information

Tables hosted on a SQL Server 2008 R2.

@lmeyer1
Copy link
Contributor Author

lmeyer1 commented Oct 15, 2020

I have a fix for this bug. I try to create a pull request by monday.

@lmeyer1
Copy link
Contributor Author

lmeyer1 commented Oct 19, 2020

Fixed with PR #135

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

No branches or pull requests

2 participants