Hi All,
I want to connect netezza using c# need help I managed to write this but didn't worked
OleDbConnection con = new OleDbConnection("Provider=NZOLEDB;Password=password;User ID=x;Data Source=x;Initial Catalog=OCEAN_FX; Persist Security Info=True;Port=5480;Logging Level=0 or 1;Log Path=Path to log;Optimize for ASCII=True / False;"); OleDbCommand cmd = new OleDbCommand(); OleDbDataReader dreader ; cmd.Connection = con; cmd.CommandType = CommandType.Text; cmd.CommandText = "select ACTION from x "; con.Open(); con.Close(); dreader = cmd.ExecuteReader(); DataTable dt = new DataTable(); dt.Load(dreader); OleDbDataReader reader1 = cmd.ExecuteReader(); while (reader1.Read()) { string a; a = reader1["ACTION"].ToString(); MessageBox.Show(a); }
Sri.Tummala