472,805 Members | 871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,805 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 9168
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 ...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.