masri999
3/23/2007 2:57:00 AM
On Mar 23, 7:22 am, "Cylix" <cylix2...@gmail.com> wrote:
> I am going to update a list of records accroding a Unique ID,
> like
> Update TBL SET thedate=GETDATE() WHERE TBL_ID IN ('1', '3', '4' ....)
>
> The ID List may be very long ...
> But for a stored procedure, VARCHAR(8000) seems the longest string I
> can declare.
> Any datatype I can define for more than 8000 charaters for a dynamic
> query string?
>
> Thanks.
Is it possible put your tbl_id's in #temp table instead of delimited
string and execute dynamic script