473,396 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Question about Connection to SQL

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
Apr 20 '07 #1
3 1108
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 fucking hate ADO.net


On Apr 20, 4:14 am, "ray" <some...@microsoft.comwrote:
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

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

Robin S.
---------------------------
"ray" <so*****@microsoft.comwrote in message
news:Ox**************@TK2MSFTNGP02.phx.gbl...
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

Apr 20 '07 #3
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.
-----------------------------------
"ray" <so*****@microsoft.comwrote in message
news:Ox**************@TK2MSFTNGP02.phx.gbl...
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

Apr 20 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Philip Meyer | last post by:
1) setting image as Background with alignment in center not working..help Explanation : i need to set a image as background and also it should be dispalyed in the center.i am using apache fop...
11
by: Mark Yudkin | last post by:
The documentation is unclear (at least to me) on the permissibility of accessing DB2 (8.1.5) concurrently on and from Windows 2000 / XP / 2003, with separate transactions scope, from separate...
1
by: Mike | last post by:
Hi We are new to the world of ASP Development and I have a simple question - we are starting a test development in ASP 2.0 Beta and we are building an application using a Direct Connection to...
7
by: News | last post by:
Hello, I have to build a program with the future in mind and I need a bit of guidance from a guru or two. My program will start as a multi-user Windows Application built with VB.Net and using an...
20
by: chris.schwalm | last post by:
This is part II of this <a...
8
by: Ben R. | last post by:
Hi all, This is a multipart question. I’ve got an asp.net site that contains an access database. Previously, I would debug by making changes and uploading to my host. Now, I’d like to be...
2
by: R.A.M. | last post by:
Hello, I have started larning C# and I have a question concerning "using (...)" keyword. For example: using (SqlConnection connection = new SqlConnection(ConnectionString)) {...
4
by: Engineerik | last post by:
I am trying to create a socket server which will listen for connections from multiple clients and call subroutines in a Fortran DLL and pass the results back to the client. The asynchronous socket...
20
by: fniles | last post by:
I am using VS2003 and connecting to MS Access database. When using a connection pooling (every time I open the OLEDBCONNECTION I use the exact matching connection string), 1. how can I know how...
4
by: kessa | last post by:
Hi Guys, I've recently had a problem with my site displaying a "system resources exceeded" error message ... and whilst searching this site for a solution (which I think I've now found) I came...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.