Question about Connection to SQL

R

ray

Dear all,
My application is using vb.net and crystal report. While the application
is running, it calls the crystal report. However, after the report is
closed, the connection to the SQL server is still there. It leads to the
problem that a new connection will be created and remained after calling a
new report. All the connections will only be closed after the application is
closed. Please help. How can I close the connection after previewing each
report?
Thanks a lot,
Ray
 
L

Larry Linson

you need to give more details

you shouldn't have to explicity close anything.. unless you're using a
global variable for example


in my opinion.. MS handicapped ADO.net by not allowing us to keep a
connection open in the first place.
MS wanted to help us out and close a connetion automagically for us

I call bullshit and it's one of the reasons I ****ing hate ADO.net
 
R

RobinS

Just FYI, be careful about listening to anything that LarryLinson guy says;
he's a known troll in these newsgroups.

Robin S.
 
R

RobinS

I don't use Crystal, but can you pass the connection in to the report, then
close it when it's done, or is all of it created by Crystal Reports?

Robin S.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top