Advertisement
Advertisement
| 08.21.2008 at 06:52AM PDT, ID: 23666691 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: |
static DB2Connection ConnectToAS400(string Database, string Userid, string Password)
{
return new DB2Connection("Database=DBMARCH69;User ID=jessie;Password=friendly" );
}
static void InsertRowToTable(string NWPATH, string NWDOCNAME, string DOCTYPE, string NWSIZE)
{
string AWDOBJI = " ";
string FMTCHECK = " ";
// use IBM.Data.DB2 reference to connect to the AS/400 (RX7 - development) and insert onto NWMASTER
DB2Connection DB2conn = ConnectToAS400(DataBase, Userid, Password); DB2conn.
DB2Command cmd = DB2conn.CreateCommand();
DB2conn.Open();
cmd.CommandText = "INSERT INTO MARCH69.NWMASTER VALUES ( @NWPATH, @NWDOCNAME, @AWDOBJI, @FMTCHECK, @DOCTYPE, @NWSIZE )";
cmd.CommandText = cmd.CommandText.Replace("@NWPATH", "'" + NWPATH + "'");
cmd.CommandText = cmd.CommandText.Replace("@NWDOCNAME", "'" + NWDOCNAME + "'");
cmd.CommandText = cmd.CommandText.Replace("@AWDOBJI", "'" + AWDOBJI + "'");
cmd.CommandText = cmd.CommandText.Replace("@FMTCHECK", "'" + FMTCHECK + "'");
cmd.CommandText = cmd.CommandText.Replace("@DOCTYPE", "'" + DOCTYPE + "'");
cmd.CommandText = cmd.CommandText.Replace("@NWSIZE", "'" + NWSIZE + "'");
cmd.ExecuteNonQuery();
DB2conn.Close();
}
|