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

M

Matthew Louden

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??
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

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

Cheers,
 
M

Marco Martin

Matthew,

the class name is SQLCommand not SQLDatasetCommand.

Hope this helps

Marco
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top