Showing posts with label class. Show all posts
Showing posts with label class. Show all posts

Sunday, March 25, 2012

Connection pooling problem

Can anybody help me to solve this problem

I have a web application. In this app i have one class genral for database transections. I create new object of this class on every page in page load event & dispose it on UnLoad event. After sometime this app gives connection pooling exception.

Means connection are not closed, but i disposed the object like

tmpDatabase.Dispose()
tmpDatabase = Nothing

Plz can anybody tell me the mistake i m doing.

ThanxPersonally, I would contruct the object as late as possible (where needed) and destroy the object as soon as possible, and let connection pooling work as designed.

Perhaps there is som error condition that you are not handling, so that the dispose is sometimes not reached.|||I can see using Break point, it destroying the object. Means cursor reaching to the line where the object is destroyed.|||Please Help me

This is big problem for my application. I dont know what i doing wrong.|||"This is big problem for my application. I dont know what i doing wrong."

We do not either. In general, there is some reason why your connections are not being closed. Could be an error condition not properly handled, could be a design problem. Absent seeing much of the code, and absent you taking my advice to make the Open and Close very close to each other, leaving the connection open for as short a time as possible rather than creating one for a page load/unload cycle, I do not think anyone can help you.

Monday, March 19, 2012

Connection issue with Management Console

When i try to connect to Integration Services on a SQL 2005 Machine, it Gives me a Class not registeed.

But i can connect to SQL 2008 Integration Services without a issue.

I tried Restarting the 2008 machine and Also Reinstalling the SSIS Piece and also Reinstalled SQL 2008, but nothing seems to Help.

Could you provide more details? Do you have SQL 2005 and SQL 2008 installed on the same machine?

Thanks,

Bob

|||

No, I dont

I Just Have SQL 2008 July CTP installed on a Windows Xp SP2 MAchine and I try to connect to another SQL Server 2005 Server (Integration Services)

I am Even Having Trouble opening the Maintenance Plan in SQL 2008.

|||

Hi there,

In the July CTP you can not connect to a 2005 SSIS service through 2008 Management Studio. To manage a 2005 SSIS service, you'll need to use the 2005 version of SSMS.

We're currently investigating ways to resolve this issue, but it's unclear whether we'll be able to solve this for the 2008 release.

~Matt

Tuesday, February 14, 2012

Connecting to SQLServer

I apologize if this is in the wrong place, I don't know where this
question would be appropriate.
We are doing a class project with ASP .Net and SQL Server. For this
exercise, we had to create tables and then connect to the tables from
a web form.
I have Visual Studio 2005, SQL Server Management Studio (Express) and
SQLServer Express. I can use Server Management studio and run SQL
against my database.
When I try to connect to the database from Visual Studio's Connection
Explorer, I get a long delay and then an error message pops us saying:
"An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the
fact that under the default settings SQL Server does not allow remote
connections.(Provider: Named Pipes Provider, error: 40 - Could not
open a connection to SQL Server)"
Is there something I need to configure or can anyone give me some
advice on what I need to do to connect?
Thanks
MikeFirst off, make sure that SQL Server is started. I don't remember if
SQL Express has SQL Server Configuration Manager, but you can check this
out in the Services applet of the control panel. That'd be my first
guess.
MikeB wrote:
> I apologize if this is in the wrong place, I don't know where this
> question would be appropriate.
> We are doing a class project with ASP .Net and SQL Server. For this
> exercise, we had to create tables and then connect to the tables from
> a web form.
> I have Visual Studio 2005, SQL Server Management Studio (Express) and
> SQLServer Express. I can use Server Management studio and run SQL
> against my database.
> When I try to connect to the database from Visual Studio's Connection
> Explorer, I get a long delay and then an error message pops us saying:
> "An error has occurred while establishing a connection to the server.
> When connecting to SQL Server 2005, this failure may be caused by the
> fact that under the default settings SQL Server does not allow remote
> connections.(Provider: Named Pipes Provider, error: 40 - Could not
> open a connection to SQL Server)"
> Is there something I need to configure or can anyone give me some
> advice on what I need to do to connect?
> Thanks
> Mike
>|||SQL Server Express does have Server Configuration Manager. It shows
the SQL Server (SQLEXPRESS) as running and SQL Server Browser as
stopped. As I said in my post, I can't seem to find a way to start the
SQL Server Browser, all the buttons are greyed out when I look at the
properties.
On Feb 27, 7:23 am, David Markle <new...@.markleconsulting.c0m> wrote:
> First off, make sure that SQL Server is started. I don't remember if
> SQL Express has SQL Server Configuration Manager, but you can check this
> out in the Services applet of the control panel. That'd be my first
> guess.
>
> MikeB wrote:
>
>
>
>
>
>
> - Show quoted text -|||I think you are correct that SQL Server is not started. If I open a
command prompt window and type
osql -L
I get a long pause and then the response
TRISTAN/SQLEXPRESS
Tristan is my computer name
When I type
CQLCMD -L
I get a long pause and then a blank list.
I really don't know what I should do to start SQL Server. Can you give
me a clue?
Thanks
On Feb 27, 7:23 am, David Markle <new...@.markleconsulting.c0m> wrote:
> First off, make sure that SQL Server is started. I don't remember if
> SQL Express has SQL Server Configuration Manager, but you can check this
> out in the Services applet of the control panel. That'd be my first
> guess.
>
> MikeB wrote:
>
>
>
>
>
>
> - Show quoted text -|||I'm so relieved, I got this fixed. It was the Server Browser that
wasn't started. I found this post that helped me locate the problem:
http://blogs.msdn.com/sqlexpress/ar.../23/192044.aspx
Just posting it here in case someone else come searching for the
answer...
On Feb 26, 4:39 pm, "MikeB" <MPBr...@.gmail.com> wrote:
> I apologize if this is in the wrong place, I don't know where this
> question would be appropriate.
> We are doing a class project with ASP .Net and SQL Server. For this
> exercise, we had to create tables and then connect to the tables from
> a web form.
> I have Visual Studio 2005, SQL Server Management Studio (Express) and
> SQLServer Express. I can use Server Management studio and run SQL
> against my database.
> When I try to connect to the database from Visual Studio's Connection
> Explorer, I get a long delay and then an error message pops us saying:
> "An error has occurred while establishing a connection to the server.
> When connecting to SQL Server 2005, this failure may be caused by the
> fact that under the default settings SQL Server does not allow remote
> connections.(Provider: Named Pipes Provider, error: 40 - Could not
> open a connection to SQL Server)"
> Is there something I need to configure or can anyone give me some
> advice on what I need to do to connect?
> Thanks
> Mike

