The name "LocalSqlServer" is defined in machine.config. That means, even if you never define it in web.config <connectionStrings>, your app would use the default credentials from machine.config and still work.
You'll notice it says, in the first sentence, that you would have to wade through all your code, and rename all your elements that use "LocalSqlServer" to your new name. Let's say you did not want to do that. If you simply changed the connection string in that one place (machine.config), you could force all of your elements to use your new connection string without changing the name they point to.
You are correct, of course, that there's really no need to do that, if you define "LocalSqlServer" in web.config. But the author is merely pointing out that it is possible.
|