PC Review


Reply
Thread Tools Rate Thread

TableAdapter - Custom Select Query

 
 
Mark
Guest
Posts: n/a
 
      16th May 2008
Hi -

I'm working in VS2008, C# and am adding a Select Query to the TableAdapter.

It's simple:
Select ID, Name From myTable
Where ID = @id

So in code I excute the Fill method:
this.myTableTableAdapter.FillbyID(this.myDataSet.myTable, 14);

Where/How at runtime can I see the resolved Select statement? Which would
look like:
Select ID, Name From myTable
Where ID = 14

Thank you,
Mark
 
Reply With Quote
 
 
 
 
Mark
Guest
Posts: n/a
 
      16th May 2008
William -

Very handy.

Thank you,
Mark

"William Vaughn [MVP]" wrote:

> If you're using SQL Server, start the Profiler--you'll see everything being
> done by any of your applications in real time.
>
> --
> __________________________________________________________________________
> William R. Vaughn
> President and Founder Beta V Corporation
> Author, Mentor, Dad, Grandpa
> Microsoft MVP
> (425) 556-9205 (Pacific time)
> Hitchhiker’s Guide to Visual Studio and SQL Server (7th Edition)
> ____________________________________________________________________________________________
> "Mark" <(E-Mail Removed)> wrote in message
> news:9D5246E2-B3C8-4B68-9DC2-(E-Mail Removed)...
> > Hi -
> >
> > I'm working in VS2008, C# and am adding a Select Query to the
> > TableAdapter.
> >
> > It's simple:
> > Select ID, Name From myTable
> > Where ID = @id
> >
> > So in code I excute the Fill method:
> > this.myTableTableAdapter.FillbyID(this.myDataSet.myTable, 14);
> >
> > Where/How at runtime can I see the resolved Select statement? Which would
> > look like:
> > Select ID, Name From myTable
> > Where ID = 14
> >
> > Thank you,
> > Mark

>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TableAdapter.Query(Parameters) AWW Microsoft VB .NET 0 15th Dec 2008 03:48 AM
TableAdapter parameterized query JR Microsoft ADO .NET 1 4th Aug 2008 03:02 AM
Add query with parameter to tableadapter ? TonyB Microsoft ADO .NET 1 9th Apr 2007 05:26 PM
Select Value From Specific Table Column in TableAdapter =?Utf-8?B?UmljaCBIdXRjaGlucw==?= Microsoft VB .NET 3 5th Apr 2007 04:42 PM
Custom Function in a Select Query =?Utf-8?B?S2lyayBQLg==?= Microsoft Access Queries 5 4th Jan 2005 10:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:24 PM.