Click here to Skip to main content
15,901,122 members
Home / Discussions / C#
   

C#

 
GeneralRe: suppressing/deactivating all other applications when one application is running using C# or VB.Net Pin
PIEBALDconsult23-Feb-08 4:23
mvePIEBALDconsult23-Feb-08 4:23 
GeneralRe: suppressing/deactivating all other applications when one application is running using C# or VB.Net Pin
Raheem MA19-Feb-09 2:05
Raheem MA19-Feb-09 2:05 
GeneralRe: suppressing/deactivating all other applications when one application is running using C# or VB.Net Pin
PIEBALDconsult19-Feb-09 3:07
mvePIEBALDconsult19-Feb-09 3:07 
QuestionMDI form problem? Pin
Hum Dum21-Feb-08 0:35
Hum Dum21-Feb-08 0:35 
AnswerRe: MDI form problem? Pin
Dave Kreskowiak21-Feb-08 5:20
mveDave Kreskowiak21-Feb-08 5:20 
GeneralRe: MDI form problem? Pin
Hum Dum21-Feb-08 20:43
Hum Dum21-Feb-08 20:43 
GeneralLogin failed for user ''. The user is not associated with a trusted SQL Server connection. [modified] Pin
NarVish21-Feb-08 0:13
NarVish21-Feb-08 0:13 
AnswerRe: Login failed for user ''. The user is not associated with a trusted SQL Server connection. Pin
Raheem MA21-Feb-08 0:45
Raheem MA21-Feb-08 0:45 
Hi,

you have connection string:

Connection string is
SqlConnection conn = new SqlConnection("Data Source=Danny\\SQLExpress;initial catalog=Games;trusted_connection=true;user=sa;pwd=lalitha");

you have given trusted_connection=true, given user and password details.

If you have access to Sql server with windows authentication, you should provide trusted_connection=true in connection string,

else you have to provide user and pwd details.
your connection string should be in either formats:

1. Data Source=Danny\\SQLExpress;initial Catalog=Games;trusted_connection=true
2. Data Source=Danny\\SQLExpress;initial Catalog=Games;user=sa;pwd=lalitha

If you specify trusted_connection=true, you need not to give user and pwd details.

I think you dont have windows authentication for SQL server, so you are getting error like above.

try with 2nd option of connection string, it should work Smile | :)

All the best! Smile | :)
GeneralRe: Login failed for user ''. The user is not associated with a trusted SQL Server connection. Pin
NarVish25-Feb-08 1:14
NarVish25-Feb-08 1:14 
GeneralRe: Login failed for user ''. The user is not associated with a trusted SQL Server connection. Pin
phannon8621-Feb-08 1:04
professionalphannon8621-Feb-08 1:04 
GeneralRe: Login failed for user ''. The user is not associated with a trusted SQL Server connection. Pin
Arjun Marwaha21-Feb-08 1:28
Arjun Marwaha21-Feb-08 1:28 
QuestionAsynchronous NetworkStream Pin
John Oxley20-Feb-08 23:54
John Oxley20-Feb-08 23:54 
GeneralRe: Asynchronous NetworkStream Pin
Judah Gabriel Himango21-Feb-08 4:51
sponsorJudah Gabriel Himango21-Feb-08 4:51 
GeneralC# Library needed Pin
Knowledgestudent20-Feb-08 22:44
Knowledgestudent20-Feb-08 22:44 
GeneralRe: C# Library needed Pin
Pete O'Hanlon21-Feb-08 3:02
mvePete O'Hanlon21-Feb-08 3:02 
GeneralRe: C# Library needed Pin
Knowledgestudent21-Feb-08 9:06
Knowledgestudent21-Feb-08 9:06 
GeneralRe: C# Library needed Pin
Pete O'Hanlon21-Feb-08 9:12
mvePete O'Hanlon21-Feb-08 9:12 
GeneralFocus+Validation Summary Pin
razanabanu20-Feb-08 21:03
razanabanu20-Feb-08 21:03 
GeneralRe: Focus+Validation Summary Pin
phannon8620-Feb-08 21:58
professionalphannon8620-Feb-08 21:58 
GeneralReading Data from XML Pin
nivasinfotech20-Feb-08 20:20
nivasinfotech20-Feb-08 20:20 
GeneralRe: Reading Data from XML Pin
nivasinfotech20-Feb-08 20:22
nivasinfotech20-Feb-08 20:22 
GeneralRe: Reading Data from XML Pin
Pete O'Hanlon21-Feb-08 0:56
mvePete O'Hanlon21-Feb-08 0:56 
GeneralRe: Reading Data from XML Pin
Le centriste21-Feb-08 6:20
Le centriste21-Feb-08 6:20 
GeneralScolling two listviews simeltaniously Pin
DnyanAnand20-Feb-08 19:35
professionalDnyanAnand20-Feb-08 19:35 
GeneralRe: Scolling two listviews simeltaniously Pin
Christian Graus20-Feb-08 20:14
protectorChristian Graus20-Feb-08 20:14 

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.