Wednesday, August 08, 2007

SQLMetal Linq Schema Error

When trying to use Linq to SQL using SQLMetal to generate the classes and xml mapping file, I was getting errors at runtime relating to the schema of the mapping file.

I am running the Orcas Beta 2, but I had also installed a pevious Linq preview. Removing that previous version fixed the problem.

Labels: , , , , ,

Sunday, August 05, 2007

SQLMetal Error

I am currently playing around with Linq to SQL, and I am using sqlmetal.exe to generate an external xml mapping file for my database.

After installing Visual Studio 2008 beta 2, running my sqlmetal command (which in the previous version had been running without a problem) returned the following message:

error The user instance login flag is not supported on this version of SQL Server. The connection will be closed.

After playing around a bit, I discovered that changing the /database value from "localhost" to the actual name of my PC fixed the problem.

Labels: , , , , , , , , ,