Home Forums Programming SMO/RMO/DMO Running .sql file using C# .Net - Accents Problem RE: Running .sql file using C# .Net - Accents Problem
DiegoPeña
Right there with Babe
Points: 749
More actions
October 28, 2010 at 11:07 am
#1243723
Its working now!! 😀
string script = File.ReadAllText(sqlCommandFilePath, System.Text.Encoding.GetEncoding(1252));
1252 is the codepage for my country.
I couldn't have put this together without your help dmbaker. Thank you.