473,795 Members | 2,410 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error executing sqlmetal against SQL2005

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

/provider:SQL200 5 /database:booksh elf_dev /code:SqlMetal.c s

This gives me the following error:

Error : Could not load type 'System.Data.Li nq.SqlClient.Sq l2008Provider'
from assembly 'System.Data.Li nq, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= b77a5c561934e08 9'.

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 2096
On Tue, 15 Jul 2008 18:26:00 +0200, Joern Schou-Rode wrote:
Error : Could not load type 'System.Data.Li nq.SqlClient.Sq l2008Provider'
from assembly 'System.Data.Li nq, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= b77a5c561934e08 9'.
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.d k>
wrote:
On Tue, 15 Jul 2008 18:26:00 +0200, Joern Schou-Rode wrote:
>Error : Could not load type 'System.Data.Li nq.SqlClient.Sq l2008Provider'
from assembly 'System.Data.Li nq, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken =b77a5c561934e0 89'.
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
1804
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 connection string will be ..\SQLEXPRESS, like: Data Source=.\SQLEXPRESS;Initial Catalog=myDB;Integrated Security=True But I use Sql2005 , the Data Source in connection string can be use (local), like:
4
1516
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 "sql2005". Also installed both Visual Studio 2003 and 2005. VS2005 is the Release Candidate, and SQL2005 is the September CTP. During SqlDataSource configuration wizard, i can test connection and all is fine. I can see table names and views in the...
0
1224
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 SelectedObject property. Whenever a Dlinq object is bound, and a particular EntityRef object within that class cannot be obtained from a query, it throws a EmptySequenceException. This is really not an issue from a "get" perspective, i.e. when an
5
3908
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 "SQL2005". The server is running Windows 2000 SP4 ON A 32-Bit machine. When I look in Services I see the SQL Server (SQL2005), SQL Server Agent (SQL2005) services there. I went into SQL Server Configuration manager and disabled the named pipes protocol...
0
1031
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 don't think I can simply go and change every single object of mine. My question is: is there a way to have SqlMetal generate a dataset for each stored procedure call rather than a customized result for each procedure? I understand that...
0
906
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 support partial properties, I added manually to generated code
3
1961
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 Behavior to do this.. is there no equivolent in Sql Metal? Thanks
0
937
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 SqlMetal command line tool, the schema names become part of the class names (eg. a class might be named Schema_Table). Searching the internet for this subject does not turn up much - just a single forum post with an answer like "this is the way...
2
10194
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 DownloadPointNo. I would like the object to be able to pass me the string "DownloadPointNo". For example, the code could be something like: DownloadPoints dp = new DownloadPoints(); string colName = dp.DownloadPointNo.ColumnName; Or I could write a...
0
9519
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10164
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10001
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9042
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3723
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.