Showing posts with label connections. Show all posts
Showing posts with label connections. Show all posts

Wednesday, March 28, 2012

no external connections are permitted while trying to connect to SQL server

ok so this is my code:

private void iDListBox_SelectedIndexChanged(object sender, EventArgs e)

{

string connectionString = GetConnectionString();

using (SqlConnection connection = new SqlConnection(connectionString))

{

SqlCommand cmd = new SqlCommand("SELECT * FROM Table1 WHERE Naam=@.Naam", connection);

cmd.Parameters.AddWithValue("@.Naam", iDListBox.SelectedValue);

connection.Open();

SqlDataReader reader = cmd.ExecuteReader();

if (reader.Read())

{

naamTextBox.Text = reader.GetString(1);

}

reader.Dispose();

connection.Dispose();

}

}

static private string GetConnectionString()

{

return "Data Source=(local);Initial Catalog=AdventureWorks;"

+ "Integrated Security=SSPI;";

}

but when I change the selected index of the listbox, then this error comes up:

System.Data.SqlClient.SqlException was unhandled
Message="An error occured while setting up a connection with the server. At making a connection with SQL server 2005, this jamming is possibly caused by the fact that at the standardinstitutions of SQL server no external connections have been permitted (provider: Provider of named pipes, error: 40 - no connection with SQL could open server)"

If the error sounds a bit weird, sry I tried to translate as most of my errors come in my language

someone knows what the problem is and a solution to it?

