PC Review


Reply
Thread Tools Rate Thread

command.CommandText and parameters

 
 
skneife@gmail.com
Guest
Posts: n/a
 
      7th Nov 2007
What is the way for getting the sqlQuery with all params
replacementfrom a command ?
DbCommand command;
SqlParameter sqlParam = new SqlParameter("@param1", "value1");
SqlParameter sqlParam = new SqlParameter("@param1", "value2");
command.CommandText=sqlQuery;
What is the propertoie that provide the sqlQuery string but with all
params replacement ?

Sam

 
Reply With Quote
 
 
 
 
pipo
Guest
Posts: n/a
 
      8th Nov 2007
Hi Sam,

Do you mean the command.CommandText ?

Pipo

<(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> What is the way for getting the sqlQuery with all params
> replacementfrom a command ?
> DbCommand command;
> SqlParameter sqlParam = new SqlParameter("@param1", "value1");
> SqlParameter sqlParam = new SqlParameter("@param1", "value2");
> command.CommandText=sqlQuery;
> What is the propertoie that provide the sqlQuery string but with all
> params replacement ?
>
> Sam
>



 
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
How to read commandtext after added parameters? Eric Microsoft VB .NET 9 28th Oct 2010 12:29 AM
Why using command parameters? BLUE Microsoft ADO .NET 4 9th Jun 2007 01:50 PM
Re: Why using command parameters? Nicholas Paldino [.NET/C# MVP] Microsoft C# .NET 0 8th Jun 2007 06:32 PM
ADODB.Command.CommandText Issue Kyle Jedrusiak Microsoft Access ADP SQL Server 7 4th Jul 2005 08:06 AM
ADODB.Command.CommandText Issue Kyle Jedrusiak Microsoft Access Form Coding 2 27th Apr 2005 04:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:50 PM.