Viewing 15 posts - 5,686 through 5,700 (of 6,036 total)
select t1.col
from table t1
inner join tabe t2 on t1.col = t2.col - 1
January 8, 2006 at 3:24 pm
Can you describe what query suppose to return in plain English?
December 21, 2005 at 7:19 pm
Select C.Name, COUNT(O1.OrderId), COUNT(O2.OrderId)
FROM Customer C
LEFT JOIN Order O1 on C.ID = O1.CustomerId and O1.OrderDate between ... and ...
LEFT JOIN Order O2 on C.ID = O2.CustomerId and O2.OrderDate between ......
December 21, 2005 at 7:05 pm
Question for tomorrow:
What was wrong with that question?
No query.
December 21, 2005 at 4:07 am
Generate triggers on fly - not really the best idea.
And how you gonna control datatype matching?
You better create SP to create audit triggers for listed tables. This SP can analyse...
December 15, 2005 at 4:43 pm
From BOL:
If you must test for updates that affect columns other than the first 8 columns in a table, you must...
December 15, 2005 at 3:24 pm
Seems you're looking into wrong direction.
Check what your SQL Server is doing. It must be some bad development: missing indexes, full table update instead of several rows update, cursors combined...
December 15, 2005 at 2:49 pm
Function MUST NOT modify anything in database.
It just to display results calculated from current state and/or supplied values.
What you are trying to achieve must be done in SP or trigger.
December 14, 2005 at 2:07 pm
Are you watching execution plan?
December 14, 2005 at 1:56 pm
Try to find out what's causing such a big number of records in log file.
Type in Query Analizer EXECUTE <your SP name here>
and press CTRL+L.
It will show you estimated execution...
December 13, 2005 at 7:27 pm
Which of the prices should Price1, which Price2, etc.?
December 13, 2005 at 3:35 pm
That's nice telephone company!
Can you post its name? I gonna use it.
Imagine: you've made a lot of inernational calls, but you don't need to pay their bills. They will disconnect...
December 13, 2005 at 4:13 am
But are you ready to declare:
"Don't ever use function Object_Id()"
based on this test?
That's what Carl is trying to do.
December 12, 2005 at 7:48 pm
You are clearly wrong about UDF and parallelism.
Here was a test where I compared using of 4 CPU and single CPU servers by UDF and inline SQL .
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=238981&p=3
December 12, 2005 at 6:49 pm
I take your point.
I built another test:
CREATE TABLE #Names (OName sysname COLLATE SQL_Latin1_General_CP1_CI_AS)
INSERT INTO #Names
select o.name from sysobjects o, sysobjects o1
-- (839056 row(s) affected)
SELECT...
December 12, 2005 at 5:54 pm
Viewing 15 posts - 5,686 through 5,700 (of 6,036 total)