Viewing 15 posts - 31 through 45 (of 119 total)
ok solved it
someone suggested this on another forum:-
AND @ulang <> 'al' AND lang.langCode = @ulang
and ((@uid=0 AND lc.string LIKE '%' + @STR + '%') or (@uid=1 AND lc.string...
July 2, 2008 at 7:12 am
Thanks Grant
I tried this
WHERE (p.fk_projectId = @pid)
AND lang.langcode =
CASE
WHEN @ulang <> 'al' THEN @ulang
END
AND lc.locstring =
CASE
WHEN @uid = 0 THEN LIKE...
July 2, 2008 at 6:54 am
Hi
Basically I already thougth of that solution, ie 2 inserts, however I thought there was something more elegant, since I am quite new to SQL
However thanks for the help
Johann
June 24, 2008 at 3:30 am
Hi Matt,
I tried your code, however the resourceID is NULL
Also, if I am inserting for example 1200 rows, the @resourceId will always be the same number no? Ie MAX(resourceID)...
June 24, 2008 at 2:56 am
this is my attempt at this problem
DECLARE @resourceId int
SET @resourceId = (SELECT MAX(resourceId) AS resourceID from Resources)
INSERT INTO #tempResources (resourceId, FileName, projectid)
@resourceId+1, SELECT FileName, projectid from #tempOld
WHERE projectid =...
June 24, 2008 at 2:13 am
Hi Gail
Sorry for not getting back to you. I was assigned on another urgent task, and today I am supposed to be back on these script, and will try...
May 26, 2008 at 3:38 am
Gail
on the same bases, how do I do an insert if a filename changes.
For example I have a list of records, lets say 100000, and every 1000 rows, the filename...
May 20, 2008 at 10:33 am
Hi Lynn
your code is cool too but is taking 20 seconds, while gail's is taking just 12 seconds 🙂
May 20, 2008 at 9:40 am
Hi Gail
Yeah the order is starting from 1, its something in my ordering that is not working
Thanks
Regards
Johann
May 20, 2008 at 8:57 am
Hi gail
Sorry was in a meeting
Let me check ok, will let you know soon
May 20, 2008 at 8:53 am
Gail
Another quick question, how do I reset TheOrder to 1 again. Because when I run the script more than once, its starting from for exampl 953
Thanks
Johann
May 20, 2008 at 7:02 am
Hi gail
Thanks a lot for the explanation, and Sandy for trying 🙂
I will read more on this ROW_NUMBER function, since it seems pretty cool!
Thanks all for helping!
Johann
May 20, 2008 at 6:49 am
Viewing 15 posts - 31 through 45 (of 119 total)