Viewing 15 posts - 16 through 30 (of 36 total)
Is there an "On Error Resume Next" command? I am creating these procedures that bomb out when they encounter an error and I need to do some clean up...
April 30, 2003 at 6:46 am
I just ran your code and it worked for me but I have had the same types of problems when you do things with enterprise manager. Try building the...
April 25, 2003 at 6:17 am
I believe that everything (especially in SQL) is an option. Write and re-write the same procedure as many ways as you can think of and test it for speed....
April 24, 2003 at 6:05 am
The scripting objects utility in Enterprise Manager? Yea, that was our last resort, we just wanted to attempt it this way. You know, something different that might come...
April 3, 2003 at 8:13 am
Out of curiosity, why do you turn nocount off again before the select statement. I have been using the SET NOCOUNT ON in all my procedures but I never...
April 1, 2003 at 3:37 pm
Try it after the table name.
USE NORTHWIND
SELECT EmployeeID
FROM Employees WITH (NOLOCK)
WHERE EMPLOYEEID = 4
March 27, 2003 at 5:08 pm
The value '03/03/2003' is interpreted as midnight. So if you are passing this into a stored procedure use
when_dt >= @Date and when_dt < @Date + 1
(or use...
March 26, 2003 at 1:51 pm
Have you tried:
Select ColumnA, ColumnB from TableA where ColumnB NOT IN (Select ColumnC from TableB where ColumnD = "Value1")
and ColumnA = "Value2"
March 11, 2003 at 12:07 pm
When you put a leading zero on the number it isn't a number anymore. Here is what I do.
DECLARE @YourNumber INTEGER
SET @YourNumber = 1
SELECT RIGHT('00' + CONVERT(VARCHAR, @YourNumber), 2)
...
March 10, 2003 at 12:20 pm
Out of personal preference I try not to EVER write cursors unless they are absolutely necessary. I read somewhere about how SQL is a set based language and you...
March 6, 2003 at 8:56 am
Guard, you used the set and select both in your loop. Not sure if it makes too much of a difference but I tried this.
declare @iLoop integer
declare @stTime datetime
SELECT...
February 27, 2003 at 9:47 am
Ok, it is fixed. Our DBA killed the instance of the Sybase Engine running on the machine and it started back up when he tried to connect again allowing...
December 6, 2002 at 7:39 am
What I don't understand is that it was working for a while. Enough time for me to build all these procedures to feed it and then right before it...
December 6, 2002 at 6:44 am
Viewing 15 posts - 16 through 30 (of 36 total)