A
Alhambra Eidos Kiquenet
Hi misters,
I have embedded file that contains SQL. I read the file and execute SQL, but
in my SQL SERVER it appears stranges characters:
wrong: Nueva Aplicaci?n
ok: Nueva Aplicación
In my Sql file, all caracters is ok, but when execute sql, in SQL Server is
wrongs
Any suggestions ?? Thanks in advance.
' Gets the current assembly.
Dim Asm As [Assembly] = [Assembly].GetExecutingAssembly()
' Resources are named using a fully qualified name.
Dim strm As Stream = Asm.GetManifestResourceStream( _
Asm.GetName().Name & "." & Name)
' Reads the contents of the embedded file.
Dim reader As StreamReader = New StreamReader(strm)
Dim sql As String = reader.ReadToEnd()
'MsgBox(Asm.GetName().Name & "." & Name & " Total: " & sql.Length)
Return sql
I have embedded file that contains SQL. I read the file and execute SQL, but
in my SQL SERVER it appears stranges characters:
wrong: Nueva Aplicaci?n
ok: Nueva Aplicación
In my Sql file, all caracters is ok, but when execute sql, in SQL Server is
wrongs
Any suggestions ?? Thanks in advance.
' Gets the current assembly.
Dim Asm As [Assembly] = [Assembly].GetExecutingAssembly()
' Resources are named using a fully qualified name.
Dim strm As Stream = Asm.GetManifestResourceStream( _
Asm.GetName().Name & "." & Name)
' Reads the contents of the embedded file.
Dim reader As StreamReader = New StreamReader(strm)
Dim sql As String = reader.ReadToEnd()
'MsgBox(Asm.GetName().Name & "." & Name & " Total: " & sql.Length)
Return sql