Viewing 15 posts - 2,671 through 2,685 (of 3,543 total)
Sorry, errors in my post, should be
update a
set a.b = ah.b,
a.seq = m.maxseq,
a.c = ah.c,
a.d = ah.d
from tablea a
inner join (select id, max([seq]) as...
May 4, 2004 at 9:39 am
Difficult to answer due to awkward table names but is this what your're after
update a
set a.a = b.a, a.b = b.b, a.c = b.c
from (select max(seq) as [seq]...
May 4, 2004 at 7:34 am
As long as the account can login into sql and as you stated has execute permissions on the proc then it should work. The best way is to try it...
May 4, 2004 at 7:17 am
Use trusted whenever possible, most secure.
Never use sa (even if password hidden), if you have to use sql login create specific login with minimum access.
May 4, 2004 at 7:01 am
![]() | is a left outer join faster than NOT EXISTS then ? |
Generally yes but not always. I depends on...
May 4, 2004 at 6:51 am
I think it is a bug (sorry feature ) in SQL7. It works OK in SQL2K.
The only way I found to get it to...
April 30, 2004 at 7:41 am
Paul is correct, this sort of formatting is normally done in the user app.
However if you want to right align with leading spaces you can use
SELECT STR(12,10,0)
which will produce a...
April 29, 2004 at 7:01 am
If you want to do it for all tables in a database you could use
sp_msforeachtable
April 29, 2004 at 6:53 am
GRANT ALL TO PUBLIC
grants statement access to public, where statement is CREATE DATABASE,CREATE DEFAULT etc. So you have allowed a member of public to create databases !
To grant at...
April 29, 2004 at 6:52 am
The only time I have seen it is when attempting INSERT / UPDATE via OPENQUERY
April 29, 2004 at 6:40 am
Here's a sample that may help
create table results ([ID] int, result text)
create table comments ([ID] int, CID int, CDate datetime, comment text)
insert into results values (123,'')
insert into...
April 28, 2004 at 7:52 am
Difficult to give exact answer without procedure listing but this would work.
declare @EchVPoin as decimal(18,2)
declare @noofVisits as int
set @noofVisits = 2
set @EchVPoin = 1.0 / @noofVisits
Update RMCPL_DAILY_ACTIVITY...
April 26, 2004 at 6:42 am
1.
I do not know of any personally, but like you would be interested to know of any.
2.
All my sp's are generated from txt files. I may use QA...
April 22, 2004 at 7:34 am
Kenneth, I would disagree with 'shaky', not ideal maybe.
The problem with using a semaphore is that if an error occurs that stops the procedure then the semaphore is not changed and you...
April 22, 2004 at 2:19 am
Viewing 15 posts - 2,671 through 2,685 (of 3,543 total)