Viewing 15 posts - 676 through 690 (of 5,356 total)
Oh, you've already found out while I was typing
April 4, 2005 at 7:22 am
More than one way to skin that cat. Personally I prefer
IF OBJECT_ID('authors') IS NOT NULL
PRINT 'Hello World'
However, Chris and I were focusing on your incorrect use of OBJECTPROPERTY. This should...
April 4, 2005 at 7:21 am
and OBJECTPROPERTY(id, 'Customers') = 1)
Which OBJECTPROPERTY are you interested in? "Customers" ?
April 4, 2005 at 7:07 am
You should do as Antares already suggeted. And once you're done, define a proper PRIMARY KEY on that table, so that you don't run into the same issue again one...
April 4, 2005 at 1:46 am
As Brian already said, one might be inclined to think that this is a test question, you should really answer yourself. It will yield you nothing, if you can provide...
April 4, 2005 at 1:42 am
Can you offer any reason why this column shouldn't even exist, other than it can be calculated from 2 others on demand (if reporting required it)?
Isn't that reason enough?
April 4, 2005 at 1:25 am
Let me see if I have what it does straight: datediff returns the integer number of days since "day 0" for the smalldatetime value in question. dateadd takes that integer,...
April 4, 2005 at 1:16 am
Don't know if it helps in your case, but here goes:
http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/ss2kidbp.mspx
Btw, looks like perfect weather for a ride.
April 1, 2005 at 7:21 am
What are you trying to catch with
if @@rowcount > 0 begin
in the UPDATE part? @@ROWCOUNT will take the value of the last statement executed, so in your case
select @loc_id =...
April 1, 2005 at 7:08 am
Geeh, I should have known before...
Well, first I would consider breaking this up into three separate triggers. Not only does this encapsulate the logic a bit more but it also...
April 1, 2005 at 6:01 am
See if this helps:
http://www.umachandar.com/technical/SQL6x70Scripts/Main47.htm
April 1, 2005 at 3:59 am
CAST(dateadd (d, 0, datediff(d, 0, getdate())) AS SMALLDATETIME)
This CAST is not needed I think, since you've already set the time to midnight and are only interested in the date stuff...
April 1, 2005 at 1:12 am
I don't think you should place this into your DDL. This information becomes only interesting when you request it and then it is very easy to calculate this in a query....
April 1, 2005 at 12:51 am
I'll keep my fingers crossed!
I don't know what the situation is like over there, but here at times I'm inclined to think that it's not a matter of course to...
April 1, 2005 at 12:41 am
Viewing 15 posts - 676 through 690 (of 5,356 total)