SQL Server Express 2008 using (local) in connection string

Posted by Jeff on Stack Overflow See other posts from Stack Overflow or by Jeff
Published on 2010-05-18T00:12:23Z Indexed on 2010/05/18 0:31 UTC
Read the original article Hit count: 254

Is it possible to connect to a SQL Server Express 2008 database in ASP.NET with a server name of (local) like "server=(local);integrated security=SSPI;database=DBNAME"?

I'm working with another developer on a project and it's getting annoying having to have 2 different version of web.config because he is using SQL Server 2008 and (local) works, but I can't seem to get it to work with SQL Server 2008 Express locally.

The database is located on the same computer as the .NET code in case that matters.

Thanks.

© Stack Overflow or respective owner

Related posts about sql-server-express

Related posts about ASP.NET