Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change col type from VFP 9
Message
 
 
To
03/09/2020 13:23:31
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01675976
Message ID:
01675980
Views:
54
>>>>Hi,
>>>>
>>>>I need to change a column type of a table (in SQL Server) from Text to Varchar(MAX).
>>>>
>>>>How can I do it in code in VFP 9?
>>>>
>>>>TIA
>>>
>>>You should probably avoid using varchar(MAX) in SQL because regular VFP cannot read that type through ODBC.
>>
>>All my VFP 9 apps using this field (VARCHAR(MAX)) and have no problem using it via ODBC.
>
>Ok, my mistake. Then you must be using the 'SQL Server' driver and not any of the others.
>
>See http://support.west-wind.com/Thread5S30FNXWI.wwt

Yes, I am using 'SQL Server' driver. Not a problem. I am finding that the type Text does not work well. I still have it in some tables. So, I want to create a VFP code to replace. Otherwise, I have to do it manually.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform