Viewing 15 posts - 19,051 through 19,065 (of 26,484 total)
I don't think the problem is your temporary table, look at your error message again:
Msg 4701, Level 16, State 1, Procedure SP_REFRESH_CHEMPAX_COSTS, Line 30
Cannot find the object "CHEMPAX_COSTS" because it...
August 24, 2009 at 12:56 pm
Looks like he's been on. Changed his name to Express12. Like that will keep him off peoples radar! 😉
August 24, 2009 at 12:46 pm
virgilrucsandescu (8/24/2009)
Is there any other (better) way of optimizing a
SELECT f1 FROM t1 WHERE f1 NOT IN (SELECT f2 FROM t2)
except the classical :
SELECT f1 FROM t1 WHERE NOT...
August 24, 2009 at 12:41 pm
Not sure what yhe problem is. What would help is the DDL for the tables (CREATE TABLE statements), sample data for the tables, and expected results based on the...
August 24, 2009 at 12:39 pm
GSquared (8/24/2009)
Lynn Pettis (8/22/2009)
GilaMonster (8/22/2009)
Lynn Pettis (8/22/2009)
Lynn tries to work with everyone. 😉Aren't there a few that have made even your personal black-list?
You are right, to a point. ...
August 24, 2009 at 12:36 pm
Views are extremely useful. What it means is that instead of doing
SELECT
Col1,
Col2
FROM
dbo.MyView;
where the returned result...
August 24, 2009 at 12:24 pm
Additional Info from BOL (Books Online) with regard to CREATE VIEW:
Note:
The ORDER BY clause is used only to determine the rows that are returned by the TOP clause...
August 24, 2009 at 11:28 am
Cross database queries, you will need to grant them access to underlying tables in the other database.
I don't think granting just public access to the other database will work. ...
August 24, 2009 at 11:25 am
jdhouse (8/24/2009)
AS
SELECT TOP (100) PERCENT itemId, messageTypeId, sequence, description, required
FROM dbo.messageItem
WHERE (messageTypeId...
August 24, 2009 at 11:22 am
Bob Hovious (8/24/2009)
In a word: Yes.
Be sure to test. I vaguely remember running into this and going across databases I had to grant access to the tables in...
August 24, 2009 at 11:15 am
I understand that what you wrote was an illistration of how IN works. My point is if you actually write a WHERE clause like that, you would use OR...
August 24, 2009 at 11:12 am
rambilla4 (8/24/2009)
Selected row details:
Date8/24/2009 8:45:00 AM
LogJob History (LSBackup_Mydb)
Step ID1
Serversqlvs\ins1
Job NameLSBackup_Mydb
Step NameLog shipping backup log job step.
Duration00:00:00
Sql Severity0
Sql Message ID0
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted0
Message
2009-08-24...
August 24, 2009 at 9:54 am
Not disputing the NOT IN not working if nulls exist in the data.
I'm disputing the explicit code that has been shown. First, whoever wrote should not have used somecol...
August 24, 2009 at 9:51 am
Andy DBA (8/24/2009)
rja.carnegie (8/24/2009)
Andy DBA (8/18/2009)
For example:
WHERE somecol NOT IN (1,2, NULL)
is equivalent to
WHERE NOT (somecol = 1 OR somecol = 2 OR somecol = NULL)
Wait, isn't that...
August 24, 2009 at 8:24 am
arup_kc (8/24/2009)
August 24, 2009 at 8:21 am
Viewing 15 posts - 19,051 through 19,065 (of 26,484 total)