Click here to Skip to main content
16,022,667 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends, I created one data set table adapter and running with fillby queries successfully. But, My question is, while running a query, How to get my query including parameter inputs as string to check query structure for debugging?

What I have tried:

I tried like this. But showing only my query text, not with perimeters values.
vb.ner
Me.MyAC_Details_tblTableAdapter.Adapter.SelectCommand.CommandText.ToString
Posted
Updated 12-May-19 3:59am
v3

1 solution

You can't "get the command" as a string including parameter values: that's the whole point of using parameters, they don't become part of the string at any time.

You can always check the SelectCommand.Parameters collection, which should give you access to the parameter values in "native" format rather than as strings.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900