Hi everybody,

I changed a char type field to nchar in Sql Server and I guess I have to use SqlExecDirectW instead of SqlExecDirect in order to save national characters. But SqlExecDirectW function generates following error

[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '?'.

This sql string works with SqlExecDirect without a problem.

I'm using VB6.
Are there anybody who have used SqlExecDirectW before?