Link to home
Start Free TrialLog in
Avatar of Starr Duskk
Starr DuskkFlag for United States of America

asked on

Passing a query string to a table adapter

In a stored procedure, you can pass a query string and just execute it...

Exec(@SqlCommand)

When creating a table adapter query, is there a way to run a query string you pass in?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Raja Jegan R
Raja Jegan R
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Starr Duskk

ASKER

We're talking about a table adapter query?
It errors that the Declare Sql Construct or statement is not supported.
 
How do I use this? What am I missing?
 It errors that the Declare Sql Construct or statement is not supported.
I'd like to pass in my querystring, so I've also tried this:
exec sp_executesql @SQLString
Errors exec statement isn't supported.
How do I get this to work?
thanks.
 
well, I never got an answer on how to implement this. But I'm going to close it out.