>>>>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.wwtYes, 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