Click here to Skip to main content
16,009,391 members
Home / Discussions / Database
   

Database

 
GeneralRe: Have problem with displaying columns as rows Pin
Krish - KP10-Jul-07 17:33
Krish - KP10-Jul-07 17:33 
GeneralRe: Have problem with displaying columns as rows Pin
masyarial14-Jul-07 1:15
masyarial14-Jul-07 1:15 
Questionhow to join two tables [modified] Pin
harithadotnet4-Jul-07 19:18
harithadotnet4-Jul-07 19:18 
AnswerRe: how to join two tables Pin
Krish - KP4-Jul-07 21:31
Krish - KP4-Jul-07 21:31 
Questionhow to join two tables Pin
harithadotnet4-Jul-07 18:29
harithadotnet4-Jul-07 18:29 
AnswerRe: how to join two tables [modified] Pin
Krish - KP4-Jul-07 18:49
Krish - KP4-Jul-07 18:49 
AnswerRe: how to join two tables Pin
Michael Sync4-Jul-07 18:49
Michael Sync4-Jul-07 18:49 
QuestionHow can I call a DB2 system procedure GET_DBSIZE_INFO by .net? Pin
Jameson_cn4-Jul-07 17:54
Jameson_cn4-Jul-07 17:54 
When I call the DB2 procedure GET_DBSIZE_INFO by the code following, the application always catch error as : ERROR [55032] [IBM] SQL1224N, and then the db2 server automated shutdown.
string connstr = String.Format("DATABASE ={0};UID=db2admin;PWD=db2admin", DBName.Trim());
DB2Connection conn = new DB2Connection(connstr);
DB2Parameter[] paras = new DB2Parameter[]{new DB2Parameter("@SNAPSHOTTIMESTAMP",DB2Type.Date),
                                          new DB2Parameter("@DATABASESIZE",DB2Type.BigInt),
                                          new DB2Parameter("@DATABASECAPACITY",DB2Type.BigInt)

             };
             paras[0].Value = DBNull.Value;
             paras[1].Value = DBNull.Value;
             paras[2].Value = DBNull.Value;

             paras[0].Direction = ParameterDirection.Output;
             paras[1].Direction = ParameterDirection.Output;
             paras[2].Direction = ParameterDirection.Output;

             conn.Open();
             DB2Command com = new DB2Command("GET_DBSIZE_INFO", conn);
             com.CommandType = CommandType.StoredProcedure;
             com.Parameters.AddRange(paras);// = paras;
             com.ExecuteNonQuery();
             DBSizeInfo sizeinf = new DBSizeInfo();
             sizeinf.Size = (int)paras[1].Value;
             sizeinf.Capacity = (int)paras[2].Value;
             conn.Close();


Nothing is impossible

Questionproblem with GetChanges [modified] Pin
goldoche4-Jul-07 9:14
goldoche4-Jul-07 9:14 
AnswerRe: problem with GetChanges Pin
goldoche4-Jul-07 10:38
goldoche4-Jul-07 10:38 
QuestionUsing a DataSet to insert data in a table througth a sproc Pin
Le centriste4-Jul-07 4:35
Le centriste4-Jul-07 4:35 
AnswerRe: Using a DataSet to insert data in a table througth a sproc Pin
goldoche4-Jul-07 9:46
goldoche4-Jul-07 9:46 
QuestionSQL query... need help Pin
Diana18114-Jul-07 4:02
Diana18114-Jul-07 4:02 
AnswerRe: SQL query... need help Pin
andyharman4-Jul-07 9:00
professionalandyharman4-Jul-07 9:00 
GeneralRe: SQL query... need help Pin
Diana18114-Jul-07 17:28
Diana18114-Jul-07 17:28 
GeneralRe: SQL query... need help Pin
Pete O'Hanlon4-Jul-07 22:29
mvePete O'Hanlon4-Jul-07 22:29 
AnswerRe: SQL query... need help Pin
andyharman4-Jul-07 22:46
professionalandyharman4-Jul-07 22:46 
GeneralRe: SQL query... need help Pin
Diana18116-Jul-07 0:39
Diana18116-Jul-07 0:39 
GeneralFunny with SELECT ... INTO Pin
Brady Kelly3-Jul-07 23:58
Brady Kelly3-Jul-07 23:58 
GeneralRe: Funny with SELECT ... INTO Pin
andyharman4-Jul-07 1:22
professionalandyharman4-Jul-07 1:22 
GeneralRe: Funny with SELECT ... INTO Pin
Mike Dimmick4-Jul-07 3:31
Mike Dimmick4-Jul-07 3:31 
QuestionRunning a SQL Script file using C# Pin
wasife3-Jul-07 19:25
wasife3-Jul-07 19:25 
AnswerRe: Running a SQL Script file using C# Pin
Colin Angus Mackay3-Jul-07 22:44
Colin Angus Mackay3-Jul-07 22:44 
GeneralRe: Running a SQL Script file using C# Pin
N a v a n e e t h4-Jul-07 3:33
N a v a n e e t h4-Jul-07 3:33 
GeneralRe: Running a SQL Script file using C# Pin
Colin Angus Mackay4-Jul-07 7:00
Colin Angus Mackay4-Jul-07 7:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.