Viewing 15 posts - 6,076 through 6,090 (of 7,187 total)
But you said that wasn't the actual code you're running. Why does Piotr's example not work for you?
John
March 14, 2008 at 8:42 am
Yes, something like this:
SELECT SPECIFIC_SCHEMA + '.' + SPECIFIC_NAME AS ProcName, LAST_ALTERED
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_TYPE = 'PROCEDURE'
AND LAST_ALTERED > GETDATE() - 7
John
March 14, 2008 at 8:28 am
Debbie
A wrapper procedure is just a procedure that calls other procedures. Now, what is it exactly that you're trying to do?
John
March 14, 2008 at 7:50 am
Is your server involved in replication or log shipping? If not, it sounds as if you have 10GB of uncommitted transaction(s). Try using DBCC OPENTRAN and sp_who2 to...
March 14, 2008 at 7:46 am
Do you have users using the database at midnight? If not, it's probably a scheduled job that's doing it. If you do have users on at that time,...
March 14, 2008 at 7:32 am
rbarryyoung (3/14/2008)[hr
You have to double them up. It is confusing at first, but you get used to it soon enough.
Or you can do what somebody suggested on one of...
March 14, 2008 at 7:15 am
OK, how about putting the result set of the function into a temp table:
SELECT dbo.fn_Find_Security_Details(Sedol_Number, AsAt)
INTO #MyTempTable
FROM #tmpUsed
and then joining to that instead?
John
March 14, 2008 at 6:45 am
Jamie
Will this work?
...FROM #tmpUsed t INNER JOIN (
SELECT Bid, Price_date, sedol_number
FROM dbo.fn_Find_Security_Details(Sedol_Number, AsAt)
) f
ON f.sedol_number=t.sedol_number
John
March 14, 2008 at 5:54 am
Jeff Moden (3/13/2008)
Of course, if the table exists and you're only selecting one row, why do you need a view to begin with?
As I mentioned, that's an extreme example. ...
March 13, 2008 at 9:55 am
Ah. Please take care to post in the correct forum. There are no CTEs in SQL Server 2000. Would you be able to use a subquery instead?...
March 13, 2008 at 7:59 am
Jeff Moden (3/13/2008)
March 13, 2008 at 7:10 am
Kiran
You should read the topic "Cardinality estimation" in Books Online. If there's anything you don't understand, or if it doesn't cover everything you need to know, please post again....
March 13, 2008 at 5:39 am
Does this work where the foreign key constraint consists of more than one column?
John
March 4, 2008 at 2:09 am
What have you tried so far? It would also help if you were to post the DDL for your table(s) and some sample data.
Thanks
John
March 3, 2008 at 9:19 am
Viewing 15 posts - 6,076 through 6,090 (of 7,187 total)