Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text VS VarChar
Message
From
20/01/2008 11:22:51
 
 
To
20/01/2008 11:04:42
General information
Forum:
ASP.NET
Category:
Databases
Title:
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01283165
Message ID:
01283414
Views:
21
Well, using the VFP view designer has always been an excercise in masochism anyway <s> Fortunately, Rick Schummer's ViewEdit ( continuing good work done by Steve Sawyer ) and in the VFE ide Dan Goodwin's VFEGenview have made working with the remote views against SQL backends a delight.


>>I know this is .net but as an aside for people using vfp remote views it is worth noting that among the frailties of the VFP 9 view designer is a failure to see SQL varchar(max) fields as Memo and instead setting them by default to C(0). Attempting to save the view causes it to barf. You can view the code, change the dbsetprop type and all is well. Annoying nonetheless.
>
>Oh, that *does* suck. When did VFP9 come out? Was it prior to 2005? You'd think though, that they would have known about this new VARCHAR(MAX) that was going to go into SQL 2005 and would have made the view designer compatible. Unless it was well before that was even thought about to be put into SQL 2005.
>
>Oh well ... there *is* a workaround, so all is good. =0)
>
>~~Bonnie
>
>
>
>
>
>>
>>>Michel,
>>>
>>>If you migrated to SQL 2000, text was the only datatype that would make sense to use for a VFP memo field, because of it's almost unlimited size (well, right around 2GB).
>>>
>>>Now, with SQL 2005, there's a new version of varchar, specified as VARCHAR(MAX) and that's what you should be using now. I don't know why they came up with this MAX concept. It stores the same amount of data as the old text data type, but text is going to be removed in the future. Straight out of BOL:
>>>
>>>ntext, text, and image data types will be removed in a future version of Microsoft SQL Server. Avoid using these data types in new development work, and plan to modify applications that currently use them. Use nvarchar(max), varchar(max), and varbinary(max) instead.
>>>
>>>~~Bonnie
>>>
>>>
>>>>When I migrated two of my applications to SQL Server, a while ago, whatever was memo fields ended up to be within a Text type. However, a client of mine is wondering why we are not using VarChat for that? Anyone would like to comment on that?


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform