473,387 Members | 1,517 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.

question about CommandType TableDirect

Hi,

this code is for stored procdure:
comd = New SqlCommand()
comd.Connection = connection
comd.CommandText = "mysp"
comd.CommandType = CommandType.StoredProcedure

My question: i also saw when choosing the comd.CommandType in VWD:
"TableDirect". What's the purpose of this and how to use it?

thanks
Chris
Apr 11 '07 #1
1 7086
i found it:
CommandType.TableDirect: Should be used when you want all records from a
table returned. You would specify only the name of the table as the command.
This type can only be used with the OLEDB command object, OleDbCommand.
"Chris" <ss@ss.ssschreef in bericht
news:%2****************@TK2MSFTNGP03.phx.gbl...
Hi,

this code is for stored procdure:
comd = New SqlCommand()
comd.Connection = connection
comd.CommandText = "mysp"
comd.CommandType = CommandType.StoredProcedure

My question: i also saw when choosing the comd.CommandType in VWD:
"TableDirect". What's the purpose of this and how to use it?

thanks
Chris

Apr 11 '07 #2

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

Similar topics

2
by: Rod | last post by:
Thanks in advance. I have two listboxes on a single asp page. I am trying to use sqldatareader to populate both using two seperate sql stored procs. I can populate each box seperately using...
5
by: PCL | last post by:
I am trying to get the value from a simple stored procedure - the Stored Procedure returns 1 record with one field - it is basically "Select Max(po) as MaxPo from PODB" I want to store that...
3
by: dot Net Pa Ji | last post by:
In VB.Net, Lines between A and B can be replaced with Lines between C and D is there something in C# like this (With... End With) ?? ---Line...
8
by: Nick | last post by:
Hi, I'm trying to add some data on a company to an SQL server (which I can do), and want to return the FirmID (SQL identity) of the data that was just inserted so I can use it to redirect to...
2
by: Robert Smith jr. | last post by:
Hello, Please pardon my newbie question ... I am building an ASP.NET page that displays a recordset with a Delete statement enabled (this all works fine). I want to Insert the current row...
3
by: Ken H | last post by:
Hi I have a question about architecting solutions.. I have a part of a project which requires me to track person details (name, addresses, etc... Should I be creating Person objects, Address...
3
by: Anthony Sox | last post by:
Anyone know the ADOX equvalent in VB.NET or ways of dynamically creating new tables using vb.net code and MSacess or SQL server. Thanks in advance
2
by: Miles | last post by:
I have a VB2005 application that has the need to read FoxPro 2.5 DBF/CDX files. I have the code (below) that opens the connection, but there are never any records, nor errors, reported... Can...
5
by: ric_deez | last post by:
Hi there, I would like to create a simple search form to allow users to search for a job number based on a number of parameters. I think I understand how to use parameteres associated with Stored...
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:
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
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.