Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Nvarchar is incompatible with image - error in SQL serve
Message
 
 
To
19/09/2008 09:47:38
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01348891
Message ID:
01348952
Views:
17
Hi Cetin,

I think I encountered similar problem trying to retrieve nulls. Are both image fields nullable in both tables?

>Hi Martina,
>Thanks for replying.
>I know that works but my concern is to prevent listing of fieldnames and explicit casting.
>Cetin
>
>>Hi Cetin,
>>
>>Try this:
>>
insert into dbA..tableA select CAST(CAST(nvarchar_field AS varchar) as image) from dbB..tableA
>>
>>MartinaJ
>>
>>
>>>The error occurs with code like:
>>>
>>>
insert into dbA..tableA select * from dbB..tableA
>>>
>>>The structures are same and one of the fields is an image field (photo). It happens when photo has null (I understand that then it uses the default datatype varchar). Is there a solution to this other than listing all of the fields and casting?
>>>
>>>Note that this is an SQL server question, I posted on VFP forum thinking it has a wider audience.
>>>TIA
>>>
>>>Cetin
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform