Jon 2007


Hi

I've installed 'SQL Server Express 2005 SP2'.

When I select 'SQL database' from 'Add new item ' (either in Visual C# or Visual Web Developer express) I get the following errror: "Login failed for user'.

My OS is Vista.

I've tried reinstalling SQL Server express, but I still get the same error.

Any ideas on how to fix this

Thanks

Jon




Re: Add SQL database - "login failed for user" error

Jon 2007


Think I've found the answer. Looks like a Vista issue. When I 'run as administrator' (C# express and web developer express), this resolves the problem.






Re: Add SQL database - "login failed for user" error

matleeds

I think I may have a similiar problem. When you say you 'run as administrator' is that the vista setting or is there a setting in c# express

when i'm trying to connect to a database from within c# viz studio express i'm getting 'you don't have permission contact file owner or obtain administrator permission'

thing is i'm 99% sure i'm an administrator on vista already and i've changed the db owner to me as well.






Re: Add SQL database - "login failed for user" error

Charlie Calvert MSFT

When you are about to start Sql Server Management Studio or Visual Studio, right click on the icon for launching the tool and choose "Run as Administrator."