473,566 Members | 2,770 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Failed because ... is a table valued object.

Lokean
71 New Member
I'm gettint this weird error and I don't know why...

Anyone know what I am doing wrong

The request for procedure 'dfGetErrors'fa iled because 'dfGetErrors' is a table valued function object.

Dim tbl As New Data.DataTable
Dim ds1 As DataSet
Dim dr As DataRow
Dim drf As System.Data.IDa taReader
' cn.Open()
drf = cmd.ExecuteRead er
Oct 4 '07 #1
5 7258
Plater
7,872 Recognized Expert Expert
Isn't IDataReader an interface? I think you need to pick a concrete class?
Oct 4 '07 #2
Lokean
71 New Member
Isn't IDataReader an interface? I think you need to pick a concrete class?
Such as?

I'm in the dark here, I usually use the GUI, but this is slow as molasses, I'm trying to pull a function in through code and it just does not seem to want to let me.
Oct 4 '07 #3
Plater
7,872 Recognized Expert Expert
ODBDataReader, SQLDataReader, any of the implementing classes could work?

Scratch that, if you want a DataSet populated with your values, use the DataAdapter (ODBDataAdapter , SQLDataAdapter) and use it to .Fill() your DataSet
Oct 4 '07 #4
Lokean
71 New Member
I just tried that and I am getting the same error...
Oct 5 '07 #5
Plater
7,872 Recognized Expert Expert
What is "'dfGetErro rs' "?
What kind of database are you using?
Oct 5 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3267
by: erin | last post by:
When I run: select * from testtable I get this error message: Invalid object name 'testtable'. However, if I run: select * from testuser.testtable
2
3422
by: Bruce Lester | last post by:
Is there a way to create a trigger directly on an inline or multi-line table value function? I am trying to create a quick-and-dirty application using an Access Data Project front-end with SQL 2000 SP3 EE. Thanks.
1
14372
by: Abhishek Srivastava | last post by:
Hello All, I am trying to call a Function in SQL Server which returns a TABLE type. I get an exception Unhandled Exception: System.Data.SqlClient.SqlException: The request for procedu re 'testFunc' failed because 'testFunc' is a function object. at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
2
1401
by: Wensui Liu | last post by:
Dear all, is there a way to create a 2-dimension-table-like object such that I can reference a whole column directly using something like : mytable.column1 ? by the way, can python be used for database programming to pull large volume data (hundred M or even several Gs) out of large database and do data manipulation and reporting ? if...
1
8347
by: Don | last post by:
I'm getting the following exception displayed in the task list at design time for my project: "Code generation for property 'Controls' failed. Error was: 'Object reference not set to an instance of an object.'" I've traced the problem to a custom control I created that inherits from Inherits System.Windows.Forms.TextBox. In this custom...
0
963
by: Lily12 | last post by:
Hi, I have writen a user defined function which returns a table.I want to add the table rows returned by UDF in the SQL statement which calls the function. Can anyone suggest me. Thanks in advance. ~Lily
1
1820
by: mansi sharma | last post by:
Three types of Functions are there- 1)Simple Scalar function-It returns a scalar value. 2)Inline-Table Valued UDF- It allows us to return the table. Am I right or wrong?? 3) Multi-statement table valued UDF- Can somebody tell me the definition of it. create table studentp(roll int,name varchar,marks int,address varchar(10))
3
4257
by: =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post by:
Hi all I think this question was discused quite often before. But maybe some "good-brain" has a great idea ... :-))) I have a DataSet with "unknown" columns. The CLR Function should work like the normal TVF: ALTER FUNCTION . () RETURNS TABLE
3
4963
by: simple simon | last post by:
How would I insert into multiple related tables using a table valued parameter? Is there any way to do this without using a WHILE loop? I know how to insert from a table valued parameter into one table: INSERT INTO dbo.Table SELECT * FROM @TVP But what do I do when I want to insert all of someone's information into multiple tables, and...
0
7666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7888
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8108
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7644
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...
0
6260
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...
0
5213
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...
0
3643
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...
1
2083
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
1
1201
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.