Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

insert statement does not work

$
0
0

i have a proc.. it is kinda a huge with few temp tables, updates .this used to work fine ..

i have a simple insert at the end of the proc. this doesnt function when i run teh proc.  but will run fine when is run this query seperatly.. beating my head. could some one pls suggest me. is there something i am missing

insert into table select from table where date between @max and @min .. if i remove the parameters and run the proc it works..but not with params included.

so i tried to run the query seperatly with hard code values and also with passing hardcode values using params. it works fine.. suggest please




Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>