Click here to Skip to main content
15,913,722 members
Home / Discussions / C#
   

C#

 
GeneralRe: seeting the background color of a Windows Form Pin
Rocky#27-Oct-06 9:11
Rocky#27-Oct-06 9:11 
AnswerRe: seeting the background color of a Windows Form Pin
BoneSoft27-Oct-06 10:19
BoneSoft27-Oct-06 10:19 
QuestionC# 2.0 DataBinding using the BindingSource in user controls Pin
rajat_tandon200027-Oct-06 8:46
rajat_tandon200027-Oct-06 8:46 
QuestionSql Server connection [modified] Pin
Chris Morgan27-Oct-06 7:08
Chris Morgan27-Oct-06 7:08 
AnswerRe: Sql Server connection Pin
Dustin Metzgar27-Oct-06 8:33
Dustin Metzgar27-Oct-06 8:33 
GeneralRe: Sql Server connection Pin
Chris Morgan27-Oct-06 8:51
Chris Morgan27-Oct-06 8:51 
GeneralRe: Sql Server connection Pin
Dustin Metzgar27-Oct-06 9:05
Dustin Metzgar27-Oct-06 9:05 
GeneralRe: Sql Server connection Pin
Chris Morgan27-Oct-06 9:32
Chris Morgan27-Oct-06 9:32 
I'm starting to wonder if the Visual Studio 2005 install is bad. This is really weird.

I made the small console app you suggested and ran it on the local machine with the database. Here are the results for the 2003 and 2005 version:

C:\>"test sql 2003"<br />
ServerVersion: 08.00.0194<br />
State: Open<br />
<br />
C:\>"test sql 2005"<br />
ServerVersion: 08.00.0194<br />
State: Open



Then I ran it on a remote machine and got:

C:\>"test sql 2003"<br />
ServerVersion: 08.00.0194<br />
State: Open<br />
<br />
C:\>"test sql 2005"<br />
<br />
Unhandled Exception: System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.<br />
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)<br />
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)<br />
   at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)<br />
   at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)<br />
   at System.Data.SqlClient.TdsParserStateObject.ReadPacket(Int32 bytesExpected)<br />
<br />
   at System.Data.SqlClient.TdsParser.ConsumePreLoginHandshake(Boolean encrypt, Boolean trustServerCert, Boolean& marsCapable)<br />
   at System.Data.SqlClient.TdsParser.Connect(Boolean& useFailoverPartner, Boolean& failoverDemandDone, String host, String failoverPartner, String protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire, Boolean encrypt, Boolean<br />
trustServerCert, Boolean integratedSecurity, SqlConnection owningObject, Boolean<br />
 aliasLookup)<br />
   at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)<br />
   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String  newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)<br />
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)<br />
   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)<br />
   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owning Object)<br />
   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)<br />
   at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)<br />
   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)<br />
   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)<br />
   at System.Data.SqlClient.SqlConnection.Open()<br />
   at Test_SQL.Program.Main(String[] args)



I have tried increasing the timeout, but it doesn't help and I should not have to wait 60 seconds for a connection to the database on a local network.

Thanks for the help so far, any ideas of where to go from here?
GeneralRe: Sql Server connection Pin
Dustin Metzgar27-Oct-06 9:51
Dustin Metzgar27-Oct-06 9:51 
GeneralRe: Sql Server connection Pin
Dustin Metzgar27-Oct-06 10:06
Dustin Metzgar27-Oct-06 10:06 
GeneralRe: Sql Server connection Pin
Chris Morgan27-Oct-06 13:20
Chris Morgan27-Oct-06 13:20 
GeneralRe: Sql Server connection Pin
Dustin Metzgar27-Oct-06 13:43
Dustin Metzgar27-Oct-06 13:43 
AnswerRe: Sql Server connection Pin
Rob Graham27-Oct-06 10:28
Rob Graham27-Oct-06 10:28 
QuestionObject to IntPtr... Pin
Shy Agam27-Oct-06 6:31
Shy Agam27-Oct-06 6:31 
AnswerRe: Object to IntPtr... Pin
Guffa27-Oct-06 7:07
Guffa27-Oct-06 7:07 
GeneralRe: Object to IntPtr... Pin
Shy Agam27-Oct-06 7:17
Shy Agam27-Oct-06 7:17 
GeneralRe: Object to IntPtr... Pin
led mike27-Oct-06 7:31
led mike27-Oct-06 7:31 
GeneralRe: Object to IntPtr... Pin
Shy Agam27-Oct-06 7:41
Shy Agam27-Oct-06 7:41 
GeneralRe: Object to IntPtr... Pin
led mike27-Oct-06 7:46
led mike27-Oct-06 7:46 
GeneralRe: Object to IntPtr... Pin
Eric Dahlvang27-Oct-06 8:12
Eric Dahlvang27-Oct-06 8:12 
GeneralRe: Object to IntPtr... Pin
Shy Agam27-Oct-06 8:27
Shy Agam27-Oct-06 8:27 
AnswerRe: Object --> IntPtr... Pin
ednrgc27-Oct-06 7:35
ednrgc27-Oct-06 7:35 
QuestionNewbie in need of webcam/capture/video overlay help Pin
edwa582327-Oct-06 6:18
edwa582327-Oct-06 6:18 
AnswerRe: Newbie in need of webcam/capture/video overlay help [modified] Pin
Larantz27-Oct-06 9:52
Larantz27-Oct-06 9:52 
GeneralRe: Newbie in need of webcam/capture/video overlay help Pin
Larantz27-Oct-06 14:00
Larantz27-Oct-06 14:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.