connecting to SQL express
On page 187 in "Visual c# 2005 Express Edition Starter Kit by Barker are instructions for connecting to SQL Express db. First CoffeeSQL.mdf is not on the CD sent with the book! So I had to use another .mdf and I'm not sure about it, ie, if it can be used with SQL Express. Anyway I get this error when I try to connect:
"Unable to open the physical file... Operating system error 32: "32(The process cannot access the file because it is being used by another process.)" An attempt to attach an auto-named database for the file... failed. A database with the same name exits, or specified file cannot be opened, or it is located on UNC share."