Viewing 15 posts - 406 through 420 (of 529 total)
Here is a solution, but you'll have to fiddle a bit with the exact matching criteria. This query updates all values larger than 1000 with their counterparts smaller than 1000...
November 3, 2002 at 4:21 am
Alternative solution (haven't tried it, but should work).
1. Keep the NOT NULL RI Foreign Key DebitThisAccount column
2. Put a 'INSTEAD OF' INSERT Trigger that does exactly what you want. In...
October 29, 2002 at 2:41 pm
OK, so my first edit was to use the ISNULL function. Stupid to not do it the first time round, if I'm mentioning it in the post itself
October 29, 2002 at 2:18 pm
First for a stupid, off-topic remark. You might consider replacing the CASE construct in your SELECT clause with the ISNULL function. IMHO easier to read and maintain, and achieves the...
October 29, 2002 at 2:14 pm
Don't have a lot to say about this subject, except for the following.
1. Named pipes requires you to have a valid NT login on the database server. Otherwise, the network...
October 28, 2002 at 9:23 am
I did not read through all of your table definition stuff, so I might be missing something. But I don't see a WHERE clause in the delete statement inside your...
October 26, 2002 at 4:59 am
Is it possible that the table contents has changed since you last compiled the SP? If so (or in any case), try recompiling your SP.
sp_recompile 'your_proc_name'
October 24, 2002 at 10:27 am
That depends on what you want to do exactly. The easiest and most transparent way of achieving this is by setting a trigger on the second table that is fired...
October 23, 2002 at 8:33 am
The only way to achieve this I know of, is using dynamic SQL.
It would turn out something like :
DECLARE @strSql VARCHAR(1000)
SET @strSql = "SELECT SUM(...
October 22, 2002 at 5:37 am
Scorpion_66,
Glad to learn something new. That's why I visit these pages .
Anyway, this looked like the simplest solution and I have to admit that I did not...
October 22, 2002 at 2:22 am
There is no real fundamental reason that your insert won't work. The problem is your data (or your query ).
Let me be more specific. The way your...
October 21, 2002 at 3:19 pm
From BOL :
Execute permissions default to the sysadmin fixed server role, and the db_owner and db_ddladmin fixed database roles, and the object owner.
October 21, 2002 at 3:41 am
I'm afraid I have to disagree with the post from well0549 to some extent.
You'll never catch all possible situations using any automated algorithm, but if you could convert most of...
October 18, 2002 at 8:19 am
Could this do the trick?
SELECT
c.company
, c.contact
, h.historyreference
FROM
contacts c INNER JOIN
(SELECT contactid
, MAX(histordate) AS LastDate
FROM history
GROUP...
October 18, 2002 at 1:46 am
For the Action, check the tutorial that came with Analysis Services. Part 3 (Advanced Analysis) Create an action.
Open a cube in the cube editor and execute 'New Action'. You will...
October 17, 2002 at 5:52 am
Viewing 15 posts - 406 through 420 (of 529 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy