Hello All,

I use to script my DB objects the OLE Methods through T-SQL.

The default format of scripting a Table is:
SET @q = 'Databases("' + @database_name + '").Tables("' + @table_name + '").Script(' + cast(@script_id as varchar(10)) + ', ' + @path_name + ')'

What I tried to add to the end of this is: @path_name + ', ' + ', 4' + ')'
so it would be:
SET @q = 'Databases("' + @database_name + '").Tables("' + @table_name + '").Script(' + cast(@script_id as varchar(10)) + ', ' + @path_name + ', ' + ', 4' + ')'

Which is logical this run, number 4 is equal to constant SQLDMOScript2_UnicodeFile, but it doesn't.
I want that because greek chars appears like "chinese"

Can you please tell me why?