Connecting to SQLServer

I apologize if this is in the wrong place, I don't know where this
question would be appropriate.
We are doing a class project with ASP .Net and SQL Server. For this
exercise, we had to create tables and then connect to the tables from
a web form.
I have Visual Studio 2005, SQL Server Management Studio (Express) and
SQLServer Express. I can use Server Management studio and run SQL
against my database.
When I try to connect to the database from Visual Studio's Connection
Explorer, I get a long delay and then an error message pops us saying:
"An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the
fact that under the default settings SQL Server does not allow remote
connections.(Provider: Named Pipes Provider, error: 40 - Could not
open a connection to SQL Server)"
Is there something I need to configure or can anyone give me some
advice on what I need to do to connect?
Thanks
Mike
I'm so relieved, I got this fixed. It was the Server Browser that
wasn't started. I found this post that helped me locate the problem:
http://blogs.msdn.com/sqlexpress/archive/2004/07/23/192044.aspx
Just posting it here in case someone else come searching for the
answer...
On Feb 26, 4:39 pm, "MikeB" <MPBr...@.gmail.com> wrote:
> I apologize if this is in the wrong place, I don't know where this
> question would be appropriate.
> We are doing a class project with ASP .Net and SQL Server. For this
> exercise, we had to create tables and then connect to the tables from
> a web form.
> I have Visual Studio 2005, SQL Server Management Studio (Express) and
> SQLServer Express. I can use Server Management studio and run SQL
> against my database.
> When I try to connect to the database from Visual Studio's Connection
> Explorer, I get a long delay and then an error message pops us saying:
> "An error has occurred while establishing a connection to the server.
> When connecting to SQL Server 2005, this failure may be caused by the
> fact that under the default settings SQL Server does not allow remote
> connections.(Provider: Named Pipes Provider, error: 40 - Could not
> open a connection to SQL Server)"
> Is there something I need to configure or can anyone give me some
> advice on what I need to do to connect?
> Thanks
> Mike

Connecting to SQLServer

