Viewing 15 posts - 4,666 through 4,680 (of 5,103 total)
make sure to use the "on error" on your activex scripts too
February 26, 2004 at 1:17 pm
Some systems I have "inherited" had multiple Colums primary keys (4-5) and I was task to speed some of the code! One of the shortest solutions to get it going...
February 26, 2004 at 1:10 pm
declare @t table (
tid int,
tname varchar(5)
)
INSERT INTO @T (tid, tname) VALUES (1,'HI')
INSERT INTO @T (tid, tname) VALUES (2,'Ho')
INSERT INTO @T (tid, tname) VALUES (3,'HI')
INSERT INTO @T (tid, tname) VALUES (4,'Ha')
INSERT...
February 26, 2004 at 12:57 pm
Ok a primary key(pk) should be INVARIABLE with time. Sometimes it happens that what you thought it could be a good pk candidate is not anymore and you may ended...
February 26, 2004 at 12:39 pm
thanks god those deals exist otherwise I would have been kicked out of my job
February 26, 2004 at 12:25 pm
I said Nested Triggers I should have said Recursive Triggers which by default is disabled
but even if...
February 26, 2004 at 12:22 pm
Or:
Declare @period int
SELECT @period = 3
Select (Case
When @period = 1 then Acnt01
When @period = 2 then Acnt02
When @period = 3 then Acnt03
When @period = 4 then Acnt04
When @period =...
February 26, 2004 at 12:03 pm
On your post the last line is :
...price' execute (@query1+@query2+@query3+Query4)
shouldn't Query4 be @query4?
February 26, 2004 at 11:48 am
I am not sure of your table structure or relationships there but this is a shot:
SELECT DISTINCT
dbo.MySupportFiles.FileID,
February 26, 2004 at 11:44 am
try:
INSERT INTO Months(user_id, last_name,first_name, Jan, Feb, Mar,...)
SELECT user_id, last_name, first_name
, SUM(CASE WHEN MONTH(workdate) = 1 THEN bhrs ELSE 0 END ) as Jan
, SUM(CASE WHEN MONTH(workdate) = 2 THEN bhrs...
February 26, 2004 at 11:36 am
It is a tough decision to make when there have to be Multiple Groups with that account. For some reason it does not happen very often when you want the...
February 26, 2004 at 10:32 am
I am assuming from your post TableB RecID is primary Key on that table
UPDATE TableA Set ValueToBeReplaced = B.SomeValue
From TableB B
Where TableA.RecId = B.RecID
If you are possitive that there are the...
February 26, 2004 at 10:24 am
The information you are looking for is in the syscomments table.
There are several scripts on this site that can get you started
For example try this one and modifiy it just for...
February 26, 2004 at 10:15 am
on sysdatabases the RECOVERY MODEL is a combination of the status Field
values 4 and 8 !!!
February 26, 2004 at 10:08 am
Viewing 15 posts - 4,666 through 4,680 (of 5,103 total)