G
Guest
Hello, I am hoping this is a simple question....
If I am processing a file and re-using the same connection object be
creating new Command objectes for each of the records on the file, do I need
to run the command.Dispose() method when I am done with each command? My
memory usage continues to grow and grow and I am trying to figure out why it
continues to grow and grow until it finally fails with an out of memory
condition.
Can I reuse the same command object for inserting multiple records into the
database - If I can, maybe this would help with my memory problem.
Thanks in advance for your assistance!!!
If I am processing a file and re-using the same connection object be
creating new Command objectes for each of the records on the file, do I need
to run the command.Dispose() method when I am done with each command? My
memory usage continues to grow and grow and I am trying to figure out why it
continues to grow and grow until it finally fails with an out of memory
condition.
Can I reuse the same command object for inserting multiple records into the
database - If I can, maybe this would help with my memory problem.
Thanks in advance for your assistance!!!