I apologize if this is in the wrong place, I don't know where this
question would be appropriate.
We are doing a class project with ASP .Net and SQL Server. For this
exercise, we had to create tables and then connect to the tables from
a web form.
I have Visual Studio 2005, SQL Server Management Studio (Express) and
SQLServer Express. I can use Server Management studio and run SQL
against my database.
When I try to connect to the database from Visual Studio's Connection
Explorer, I get a long delay and then an error message pops us saying:
"An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the
fact that under the default settings SQL Server does not allow remote
connections.(Provider: Named Pipes Provider, error: 40 - Could not
open a connection to SQL Server)"
Is there something I need to configure or can anyone give me some
advice on what I need to do to connect?
Thanks
MikeFirst off, make sure that SQL Server is started. I don't remember if
SQL Express has SQL Server Configuration Manager, but you can check this
out in the Services applet of the control panel. That'd be my first
guess.
MikeB wrote:
> I apologize if this is in the wrong place, I don't know where this
> question would be appropriate.
> We are doing a class project with ASP .Net and SQL Server. For this
> exercise, we had to create tables and then connect to the tables from
> a web form.
> I have Visual Studio 2005, SQL Server Management Studio (Express) and
> SQLServer Express. I can use Server Management studio and run SQL
> against my database.
> When I try to connect to the database from Visual Studio's Connection
> Explorer, I get a long delay and then an error message pops us saying:
> "An error has occurred while establishing a connection to the server.
> When connecting to SQL Server 2005, this failure may be caused by the
> fact that under the default settings SQL Server does not allow remote
> connections.(Provider: Named Pipes Provider, error: 40 - Could not
> open a connection to SQL Server)"
> Is there something I need to configure or can anyone give me some
> advice on what I need to do to connect?
> Thanks
> Mike
>|||SQL Server Express does have Server Configuration Manager. It shows
the SQL Server (SQLEXPRESS) as running and SQL Server Browser as
stopped. As I said in my post, I can't seem to find a way to start the
SQL Server Browser, all the buttons are greyed out when I look at the
properties.
On Feb 27, 7:23 am, David Markle <new...@.markleconsulting.c0m> wrote:
> First off, make sure that SQL Server is started. I don't remember if
> SQL Express has SQL Server Configuration Manager, but you can check this
> out in the Services applet of the control panel. That'd be my first
> guess.
>
> MikeB wrote:
> > I apologize if this is in the wrong place, I don't know where this
> > question would be appropriate.
> > We are doing a class project with ASP .Net and SQL Server. For this
> > exercise, we had to create tables and then connect to the tables from
> > a web form.
> > I have Visual Studio 2005, SQL Server Management Studio (Express) and
> > SQLServer Express. I can use Server Management studio and run SQL
> > against my database.
> > When I try to connect to the database from Visual Studio's Connection
> > Explorer, I get a long delay and then an error message pops us saying:
> > "An error has occurred while establishing a connection to the server.
> > When connecting to SQL Server 2005, this failure may be caused by the
> > fact that under the default settings SQL Server does not allow remote
> > connections.(Provider: Named Pipes Provider, error: 40 - Could not
> > open a connection to SQL Server)"
> > Is there something I need to configure or can anyone give me some
> > advice on what I need to do to connect?
> > Thanks
> > Mike- Hide quoted text -
> - Show quoted text -|||I think you are correct that SQL Server is not started. If I open a
command prompt window and type
osql -L
I get a long pause and then the response
TRISTAN/SQLEXPRESS
Tristan is my computer name
When I type
CQLCMD -L
I get a long pause and then a blank list.
I really don't know what I should do to start SQL Server. Can you give
me a clue?
Thanks
On Feb 27, 7:23 am, David Markle <new...@.markleconsulting.c0m> wrote:
> First off, make sure that SQL Server is started. I don't remember if
> SQL Express has SQL Server Configuration Manager, but you can check this
> out in the Services applet of the control panel. That'd be my first
> guess.
>
> MikeB wrote:
> > I apologize if this is in the wrong place, I don't know where this
> > question would be appropriate.
> > We are doing a class project with ASP .Net and SQL Server. For this
> > exercise, we had to create tables and then connect to the tables from
> > a web form.
> > I have Visual Studio 2005, SQL Server Management Studio (Express) and
> > SQLServer Express. I can use Server Management studio and run SQL
> > against my database.
> > When I try to connect to the database from Visual Studio's Connection
> > Explorer, I get a long delay and then an error message pops us saying:
> > "An error has occurred while establishing a connection to the server.
> > When connecting to SQL Server 2005, this failure may be caused by the
> > fact that under the default settings SQL Server does not allow remote
> > connections.(Provider: Named Pipes Provider, error: 40 - Could not
> > open a connection to SQL Server)"
> > Is there something I need to configure or can anyone give me some
> > advice on what I need to do to connect?
> > Thanks
> > Mike- Hide quoted text -
> - Show quoted text -|||I'm so relieved, I got this fixed. It was the Server Browser that
wasn't started. I found this post that helped me locate the problem:
http://blogs.msdn.com/sqlexpress/archive/2004/07/23/192044.aspx
Just posting it here in case someone else come searching for the
answer...
On Feb 26, 4:39 pm, "MikeB" <MPBr...@.gmail.com> wrote:
> I apologize if this is in the wrong place, I don't know where this
> question would be appropriate.
> We are doing a class project with ASP .Net and SQL Server. For this
> exercise, we had to create tables and then connect to the tables from
> a web form.
> I have Visual Studio 2005, SQL Server Management Studio (Express) and
> SQLServer Express. I can use Server Management studio and run SQL
> against my database.
> When I try to connect to the database from Visual Studio's Connection
> Explorer, I get a long delay and then an error message pops us saying:
> "An error has occurred while establishing a connection to the server.
> When connecting to SQL Server 2005, this failure may be caused by the
> fact that under the default settings SQL Server does not allow remote
> connections.(Provider: Named Pipes Provider, error: 40 - Could not
> open a connection to SQL Server)"
> Is there something I need to configure or can anyone give me some
> advice on what I need to do to connect?
> Thanks
> Mike