string connString = "Database=dbName;userID=usrname;password=pass server=servername"; using (DB2Connection con = new DB2Connection(connString)) { DB2Command cmd = new DB2Command("SELECT * FROM TBL_USER", con); DataTable dTable = new DataTable(); DB2DataAdapter adapter = new DB2DataAdapter(cmd); adapter.SelectCommand = cmd; adapter.Fill(dTable); //Error is executed here. return dTable; }
DB2Command cmd = new DB2Command("SELECT * FROM dbo.TBL_USER", con);
dbo
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)