Viewing 15 posts - 121 through 135 (of 595 total)
quote:
...I would say that it all depends on the data you have. Personally I'm still using temp tables for a lot of...
August 11, 2003 at 11:27 am
Set up a SQL Profiler trace tracking stored procedure statement completion. The trace can be run for a time period and stored to file or a table...more in BOL.
...
August 11, 2003 at 11:21 am
Yep, my mistake. Looks liek ON CASCADE DELETE is the only elegant option. My apologies.
August 11, 2003 at 11:06 am
Why do you need the EmpName in your first procedure? It's already in table theEmp. It's just redundant data at this point...
--
The procedure doesn't quite make sense...You are...
August 11, 2003 at 9:27 am
Make sure the server authentication is not Windows Only. Right click on the SQL Server in Enterprise Manager, select Properties. On the Security tab, check that Authentication is...
August 11, 2003 at 9:04 am
Agree. Don't use NCHAR or NVARCHAR unless you are absolutely positive that you require a wide character set. Many folks often are misguided into thinking that characters that...
August 11, 2003 at 8:50 am
CREATE PROC dbo.GetBasedOnDateRange
@Start SMALLDATETIME
, @End SMALLDATETIME
AS
BEGIN
--
SELECT FieldList, SUM(YourValueField)
FROM TableList
WHERE YourDateField BETWEEN @Start AND @End
GROUP BY FieldList
--
END
GO
Hope this gets you started...
August 11, 2003 at 6:18 am
Write a trigger which deletes all rows which match on the pid. The corresponding deletes will recursively trigger more deletes, etc...
CREATE TRIGGER dbo.MyTable_OnDelete
ON MyTable
FOR DELETE
AS
DELETE...
August 8, 2003 at 12:20 pm
Big topic, but to get you started...
Basically, the tools you will need are a few variables to store the values you want to return in you error handler, a lookup...
August 8, 2003 at 11:53 am
But you have a WHERE rownum < 2 in your Oracle statement and no such similar filter in your SQL statement. Either put a JOIN to a MAX(som_time_stamp) derived...
August 1, 2003 at 1:53 pm
quote:
I came up with the SQL statement like this but not returning exactly what is expected:
August 1, 2003 at 1:31 pm
--...
AND EXISTS
(SELECT *
FROM PSSL_T_REVISION_HISTORY ST1,
PSSL_T_RESERVE_ENTITY ST11
WHERE ST1.PROJECT_ID =...
August 1, 2003 at 11:25 am
quote:
1. I originally wrote it as a single select. Unfortunately, the view has nolocks so SQL Server would put together the view...
July 31, 2003 at 11:56 am
quote:
In addition, I would like to mention the LIMIT clause.
Actually, I...
July 31, 2003 at 11:36 am
For those of you who saw my previous posting, which showed that the CAST method beat the DATEDIFF method, sorry, I deleted the post once I realized that the CAST...
July 31, 2003 at 9:27 am
Viewing 15 posts - 121 through 135 (of 595 total)