Viewing 15 posts - 13,246 through 13,260 (of 14,953 total)
This is how I would write the original query:
DECLARE @HomeID INT
SET @HomeID = 2
SELECT utbHome.*, finfo.FileID, finfo.Name as 'FileName'
FROM utbHome
LEFT JOIN utbAmenities
ON utbHome.HomeID = utbAmenities.HomeID
LEFT JOIN
(SELECT HomeID,...
June 20, 2008 at 8:31 am
I'm assuming what you mean is a text file with rows and columns of data in it. Is that correct? (Some examples would be comma-delimited data, or fixed-width...
June 20, 2008 at 8:24 am
Is there a date or other sequence you can use for ordering this data? If so, then it becomes a relatively easy task for a running total calculation.
June 20, 2008 at 8:21 am
It would be easy enough to set up a proc that did something like "select 1 from database.dbo.table" for each database on your server. Have it send an e-mail...
June 20, 2008 at 8:11 am
Well, I have two choices for entering the building, the front door, or the other front door. Either way, all I usually get on the way to my desk...
June 20, 2008 at 8:07 am
For anyone doing either role, I'd say the zeroeth skill is the ability to wander around in Management Studio/QA+EM, without getting lost.
For an admin, I'd say the first skill is...
June 20, 2008 at 8:02 am
One of the major complaints I get from people on a relatively regular basis, is that I'm "in The Zone" too far and too often.
Any time I find something strongly...
June 20, 2008 at 7:38 am
;with Alloys (A) as
(select alloy
from dbo.BOM
where material = 'xyz')
select Alloy, Material
from dbo.BOM
inner join Alloys
on alloy = a
That's SQL 2005. If you need an SQL 2000 version, move the Alloys...
June 19, 2008 at 2:00 pm
If it were T-SQL, this part:
Select distinct folderno from FOLDERS where CLIENTPONO=?nCLIENTPO?
Would be more like:
Select distinct folderno from FOLDERS where CLIENTPONO like '%' + nCLIENTPO + '%'
No clue if that...
June 19, 2008 at 1:54 pm
Jeff, he's not looking to parse out the whole string. Just grab the second word, and everything else.
String parser was my first thought too, but then I read it...
June 19, 2008 at 1:49 pm
First, why update the "value" column? It's already equal to the thing you're updating it to.
Second, you have variables in the proc with different names than when you declared...
June 19, 2008 at 1:47 pm
Jeff Moden (6/19/2008)
June 19, 2008 at 1:45 pm
Indianrock (6/19/2008)
June 19, 2008 at 1:42 pm
Viewing 15 posts - 13,246 through 13,260 (of 14,953 total)