Viewing 15 posts - 1,351 through 1,365 (of 1,472 total)
Thanks for the creation scripts. Is there any reason you can't simply do this?
[font="Courier New"]SELECT DISTINCT *
FROM ptAppointments P
INNER JOIN coApptResources C ON LTRIM(RTRIM(REPLACE(REPLACE(REPLACE(P.Location,'-SOUTH',''),'-NORTH',''),'CHRISTOPHER J ',''))) =...
October 17, 2008 at 9:05 am
What issues are you running into in your attempt that you need help with?
declare @C char(2),
@d char(2)
set @C = '01'
set @d = '10'
October 17, 2008 at 8:50 am
You are trying to execute a dynamic sql statement with the variable actually in the statement. Usually, when you use dynamic sql you'd do something like
SET @sql...
October 17, 2008 at 8:31 am
SQL 2000 Version:
[font="Courier New"]SELECT I.*, V.*
FROM Items I
INNER JOIN Versions V ON I.Ref = V.Item_Ref
INNER JOIN (SELECT Item_Ref, MAX(Ref) Ref FROM Versions GROUP BY Item_Ref) V2 ON...
October 17, 2008 at 7:36 am
Yes, but he also wants to replace B100 with B98, so as long as he does that replace first, he should be fine in that particular case. However, it...
October 17, 2008 at 6:39 am
There definitely wouldn't be any manual typing in. It would all be check boxes or drop downs. However, because it's on the internet, I'm not necessarily happy with...
October 16, 2008 at 10:15 pm
Jeff Moden (10/16/2008)
Garadin (10/15/2008)
October 16, 2008 at 9:59 pm
Assuming you are using linked servers, you should just be able to replace:
Update Mytable
Set Myfield = MyData
FROM Mytable
WHERE MyCriteria = Something
With
Update Server2.Database2.dbo.MyTable
Set Myfield = MyData
FROM Server2.Database2.dbo.MyTable
WHERE MyCriteria = Something
You don't...
October 16, 2008 at 3:44 pm
We noticed something similar in attempting to do cross server queries with views. I believe the difference comes in because doing it one way will pull the entire dataset...
October 16, 2008 at 1:33 pm
Yep, those were the answers I was expecting. The above query should work fine.
October 16, 2008 at 1:30 pm
Just saw your edit. Try this one:
[font="Courier New"]DECLARE @Language VARCHAR(10)
SET @Language = 'JP'
SELECT DISTINCT T1.ID, COALESCE(T2.Name, T3.Name) Name, COALESCE(T2.Description, T3.Description) Description,
COALESCE(T2.Language, T3.Language) Language
FROM #Table1 T1
LEFT JOIN...
October 16, 2008 at 12:43 pm
Yeah, that changes things a bit. A few questions.
You supply a language and return a row for each ID, attempting to grab the one for that language. If...
October 16, 2008 at 12:29 pm
That makes more sense. Thank you for the table definitions / inserts, it makes things much easier. (Although in the future, try to make sure they work 😉 )
[font="Courier...
October 16, 2008 at 12:09 pm
PSExec ? (Part of PSTools) That's kinda a shot in the dark, I haven't tried it, as I don't do much with DTS.
October 16, 2008 at 11:57 am
You can handle it in many ways.
A few are:
Passing in the date to the table along with the values being updated from ASP, and updating it...
October 16, 2008 at 11:55 am
Viewing 15 posts - 1,351 through 1,365 (of 1,472 total)