Viewing 15 posts - 25,471 through 25,485 (of 26,487 total)
>> IF Object_ID('tempdb..#fred') IS NOT NULL
This is where I will agree with you Sergiy. Using the OBJECT_ID system function is better than using the system table directly. I will...
September 20, 2007 at 5:41 am
Sergiy,
I am not going to debate the issue. There is a fix to the problem encountered by the OP, and it is to test for the existence of the table...
September 19, 2007 at 9:44 pm
Sergiy,
No need. I put a PRINT statement just before the select, ALTERed the proc (which ran successfully), then executed the proc, and the print statement worked THEN the proc failed. ...
September 19, 2007 at 9:04 pm
For professional development, I put my money on SQL Server 2005 Developer Edition. Very inexpensive, very powerful, and worth the money. You get the x32 bit version, the x64 bit...
September 19, 2007 at 12:44 pm
The Express version is also free, where as the developer edition costs $50.00 (USD). If you are using it to learn and develop skills, spend the $50.oo and order the...
September 19, 2007 at 9:14 am
I think I found the limit to be 1,000,000 bytes. That was the error I received while trying to send the results of a query to my manager using send_dbmail.
September 19, 2007 at 7:59 am
Actually, the stored procedure is being executed, it fails because the table does not exist. Here is what I did to get your code to work:
ALTER PROCEDURE dbo.philproc
as
begin
DECLARE @error...
September 19, 2007 at 7:35 am
It boils down to this, what shrinks also has to grow. If your database is constantly growing and shrinking, it impacts system performance. This may not be an issue for...
September 19, 2007 at 7:26 am
Have you searched this site? I think there may be a couple of threads that discuss this. Let me know if you find anything, as I need to look through...
September 19, 2007 at 7:20 am
This is as expected actually. A view is a virtual table. In SQL 2000, the order by declared in a view definition was honored, however, SQL does not guarantee order...
September 19, 2007 at 7:15 am
Just another way to do it. One benefit, you don't have to know a date in the past that falls on the day you want to start your week on...
September 18, 2007 at 12:04 pm
I realized after posting I could remove the modulo calculation (%). This produces the same result:
declare @saveDateFirst tinyint,
@curDate datetime
September 18, 2007 at 8:57 am
This will also work:
declare
@saveDateFirst tinyint,
@curDate datetime,
@LowerBound datetime,
@UpperBound
September 18, 2007 at 8:46 am
Viewing 15 posts - 25,471 through 25,485 (of 26,487 total)