473,387 Members | 3,820 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,387 software developers and data experts.

Compile Error: The type or namespace name 'SQLDataSetCommand' could not be found

using System.Data;
using System.Data.SqlClient;
//etc...

SqlConnection conn = new SqlConnection(connString);
SQLDataSetCommand myCmd = new SQLDataSetCommand("select * from Test;",
conn);
DataSet ds = new DataSet();
myCmd.FillDataSet(ds, "test");

Compile Error:
The type or namespace name 'SQLDataSetCommand' could not be found (are you
missing a using directive or an assembly reference)?

The type or namespace name 'myCmd' could not be found (are you missing a
using directive or an assembly reference)?
any ideas??
Nov 15 '05 #1
2 9202
Hi,

A very clear one, SQLDataSetCommand does not exist :)
Try SqlCommand instead ;)

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Matthew Louden" <ma*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
using System.Data;
using System.Data.SqlClient;
//etc...

SqlConnection conn = new SqlConnection(connString);
SQLDataSetCommand myCmd = new SQLDataSetCommand("select * from Test;",
conn);
DataSet ds = new DataSet();
myCmd.FillDataSet(ds, "test");

Compile Error:
The type or namespace name 'SQLDataSetCommand' could not be found (are you
missing a using directive or an assembly reference)?

The type or namespace name 'myCmd' could not be found (are you missing a
using directive or an assembly reference)?
any ideas??

Nov 15 '05 #2
Matthew,

the class name is SQLCommand not SQLDatasetCommand.

Hope this helps

Marco
"Matthew Louden" <ma*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
using System.Data;
using System.Data.SqlClient;
//etc...

SqlConnection conn = new SqlConnection(connString);
SQLDataSetCommand myCmd = new SQLDataSetCommand("select * from Test;",
conn);
DataSet ds = new DataSet();
myCmd.FillDataSet(ds, "test");

Compile Error:
The type or namespace name 'SQLDataSetCommand' could not be found (are you
missing a using directive or an assembly reference)?

The type or namespace name 'myCmd' could not be found (are you missing a
using directive or an assembly reference)?
any ideas??

Nov 15 '05 #3

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

Similar topics

9
by: Brian | last post by:
Greetings: I am trying to compile the following code via command line. It compiles just fine in visual studio 2002 v7 so i took looked at the properties and i got the following command line...
5
by: Brice Prunier | last post by:
Here under 4 schemas i'm working with ( it may be long: sorry...) The context is the following : Resident.xsd imports Person.xsd and includes Common.xsd ( anonimous schema: no TargetNamespace )...
2
by: d2d | last post by:
How are you doing there folks? I just have this newbie question about how to compile an NUnit test file from command line using "csc.exe" I installed NUnit 2.1 using *.msi file. I was...
2
by: Matthew Louden | last post by:
using System.Data; using System.Data.SqlClient; //etc... SqlConnection conn = new SqlConnection(connString); SQLDataSetCommand myCmd = new SQLDataSetCommand("select * from Test;", conn);...
4
by: Seok Bee | last post by:
Dear Experts, I've completed my console application and now wants to compile the application and an executable file to be run at another location. However, I've tried compiling that program in...
7
by: Jorgen Haukland, Norway | last post by:
Hi, I have created a Java webservice which runs in IBM WebSphere appserver. I take the WSDL-file and create a VS.NET WinForm application and calls the service running on my PC and everything...
1
by: electrixnow | last post by:
Help!, I need to compile this code with static libs so it run on another XP machine that does'nt have MS Studio installed. When I compile now I get an ERROR: 1>------ Rebuild All started:...
1
by: Eric Goforth | last post by:
Hello, I found a C# example on the web that used an httpmodule. I've translated it to VB.NET and the website compiles fine, but when I build the website the iHttpModule doesn't compile, I can't...
0
by: tshad | last post by:
I have the following class in my VS 2008 Web Site project that has a namespace of MyFunctions. ********************************* Imports System Imports System.Text.RegularExpressions ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.