Click here to Skip to main content
15,914,221 members
Home / Discussions / C#
   

C#

 
QuestionHow can i set/get metadata information of file using C# Pin
Adiphe17-Oct-06 22:56
Adiphe17-Oct-06 22:56 
AnswerRe: How can i set/get metadata information of file using C# Pin
Christian Graus17-Oct-06 23:00
protectorChristian Graus17-Oct-06 23:00 
GeneralRe: How can i set/get metadata information of file using C# Pin
Adiphe17-Oct-06 23:11
Adiphe17-Oct-06 23:11 
GeneralRe: How can i set/get metadata information of file using C# Pin
Michael P Butler17-Oct-06 23:19
Michael P Butler17-Oct-06 23:19 
QuestionObject as database Pin
nemopeti17-Oct-06 22:56
nemopeti17-Oct-06 22:56 
AnswerRe: Object as database Pin
Christian Graus17-Oct-06 23:02
protectorChristian Graus17-Oct-06 23:02 
GeneralRe: Object as database Pin
nemopeti17-Oct-06 23:17
nemopeti17-Oct-06 23:17 
Question2 Sql Server Process ID created for 1 query. Pin
coby cai17-Oct-06 22:56
professionalcoby cai17-Oct-06 22:56 
Dear all,

I used below lines to achieve some results from the Sql Server 2000 database.

My question is why there are always 2 Process ID created for one "adapter.Fill()" method even the connection is disposed.

The Process ID created will disappear after the application exits.

Thanks for your attension.

System.Data.DataTable tb = new System.Data.DataTable();

SqlDataAdapter adapter = new SqlDataAdapter();

SqlConnection conn = new SqlConnection(connectionstring);

adapter.SelectCommand = new SqlCommand( "brm_sel_rackstatus", conn);

adapter.SelectCommand.CommandType = CommandType.StoredProcedure;
adapter.SelectCommand.Parameters.Add("@rack",SqlDbType.Int,32);
adapter.SelectCommand.Parameters.Add("@startcol",SqlDbType.Int,32);
adapter.SelectCommand.Parameters.Add("@endcol",SqlDbType.Int,32);

adapter.SelectCommand.Parameters[0].Value = this.rack;
adapter.SelectCommand.Parameters[1].Value = this.startcol;
adapter.SelectCommand.Parameters[2].Value = this.endcol;

adapter.Fill(tb);

adapter.Dispose();

conn.Dispose();


coby
AnswerRe: 2 Sql Server Process ID created for 1 query. Pin
Mike Dimmick18-Oct-06 1:14
Mike Dimmick18-Oct-06 1:14 
GeneralRe: 2 Sql Server Process ID created for 1 query. Pin
coby cai18-Oct-06 17:11
professionalcoby cai18-Oct-06 17:11 
QuestionCompare dates Pin
Mamphekgo17-Oct-06 22:45
Mamphekgo17-Oct-06 22:45 
AnswerRe: Compare dates Pin
Christian Graus17-Oct-06 22:48
protectorChristian Graus17-Oct-06 22:48 
Questionhow can i select text from .chm file through C# Pin
sikandarhayat17-Oct-06 22:28
sikandarhayat17-Oct-06 22:28 
Questionsending file over MSMQ in C#.net Pin
nmandaliya17-Oct-06 21:59
nmandaliya17-Oct-06 21:59 
Questionformating (erease) USB Stick Pin
Martin#17-Oct-06 21:47
Martin#17-Oct-06 21:47 
QuestionProblem abt threading!! Pin
samtam17-Oct-06 21:31
samtam17-Oct-06 21:31 
AnswerRe: Problem abt threading!! Pin
Guffa17-Oct-06 21:47
Guffa17-Oct-06 21:47 
GeneralRe: Problem abt threading!! Pin
samtam17-Oct-06 22:04
samtam17-Oct-06 22:04 
AnswerRe: Problem abt threading!! Pin
Guffa17-Oct-06 22:11
Guffa17-Oct-06 22:11 
GeneralRe: Problem abt threading!! Pin
samtam17-Oct-06 22:16
samtam17-Oct-06 22:16 
AnswerRe: Problem abt threading!! Pin
Guffa17-Oct-06 22:25
Guffa17-Oct-06 22:25 
GeneralRe: Problem abt threading!! Pin
samtam17-Oct-06 23:24
samtam17-Oct-06 23:24 
AnswerRe: Problem abt threading!! Pin
Guffa18-Oct-06 1:57
Guffa18-Oct-06 1:57 
Questionuninstalling windows services Pin
DownBySpj17-Oct-06 21:17
DownBySpj17-Oct-06 21:17 
AnswerRe: uninstalling windows services Pin
sundar15618-Oct-06 8:15
sundar15618-Oct-06 8:15 

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.