MyMeta DataTypeName Incorrect

Please enter any bugs here. We will check this daily!

MyMeta DataTypeName Incorrect

Postby alphonse on Fri Mar 16, 2007 8:00 pm

First I want to say how great MyGeneration is, especially for the price.
It has saved countless hours of time as well as keeping my code and procs consistant.

Using SQL Server 2005, DataTypeName and DataTypeNameComplete return 'text' for the new varchar(max) data type.
alphonse
Private First Class
 
Posts: 12
Joined: Thu Jan 13, 2005 8:05 pm

Postby justin.greenwood on Fri Mar 16, 2007 10:31 pm

thanks for the heads up on that. we will look into that for the next build. I know mike is working on adding a plugin for SQL Server CE, so he may also be able to nail that. one of us at least should be able to get it.
User avatar
justin.greenwood
Site Admin
 
Posts: 441
Joined: Sat Apr 03, 2004 6:10 am
Location: Indianapolis, IN

update on varchar(max) support?

Postby Joe Kalinowski on Thu Jun 14, 2007 9:08 pm

Is there an update for when support will be added for the Sql Server 2005 varchar(max), nvarchar(max), and varbinary(max) data types?
Joe Kalinowski
Lurker
 
Posts: 3
Joined: Thu Apr 27, 2006 3:18 pm

I'd like to see it too.

Postby bdfranson on Sat Jun 30, 2007 2:30 pm

Would be really nice to get this - text fields are deprecated in SQL Server 2005 and replaced with the new fields.

Please let us know when there will be an update!

Thanks - great product!
bdfranson
Lurker
 
Posts: 2
Joined: Sat Jun 30, 2007 2:24 pm

One last thing...

Postby bdfranson on Sat Jun 30, 2007 3:28 pm

Sorry - was looking a bit more into this.

The specification for the fields should be (SqlDbType is per Microsoft):

varchar(max)
DataTypeName: varchar
DataTypeNameComplete: varchar(max)
DbTargetType: SqlDbType.Text

nvarchar(max)
DataTypeName: nvarchar
DataTypeNameComplete: nvarchar(max)
DbTargetType: SqlDbType.NText

varbinary(max)
DataTypeName: varbinary
DataTypeNameComplete: varbinary(max)
DbTargetType: SqlDbType.Image
bdfranson
Lurker
 
Posts: 2
Joined: Sat Jun 30, 2007 2:24 pm

Any updates ?

Postby jamieb on Fri Aug 24, 2007 7:58 am

Are there any updates on this ?

workaround if it's of use: (VB.Net)

[code]
Function DataTypeNameComplete(ByVal c As Column) As String
If c.DataTypeNameComplete = \"ntext\" AndAlso c.CharacterMaxLength = 0 Then Return \"nvarchar(MAX)\"
If c.DataTypeNameComplete = \"text\" AndAlso c.CharacterMaxLength = 0 Then Return \"varchar(MAX)\"
If c.DataTypeNameComplete = \"image\" AndAlso c.CharacterMaxLength = 0 Then Return \"varbinary(MAX)\"

Return c.DataTypeNameComplete

End Function
[/code]
jamieb
Lurker
 
Posts: 1
Joined: Fri Aug 24, 2007 7:21 am

Postby justin.greenwood on Sat Nov 03, 2007 11:10 pm

I am hitting mygen 1.3 hard, so I will look into adding this support.
User avatar
justin.greenwood
Site Admin
 
Posts: 441
Joined: Sat Apr 03, 2004 6:10 am
Location: Indianapolis, IN

Postby justin.greenwood on Sun Nov 04, 2007 6:00 am

fixed - this was a pain because varchar(max) seems to just be an alias for the datatype (text) you were seeing. Anway, I fugred out where to get it and I put it in there - I imagine some people would prefer the translated types.
User avatar
justin.greenwood
Site Admin
 
Posts: 441
Joined: Sat Apr 03, 2004 6:10 am
Location: Indianapolis, IN


Return to Defect Reporting (DON'T Post dOOdad bugs HERE)

Who is online

Users browsing this forum: No registered users and 0 guests