>>Hi,
>>
>>When calling a stored procedure from a simple/test .NET project and using "sa" for user ID I get error
>>
>>Login failed for user 'sa'
>>The user is not associated with a trusted SQL connection
>>
>>
>>In comparison, when calling SQL from my VFP application I have connection string with [Trusted_Connection=Yes]. Is this what is missing in my .NET connection string? If so, who do I specify it in my .NET connection string?
>>
>>TIA
>
>What is your current connection string?
>
>You should be doiong something like..
>
>Server=myServerAddress;Database=myDataBase;Trusted_Connection=True;
>
>or
>
>Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI;
>
>these came from
http://www.connectionstrings.com/sql-server-2005Thank you very much for your help. I thought I needed to use Trused_Connection=True but I don't know where to
put it.
Let me explain. I am reading/studying a book where there is an example of building a DB Connection String from an XML file or using SqlConnectionStringBuilder. But their sample .XML does not have an element for the value "Trusted_Connection=True"; no does it have a place to put it when using SqlConnectionStingBuilder.
E.g. The SqlConnectionStringBuilder has the following elements:
UserID
Password
InitialCatalog
DataSource
and a couple of other unrelated but nothing for "Trusted_Connection=True"
I know this is a newbie stuff and I should know it <g>.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham