Click here to Skip to main content
15,912,021 members
Home / Discussions / C#
   

C#

 
Questionhow to move the position of selected item in a listbox? Pin
fretre6-Jan-03 15:17
fretre6-Jan-03 15:17 
Generalclock function help Pin
jtmtv186-Jan-03 15:15
jtmtv186-Jan-03 15:15 
QuestionRecursive limit? Pin
leppie6-Jan-03 11:44
leppie6-Jan-03 11:44 
AnswerRe: Recursive limit? Pin
Andres Manggini6-Jan-03 12:01
Andres Manggini6-Jan-03 12:01 
GeneralRe: Recursive limit? Pin
leppie6-Jan-03 19:41
leppie6-Jan-03 19:41 
GeneralRe: Recursive limit? Pin
Andres Manggini7-Jan-03 7:17
Andres Manggini7-Jan-03 7:17 
GeneralRe: Recursive limit? Pin
leppie7-Jan-03 7:44
leppie7-Jan-03 7:44 
GeneralRe: Recursive limit? Pin
Andres Manggini7-Jan-03 8:50
Andres Manggini7-Jan-03 8:50 
GeneralFileSystemWatcher won't work with IIS Log Files Pin
Steve Cox6-Jan-03 10:42
Steve Cox6-Jan-03 10:42 
GeneralRe: FileSystemWatcher won't work with IIS Log Files Pin
Heath Stewart7-Jan-03 3:16
protectorHeath Stewart7-Jan-03 3:16 
GeneralRe: FileSystemWatcher won't work with IIS Log Files Pin
Steve Cox7-Jan-03 4:04
Steve Cox7-Jan-03 4:04 
GeneralFileSystemWatcher won't work with IIS Log Files Pin
Steve Cox6-Jan-03 10:42
Steve Cox6-Jan-03 10:42 
GeneralEquivalent of Java's <code>instanceof</code> in C# Pin
Le centriste6-Jan-03 9:46
Le centriste6-Jan-03 9:46 
GeneralRe: Equivalent of Java's <code>instanceof</code> in C# Pin
Nemanja Trifunovic6-Jan-03 10:04
Nemanja Trifunovic6-Jan-03 10:04 
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 

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.