Viewing 15 posts - 91 through 105 (of 128 total)
IF you are NOT running this SQL from the server holding the SQL Database, it doesn't know which Server to connect to.
If you ARE running this from the server, my comment...
September 9, 2005 at 1:30 pm
This is a known problem, involving a UDF in the join clause of a sub-query.
http://support.microsoft.com/default.aspx?scid=kb;en-us;819264
August 29, 2005 at 10:39 am
Thanks for your response.
I searched msdn, but couldn't find anything which sounded like this, except for 321879, which CAN'T be the cause, because none of our SQL Servers have shut done...
August 24, 2005 at 11:03 am
Look up ISNULL() in BOL.
Use it inline, instead of updating the base tables.
August 23, 2005 at 9:10 am
You usually don't want to use FLOOR, as this causes a conversion to float, which is an APPROXIMATE number. Stick with human-style math, like the ROUND with truncation mentioned in...
August 11, 2005 at 9:54 am
SELECT DISTINCT QuoteID, Country
FROM dbo.tblSchedule
GROUP BY QuoteID, Country
You don't need the DISTINCT, since you are using GROUP BY.
August 3, 2005 at 10:24 am
You appear to be missing an ending parenthesis for the EXISTS,
and pif_date is not compared to anything.
IF EXISTS (SELECT pif_mem_no FROM preneed.dbo.tbl_new_pif_plans
WHERE pif_processed IS NULL AND pif_date<DATEADD(WW,-2,GETDATE()))
EXEC master..xp_sendmail
July 8, 2005 at 3:24 pm
Date "0" for MS SQL Server is Jan. 1, 1900,
NOT Dec. 30, 1899.
June 6, 2005 at 8:10 am
There is NO subquery in the Update statement you posted.
Did you notice that the error mentioned a UserDefinedFunction
"deficit_year_calc?". The subquery is probably in the UDF, which
may be in a...
May 19, 2005 at 1:28 pm
A late thought...
The function idea has one "hole" - if an empty or null varchar is passed.
imho, use:
RETURN(SELECT ISNULL((DATALENGTH(@String) - DATALENGTH(REPLACE(@String, @Search, '')))
/ NULLIF(DATALENGTH(@Search), 0), 0))
I've been "bit"...
April 15, 2005 at 7:01 pm
The NOCHECK option was NOT used.
Any other thoughts?
Note the difference in results, depending on which server was used to run the SELECT.
March 30, 2005 at 8:15 am
You should also recognize that a Trigger can be altered, disabled, or dropped by any person with sufficient permissions. Log-reading applications can solve some of this, but Logs can also be...
March 24, 2005 at 8:04 am
Another little "gotcha."
The abbreviation "Sr" may mean either "Senior" or "Sister."
For "Sister", it is usually given before the name,
while "Senior" usually trails the rest or the name.
Also, names like "Mary...
March 23, 2005 at 12:06 pm
I get an 87% / 13% load... and 85% of the load of the first query goes for the count(*). The strange thing is that when I do top 500...
March 3, 2005 at 10:41 am
Viewing 15 posts - 91 through 105 (of 128 total)