Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
GeneralRe: Equivalent of Java's <code>instanceof</code> in C# Pin
Rob Graham6-Jan-03 10:17
Rob Graham6-Jan-03 10:17 
GeneralRe: Equivalent of Java's <code>instanceof</code> in C# Pin
James T. Johnson6-Jan-03 10:19
James T. Johnson6-Jan-03 10:19 
GeneralThanks for your answers! Pin
Le centriste6-Jan-03 15:30
Le centriste6-Jan-03 15:30 
GeneralCOM Exception Pin
Lmani6-Jan-03 9:45
Lmani6-Jan-03 9:45 
Generaltoolwindow w/o focus Pin
Roger Alsing6-Jan-03 8:06
Roger Alsing6-Jan-03 8:06 
GeneralFileSystemWatcher Question Pin
OBRon6-Jan-03 7:53
OBRon6-Jan-03 7:53 
GeneralRe: FileSystemWatcher Question Pin
Eric Gunnerson (msft)6-Jan-03 13:26
Eric Gunnerson (msft)6-Jan-03 13:26 
GeneralProblems with SQL database connection string Pin
Member 29074626-Jan-03 7:34
Member 29074626-Jan-03 7:34 
Can anyone help me understand why this connection string is not working. I have the following piece of code

string connString = "user id=sa;password=;initial catalog=dbName;data source=Test;Connect Timeout=30";
SqlConnection connect = new SqlConnection(connString);

try
{
connect.Open();
.....}
catch
{
...
}

It gives me the error "SQL server does not exist or access denied." The datasource is correct and tests out correctly in the ODBC administrator. It does not matter what database name I put in there. Another interresting thing, If I change the connection string and eliminate the data source completely it give me the error
"Login failed for user "sa" Not associated with a trusted SQL server connection" I have used the ODBC connection and database in my C++ application and they work just fine. Any ideas why C# is causing me such a headache? Thanks for any help.

GeneralRe: Problems with SQL database connection string Pin
OBRon6-Jan-03 7:42
OBRon6-Jan-03 7:42 
GeneralRe: Problems with SQL database connection string Pin
Paul Riley6-Jan-03 10:25
Paul Riley6-Jan-03 10:25 
GeneralRe: Problems with SQL database connection string Pin
Richard Deeming7-Jan-03 0:40
mveRichard Deeming7-Jan-03 0:40 
GeneralRe: Problems with SQL database connection string Pin
Steve McLenithan7-Jan-03 4:48
Steve McLenithan7-Jan-03 4:48 
GeneralIntPtr to a structure Pin
Nnamdi Onyeyiri6-Jan-03 6:32
Nnamdi Onyeyiri6-Jan-03 6:32 
GeneralRe: IntPtr to a structure Pin
leppie6-Jan-03 7:32
leppie6-Jan-03 7:32 
GeneralRe: IntPtr to a structure Pin
Nnamdi Onyeyiri6-Jan-03 7:34
Nnamdi Onyeyiri6-Jan-03 7:34 
GeneralRe: IntPtr to a structure Pin
leppie6-Jan-03 7:55
leppie6-Jan-03 7:55 
GeneralRe: IntPtr to a structure Pin
Nnamdi Onyeyiri6-Jan-03 7:58
Nnamdi Onyeyiri6-Jan-03 7:58 
GeneralRe: IntPtr to a structure Pin
leppie6-Jan-03 8:04
leppie6-Jan-03 8:04 
GeneralRe: IntPtr to a structure Pin
James T. Johnson6-Jan-03 14:49
James T. Johnson6-Jan-03 14:49 
GeneralRe: IntPtr to a structure Pin
leppie6-Jan-03 19:43
leppie6-Jan-03 19:43 
GeneralRe: IntPtr to a structure Pin
Heath Stewart7-Jan-03 3:40
protectorHeath Stewart7-Jan-03 3:40 
GeneralRe: IntPtr to a structure Pin
leppie7-Jan-03 6:09
leppie7-Jan-03 6:09 
GeneralRe: IntPtr to a structure Pin
Heath Stewart7-Jan-03 7:56
protectorHeath Stewart7-Jan-03 7:56 
GeneralError in uninstalling the Windows Service Pin
jayakarthikeyan6-Jan-03 3:14
jayakarthikeyan6-Jan-03 3:14 
GeneralRe: Error in uninstalling the Windows Service Pin
Stephane Rodriguez.6-Jan-03 3:35
Stephane Rodriguez.6-Jan-03 3:35 

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.