(btw sry if this is in the wrong part of the sql forum, but there are so much parts, I didn't know which to choose lol Stick out tongue)

thx in advance

Please see http://blogs.msdn.com/sql_protocols/archive/2007/03/31/named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server.aspx to see if any of the suggestions solves your case.

Jimmy

Friday, March 23, 2012

No connection limitation with SQL Express 2005?

MSDE had the limitation of 25 concurrent connections.
It seems that SQL Express 2005 doesn't have this limitation. Is that
correct? Does Express support as many connections as the "full" SQL 2005
server?"the friendly display name"
<thefriendlydisplayname@.discussions.microsoft.com> wrote in message
news:A0E3673D-E984-4EFA-82C2-1A51E6D38945@.microsoft.com...
> MSDE had the limitation of 25 concurrent connections.
No it didn't. It had a query governor which throttled performance after 5
concurrent workloads.

> It seems that SQL Express 2005 doesn't have this limitation. Is that
> correct?
Yes.

>Does Express support as many connections as the "full" SQL 2005
> server?
Yes. Althought SQL Server Express Edition is limited to 1GB of RAM and 1CPU
which will impose some limit on the number of users it can serve.
David|||Hi
And to add, there are no SQL Server limits, but if you run on Windows 2000
Pro or Windows XP, the OS has a limit of number of incoming network
connection it accepts, and that is 10.
On Server editions of the OS's, there are no limits.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"David Browne" <davidbaxterbrowne no potted meat@.hotmail.com> wrote in
message news:uxhcKhs5FHA.1864@.TK2MSFTNGP12.phx.gbl...
> "the friendly display name"
> <thefriendlydisplayname@.discussions.microsoft.com> wrote in message
> news:A0E3673D-E984-4EFA-82C2-1A51E6D38945@.microsoft.com...
> No it didn't. It had a query governor which throttled performance after 5
> concurrent workloads.
>
> Yes.
>
> Yes. Althought SQL Server Express Edition is limited to 1GB of RAM and
> 1CPU which will impose some limit on the number of users it can serve.
> David
>|||> And to add, there are no SQL Server limits, but if you run on Windows 2000
> Pro or Windows XP, the OS has a limit of number of incoming network
> connection it accepts, and that is 10.
IIRC, that is Redirector connections, not socket connections. Has anyone
tried more then 10 sql connections on XP?
William Stacey [MVP]sql

No connection limitation with SQL Express 2005?

MSDE had the limitation of 25 concurrent connections.
It seems that SQL Express 2005 doesn't have this limitation. Is that
correct? Does Express support as many connections as the "full" SQL 2005
server?"the friendly display name"
<thefriendlydisplayname@.discussions.microsoft.com> wrote in message
news:A0E3673D-E984-4EFA-82C2-1A51E6D38945@.microsoft.com...
> MSDE had the limitation of 25 concurrent connections.
No it didn't. It had a query governor which throttled performance after 5
concurrent workloads.
> It seems that SQL Express 2005 doesn't have this limitation. Is that
> correct?
Yes.
>Does Express support as many connections as the "full" SQL 2005
> server?
Yes. Althought SQL Server Express Edition is limited to 1GB of RAM and 1CPU
which will impose some limit on the number of users it can serve.
David|||Hi
And to add, there are no SQL Server limits, but if you run on Windows 2000
Pro or Windows XP, the OS has a limit of number of incoming network
connection it accepts, and that is 10.
On Server editions of the OS's, there are no limits.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"David Browne" <davidbaxterbrowne no potted meat@.hotmail.com> wrote in
message news:uxhcKhs5FHA.1864@.TK2MSFTNGP12.phx.gbl...
> "the friendly display name"
> <thefriendlydisplayname@.discussions.microsoft.com> wrote in message
> news:A0E3673D-E984-4EFA-82C2-1A51E6D38945@.microsoft.com...
>> MSDE had the limitation of 25 concurrent connections.
> No it didn't. It had a query governor which throttled performance after 5
> concurrent workloads.
>> It seems that SQL Express 2005 doesn't have this limitation. Is that
>> correct?
> Yes.
>>Does Express support as many connections as the "full" SQL 2005
>> server?
> Yes. Althought SQL Server Express Edition is limited to 1GB of RAM and
> 1CPU which will impose some limit on the number of users it can serve.
> David
>|||> And to add, there are no SQL Server limits, but if you run on Windows 2000
> Pro or Windows XP, the OS has a limit of number of incoming network
> connection it accepts, and that is 10.
IIRC, that is Redirector connections, not socket connections. Has anyone
tried more then 10 sql connections on XP?
--
William Stacey [MVP]

No connection limitation with SQL Express 2005?

MSDE had the limitation of 25 concurrent connections.
It seems that SQL Express 2005 doesn't have this limitation. Is that
correct? Does Express support as many connections as the "full" SQL 2005
server?
"the friendly display name"
<thefriendlydisplayname@.discussions.microsoft.com> wrote in message
news:A0E3673D-E984-4EFA-82C2-1A51E6D38945@.microsoft.com...
> MSDE had the limitation of 25 concurrent connections.
No it didn't. It had a query governor which throttled performance after 5
concurrent workloads.

> It seems that SQL Express 2005 doesn't have this limitation. Is that
> correct?
Yes.

>Does Express support as many connections as the "full" SQL 2005
> server?
Yes. Althought SQL Server Express Edition is limited to 1GB of RAM and 1CPU
which will impose some limit on the number of users it can serve.
David
|||Hi
And to add, there are no SQL Server limits, but if you run on Windows 2000
Pro or Windows XP, the OS has a limit of number of incoming network
connection it accepts, and that is 10.
On Server editions of the OS's, there are no limits.
Regards
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"David Browne" <davidbaxterbrowne no potted meat@.hotmail.com> wrote in
message news:uxhcKhs5FHA.1864@.TK2MSFTNGP12.phx.gbl...
> "the friendly display name"
> <thefriendlydisplayname@.discussions.microsoft.com> wrote in message
> news:A0E3673D-E984-4EFA-82C2-1A51E6D38945@.microsoft.com...
> No it didn't. It had a query governor which throttled performance after 5
> concurrent workloads.
> Yes.
>
> Yes. Althought SQL Server Express Edition is limited to 1GB of RAM and
> 1CPU which will impose some limit on the number of users it can serve.
> David
>
|||> And to add, there are no SQL Server limits, but if you run on Windows 2000
> Pro or Windows XP, the OS has a limit of number of incoming network
> connection it accepts, and that is 10.
IIRC, that is Redirector connections, not socket connections. Has anyone
tried more then 10 sql connections on XP?
William Stacey [MVP]

Tuesday, March 20, 2012

NLB drainstop command issues

Hello,

We use the NLB drainstop command to gracefully move connections from one database server (server A) to another (server B) but we discovered with one application in particular that the connections stay alive on the server A.

The applications make DB connections using standard .NET System.Data classes.

Has anyone experienced this before? Any pointers on what to check for?

Thanks

Alexwhich database is this?

you have posted in the non-database-specific "database concepts" forum, and it sounds like this thread should be moved to a database-specific forum|||Thanks. I'll post it in the sql server forum.|||Hello,

We use the NLB drainstop command to gracefully move connections from one database server (server A) to another (server B) but we discovered with one application in particular that the connections stay alive on the server A.

The applications make DB connections using standard .NET System.Data classes.
The database servers are SQL Server 2005.

Has anyone experienced this before? Any pointers on what to check for?

Thanks

Alex|||no, don't do that, we'll just move this thread over there

:)|||no, don't do that, we'll just move this thread over there

:)Hehe!! :) Thank you sir!

I hope someone here can assist!

nimdaE + ODBC

i was infected by nimdaE. when i eradicated it, i erased 3 odbc.dll files. from that time, i became unable to use my db connections (access and sqlserver).
what can i do ?
thanks.Download and install the MDAC components from this page:

http://www.microsoft.com/data/download.htm

If you are using Windows XP, then you need MDAC 2.7, otherwise you can use MDAC 2.6 RTM or MDAC 2.6 SP1.

This should restore the missing DLL files and update your drivers.