Viewing 15 posts - 5,206 through 5,220 (of 6,036 total)
Not only
_____________
Code for TallyGenerator
August 2, 2006 at 8:11 pm
It's SQL Syntax error not using the CAST function but SQL Syntax error NEAR the CAST function.
Would you mind to check commas in your statement?
_____________
Code for TallyGenerator
August 2, 2006 at 7:46 pm
NO CURSORS!!!
UPDATE Table1
SET FY500 = DT.FY500 ,
FY1000 = DT.FY1000
FROM (
SELECT T1.memberID, T1.PeriodStart, T1.PeriodEnd,
case when SUM(T2.DonatedAmount) >= 500 then 1 else 0 end as FY500 ,
case when SUM(T2.DonatedAmount) >= 1000 then 1 else...
_____________
Code for TallyGenerator
August 2, 2006 at 7:19 pm
GETDATE() - 1 is actually 24 hours ago. So,it's everything happend after same time yesterday.
Any reason you shouldn't use this? You know better.
If you need start of today's day use...
_____________
Code for TallyGenerator
August 2, 2006 at 6:53 am
GETDATE() is not a date. It's current moment of time. With precision of 3ms.
">= GETDATE()" means now or in future. Everything wat happened today before now is the past and...
_____________
Code for TallyGenerator
August 2, 2006 at 6:10 am
EEEEW!
_____________
Code for TallyGenerator
August 2, 2006 at 6:03 am
To write files people actually use bcp.
_____________
Code for TallyGenerator
August 1, 2006 at 8:38 pm
Remove open bracket after "SELECT"
_____________
Code for TallyGenerator
August 1, 2006 at 7:04 am
What do you mean "proper"?
If there is a clustered index on Tabl2.Id?
Actually the structure you described repeates the structure of system tables sysobjects and syscolumns. And it takes no time...
_____________
Code for TallyGenerator
August 1, 2006 at 6:52 am
Apply index on Tabl1.id, clustered index on (Tabl2.Id + Tabl2.col2)
And think again if you really need such fat recordset.
Problem is not in LEFT JOIN, problem is in application design.
_____________
Code for TallyGenerator
August 1, 2006 at 6:36 am
What you wanted to trim?
I posted full script of your SP as it should be. With the correction from Jeff.
Is it too hard for you to Copy-Paste?
_____________
Code for TallyGenerator
August 1, 2006 at 6:31 am
July 31, 2006 at 4:58 pm
CREATE PROCEDURE [dbo].[spCreateJonesReport]
@REPORTNUMBER VARCHAR(50)
AS
INSERT INTO INET.dbo.jones_report (ReportNumber, Adjuster, RGnameLast, ClientOffice, IOofficeName, WRworkOfficeID, WRid, Subject, FilterDate, ClaimNumber, VideoAmount, CaseCost, Results, WRinjury, WRnotes)
SELECT (@REPORTNUMBER, Adjuster, RGnameLast, ClientOffice, IOofficeName,...
_____________
Code for TallyGenerator
July 31, 2006 at 4:10 pm
F**k!!!
Stupid forum!!!
I spent half an hour writing a post about hungarian notation in TSQL and this thing wiped it out!
Sorry, have not time to repeat this exersise. The main idea...
_____________
Code for TallyGenerator
July 31, 2006 at 3:57 pm
The only point I see for disabling IDENTITY is to perform the favourite exersise of most of developers - "row by agonising row". Except those ones, of course, who is...
_____________
Code for TallyGenerator
July 31, 2006 at 5:54 am
Viewing 15 posts - 5,206 through 5,220 (of 6,036 total)