Viewing 15 posts - 3,616 through 3,630 (of 6,486 total)
...What Gsquared said....:D
Actually...ALMOST what GSquared said....
SELECT
GolferID, t1.CourseID --<--t2 doesn't have courseID, so use either event or t1
, t2.Hole1 - t1.Hole1
...
April 16, 2008 at 2:18 pm
You need to use the Inserted virtual table to only affect the rows that were just inserted.
as in
[font="Courier New"]
CREATE TRIGGER timetransfer ON db.tbl1
FOR
INSERT
AS
INSERT INTO db..tbl2
SELECT dispatch_number,stop_number,e_datime,
CASE WHEN...
April 16, 2008 at 2:17 pm
GSquared (4/16/2008)
Matt, I think we cross-posted. See my prior cross-post to your cross-post of my first post. 🙂
yup! Looks like the issue is well in hand...It's one of those...
April 16, 2008 at 2:12 pm
Gsquared - you're still only converting one branch of the CASE statement.
As in -
select
case
when len(datepart(mm, getdate())) = 1
...
April 16, 2008 at 1:51 pm
So how does scorecard relate to CoursePar? The table description you posted earlier is apparently not accurate. The error implies that scorecard does NOT have a courseID field.
April 16, 2008 at 1:37 pm
I'm thinking it has to do with the fact that one branch of your case yields a Char(2), and the other, an integer. In order to remain consistent, the...
April 16, 2008 at 1:36 pm
Phil Factor also apparently customized one just for here....:
http://extras.sqlservercentral.com/prettifier/prettifier.aspx
Use the IFCodes version (that's how to format stuff for SSC).
April 16, 2008 at 1:29 pm
Try each of these statements by themselves - which one gives you the error?
select courseID from ScoreCard
or
select courseID from CoursePar
April 16, 2008 at 1:27 pm
select personID
from mytable
where
(infotype='add1' and infovalue='555')
OR (infotype='City' and infovalue='Edison')
...
April 16, 2008 at 1:07 pm
gtan018 (4/16/2008)
I copied the query statement and received the following error message.
An expression of non-boolean type specified in a context where a condition is expected,...
April 16, 2008 at 12:58 pm
Derek Dongray (4/16/2008)
Matt Miller (4/16/2008)
April 16, 2008 at 12:08 pm
Are you talking about this?
select Tot1 - Tot2 as Diff
from
(select sum(field1) Tot1 from Table1) t1
CROSS JOIN
...
April 16, 2008 at 11:18 am
rbarryyoung (4/16/2008)
Well, you can't really call it SQL "Injection" since they were actually trying to execute raw URL text as SQL. More like "SQL Suction".
Agreed - it's kind of...
April 16, 2008 at 11:13 am
SQLZ (4/16/2008)
Matt Miller (4/16/2008)
It will help substantially if you are comparing it to not having an index. however, a non-clustered index (covering) could give it a run for its...
April 16, 2008 at 10:13 am
If you like "pretty" - make sure to download the Performance Dashboard reports from MS' download site. Has a very nice databases summary report (sizes and more)
April 16, 2008 at 8:34 am
Viewing 15 posts - 3,616 through 3,630 (of 6,486 total)