Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
GeneralRe: & missing Pin
benjamin yap3-Jun-09 1:26
benjamin yap3-Jun-09 1:26 
GeneralRe: & missing Pin
Henry Minute3-Jun-09 1:33
Henry Minute3-Jun-09 1:33 
GeneralRe: & missing Pin
benjamin yap3-Jun-09 1:38
benjamin yap3-Jun-09 1:38 
GeneralRe: & missing Pin
Henry Minute3-Jun-09 2:03
Henry Minute3-Jun-09 2:03 
GeneralRe: & missing Pin
benjamin yap3-Jun-09 3:52
benjamin yap3-Jun-09 3:52 
GeneralRe: & missing Pin
Rob Philpott3-Jun-09 2:19
Rob Philpott3-Jun-09 2:19 
AnswerRe: & missing Pin
Moreno Airoldi3-Jun-09 1:24
Moreno Airoldi3-Jun-09 1:24 
QuestionSybase connection error... Pin
The_Collector3-Jun-09 0:24
The_Collector3-Jun-09 0:24 
I'm trying to connect to Sybase Server (Adaptive Server Anywhere 6.0) from my C# application but failed to establish a connection.... it seems the C# use a default MSSQL driver. Below is the error:

"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)"

below is the code:

//string bartsConnect = "Driver={Adaptive Server Anywhere 6.0};SRVR=MyServer;DB=MyDatabase;UID=myUserId;PWD=myPassword";

string myConnection = "server=ServerName;Database=myDatabase;uid=myUserId;pwd=myPassword";
SqlConnection myConnection = new SqlConnection(myConnection);
myConnection.Open();

hope to hear some answers soon,,,, thank you.

xxx

AnswerRe: Sybase connection error... Pin
Moreno Airoldi3-Jun-09 0:40
Moreno Airoldi3-Jun-09 0:40 
GeneralRe: Sybase connection error... Pin
The_Collector3-Jun-09 4:00
The_Collector3-Jun-09 4:00 
GeneralRe: Sybase connection error... Pin
Moreno Airoldi3-Jun-09 5:21
Moreno Airoldi3-Jun-09 5:21 
GeneralRe: Sybase connection error... Pin
The_Collector3-Jun-09 14:36
The_Collector3-Jun-09 14:36 
QuestionException when making a control button Pin
gwithey3-Jun-09 0:08
gwithey3-Jun-09 0:08 
AnswerRe: Exception when making a control button Pin
Moreno Airoldi3-Jun-09 0:21
Moreno Airoldi3-Jun-09 0:21 
AnswerRe: Exception when making a control button Pin
Rob Philpott3-Jun-09 0:21
Rob Philpott3-Jun-09 0:21 
GeneralRe: Exception when making a control button Pin
gwithey3-Jun-09 0:56
gwithey3-Jun-09 0:56 
QuestionHow to encapsulate C++ in C# Pin
sbotz2-Jun-09 23:55
sbotz2-Jun-09 23:55 
AnswerRe: How to encapsulate C++ in C# Pin
Simon P Stevens3-Jun-09 1:02
Simon P Stevens3-Jun-09 1:02 
GeneralRe: How to encapsulate C++ in C# Pin
sbotz3-Jun-09 1:20
sbotz3-Jun-09 1:20 
GeneralRe: How to encapsulate C++ in C# Pin
Simon P Stevens3-Jun-09 3:16
Simon P Stevens3-Jun-09 3:16 
GeneralRe: How to encapsulate C++ in C# Pin
Dave Kreskowiak3-Jun-09 3:24
mveDave Kreskowiak3-Jun-09 3:24 
Questioncross thread events Pin
spiritboy2-Jun-09 23:55
spiritboy2-Jun-09 23:55 
AnswerRe: cross thread events Pin
Moreno Airoldi3-Jun-09 0:15
Moreno Airoldi3-Jun-09 0:15 
GeneralRe: cross thread events Pin
harold aptroot3-Jun-09 0:22
harold aptroot3-Jun-09 0:22 
AnswerRe: cross thread events Pin
S. Senthil Kumar3-Jun-09 9:12
S. Senthil Kumar3-Jun-09 9:12 

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.