No. I accepted the default Windows Authentication when trying to create the
connection..
I have tried different sequences using SMSE and VS and I am not getting the
login failure message now, but I still have problems. There seems to be some
incompatibility between Visual Studio 2005 and SQL Server Management Studio
Express, unless being a Newbie I am expecting too much. I assumed that I
would be able to create a database in SMSE and therafter use SMSE to control
its properties. I expected to be able to add a connection for the database
to Visual Studio and use the connection when required in any programs I
might develop.
The following experience confuses me:
I create a new database using SMSE and then close the program.
I try to add a connection for the database using VS and get the message
"Unable to open the physical file Operating System Error 32 ..... a
database with the same name exists, or a specified file cannot be opened
.....
I then close down the PC and reboot.
I open VS and I am able to add a connection to the database.
I close VS and open SMSE and access the database and display the data in the
table.
I close SMSE and open VS. The connection to the database has disappeared!.
Ken
If I create a new Database in VS, by adding a new
connection, then it does not appear in SMSE.
[quoted text, click to view] "Erland Sommarskog" <esquel@sommarskog.se> wrote in message
news:Xns98CDAC0273F80Yazorman@127.0.0.1...
> Ken Ellis (main@kandmellis.plus.com) writes:
>> The problem arises when I want to add the data connection for the
>> database
>> to Visual Studio. I get the message
>>
>> Login failed. Login failed for 'STUDY\Ken'
>
> And what do you specify there? It sounds as if you have selected
> SQL authentication when you should have used Windows authentication.
>
>
> --
> Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
>
> Books Online for SQL Server 2005 at
>
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx > Books Online for SQL Server 2000 at
>
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx