I know that I use executenonquery for inserting/updating fields/deleting rows from a table
My question is this..
I have the following sql statement
lsql_tmp = "select * into temp_item_" + wcode + " _" + strdate1 + " from [merg].[dbo].[item] where itm_pri_cd = '" + wcode + "' and bolevel > 0 "
where wcode is a ten character and strdate1 is defined as Dim strdate1 As String = Date.Today.ToString("yyyyMMdd")
what I am doing is backing up the data BEFORE i run my delete statement, just in case...
can I use executenonquery to execute the above sql statement?? or is there another .net command that
will execute this statement??
thanks in advance for any comments/suggestions
My question is this..
I have the following sql statement
lsql_tmp = "select * into temp_item_" + wcode + " _" + strdate1 + " from [merg].[dbo].[item] where itm_pri_cd = '" + wcode + "' and bolevel > 0 "
where wcode is a ten character and strdate1 is defined as Dim strdate1 As String = Date.Today.ToString("yyyyMMdd")
what I am doing is backing up the data BEFORE i run my delete statement, just in case...
can I use executenonquery to execute the above sql statement?? or is there another .net command that
will execute this statement??
thanks in advance for any comments/suggestions