Re: Cursor Error...
From: marcmc (marcmc_at_discussions.microsoft.com)
Date: 04/01/05
- Next message: Dan Guzman: "Re: Cursor Error..."
- Previous message: Dan Guzman: "Re: Cursor Error..."
- In reply to: Dan Guzman: "Re: Cursor Error..."
- Next in thread: Dan Guzman: "Re: Cursor Error..."
- Reply: Dan Guzman: "Re: Cursor Error..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 1 Apr 2005 06:23:03 -0800
thanks Dan, I replaced
/*
UPDATE @tbl_name1
SET marcA = substring(marcA,1,2)
WHERE marc = 1
*/
to dynamic as follows but it only updates the first row of the first
table...Any ideas
Set @Command = ' UPDATE ' + @tbl_name + '
SET marcA = substring(marcA,1,2)
WHERE marc = 1 '
Execute sp_executesql @Command
- Next message: Dan Guzman: "Re: Cursor Error..."
- Previous message: Dan Guzman: "Re: Cursor Error..."
- In reply to: Dan Guzman: "Re: Cursor Error..."
- Next in thread: Dan Guzman: "Re: Cursor Error..."
- Reply: Dan Guzman: "Re: Cursor Error..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|