473,396 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Error executing sqlmetal against SQL2005

I am trying to execute the sqlmetal util with the following command line
arguments

/provider:SQL2005 /database:bookshelf_dev /code:SqlMetal.cs

This gives me the following error:

Error : Could not load type 'System.Data.Linq.SqlClient.Sql2008Provider'
from assembly 'System.Data.Linq, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.

I cannot seem to find any information on the web regarding this problem.
Does anyone have a clue whats going on here?

It's telling me something about an Sql 2008 provider, but I did explicitly
ask for Sql 2005. Do I have to install some kind of Sql 2008 client tools to
make sqlmetal work?

Jul 15 '08 #1
2 2076
On Tue, 15 Jul 2008 18:26:00 +0200, Joern Schou-Rode wrote:
Error : Could not load type 'System.Data.Linq.SqlClient.Sql2008Provider'
from assembly 'System.Data.Linq, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.
Update: When I tell sqlmetal to generate the XML mappings file, it works
like a charm. When I afterwards tell sqlmetal to generate code from the
XML mapping, I get the very same error as before. This indicates that the
exception is thrown as sqlmetal is about to cook up the code, rather than
while inspecting the database.

I really hope someone has an idea on what to do or where to look for a
solution to this problem.

Thanks in advance!
--
Joern Schou-Rode
http://malamute.dk/
Jul 20 '08 #2
On Sun, 20 Jul 2008 23:24:16 +0200, Joern Schou-Rode <js*@malamute.dk>
wrote:
On Tue, 15 Jul 2008 18:26:00 +0200, Joern Schou-Rode wrote:
>Error : Could not load type 'System.Data.Linq.SqlClient.Sql2008Provider'
from assembly 'System.Data.Linq, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.
Problem solved. After installing the "Windows SDK for Windows Server 2008
and .NET Framework 3.5" package SqlMetal is up and running.

Why the SqlMetal binary in the 6.0A version (distributed with VS2008) did
not work I cannot say.

--
Joern Schou-Rode
http://malamute.dk/
Jul 21 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ad | last post by:
The user of my asp.net program use Sql2005 or Sql2005 express as database, both are possible. I have try both version of data base, I found: If I use Sql2005 express, the Data Source in...
4
by: J. Jespersen | last post by:
Hi all, Have been using SqlDataSources for a while now. Reinstalled machine last week, now running Server 2003. Installed both SqlServer 2000 and 2005 with instance-names "sql2000" and...
0
by: hammad.awan_nospam | last post by:
Hello, I have used SqlMetal to generate the Dlinq classes for my database schema. I have created instances of those classes and then tried binding them to a PropertyGrid object through it's...
5
by: Mike | last post by:
I'm having trouble accessing SQL2005 Standard Edition as a second instance of SQL Server where the first instance is SQL 2000 Enterprise Edition. I installed SQL 2005 as a named instance...
0
by: Robson Felix | last post by:
Folks, I've been trying to put some legacy databases I have here through SqlMetal. Most of it goes well, but in some stored procedures, I get errors for temp tables that don't exist and so on. I...
0
by: Andrus | last post by:
I use sqlmetal to generate cs code. sql metal generates property attributes in form public string Floorlimit { .... I need to specify that this property is discriminator. Since C# does not...
3
by: Andy | last post by:
Hi, I use procs for my data access, instead of allowing direct inserts and updates to tables. How can I get SqlMetal to generate code that will use procs? I know the designer you can Configure...
0
by: Joern Schou-Rode | last post by:
In the database (SQL2005) that I am working on, the tables are divided into a few schemas, which are used to restrict permissions for certain users. When autogenerating entity classes thorugh the...
2
by: Big Daddy | last post by:
For example, if I have a DB table called DownloadPoints with a column named DownloadPointNo, then SqlMetal will create a file with a class called DownloadPoints with an accessor named...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.