Viewing 15 posts - 1 through 15 (of 21 total)
I've used this method for a couple of years now and have found it very effective.
Another advantage of this method is that it is possible to move the transactional boundary of...
Cheers,
Kevin
April 22, 2004 at 11:19 pm
How about...
delete S
from
stagingin S
left join plans P on P.id=s.id
where
P.id is null
Cheers,
Kevin
March 7, 2004 at 3:57 pm
These dt_ procedures are created for me when a new database diagram is selected from EM.
Don't touch the database diagrams, and those procedures won't be created.
Cheers,
Kevin
March 7, 2004 at 3:50 pm
Hey good idea Antares686
update tblName set @var = col = col + 1
I'll definitely use this method from now on. No explicit transaction, no explicit locking... Thanks!
Cheers,
Kevin
March 7, 2004 at 3:37 pm
I can't offer you an alternative, as I don't know your business requirements.
I don't know how flexible your system needs to be, but when I saw that you were getting...
Cheers,
Kevin
March 1, 2004 at 11:28 pm
By putting the update straight after the read is enough. You need to do more. Check this script out to illustrate my point...
use tempdb
create table Numbers (LastNumber int not null,...
Cheers,
Kevin
March 1, 2004 at 11:11 pm
What? Sorry, but I'm not sure of your requirement.
Are you saying that if two users are using the same type, it is OK for them to have duplicate numbers?
Cheers,
Kevin
March 1, 2004 at 9:56 pm
You need to have the "selecting, incrementing & updating" process happen for one person at a time. You can use a transaction and locking to do this,...
Cheers,
Kevin
March 1, 2004 at 3:24 pm
I looked at your proc, and have a few concerns.
1) You state that it handles the multi-user environment by generating and updating the next number in...
Cheers,
Kevin
February 29, 2004 at 10:22 pm
User defined function. Now why didn't I think of that! That's a much more elegant solution, go with that.
Good work.
Cheers,
Kevin
January 22, 2004 at 4:44 pm
OK, you will need to put this sql into a stored proc...
Also if you are using SQL2000, I'd use table variables instead of temporary tables.
create table #Output (TaskId int, StaffNames...
Cheers,
Kevin
January 20, 2004 at 6:52 pm
Look at the following link to give you some ideas...
http://www.sqlservercentral.com/scripts/contributions/506.asp
Cheers,
Kevin
January 20, 2004 at 5:46 pm
You need to use seperate dimension tables for time and your UPC field.
Run the following script for the purpose of this example...
CREATE TABLE [UPC] (
[UPC] [char] (5) NOT NULL
) ON...
Cheers,
Kevin
January 20, 2004 at 5:36 pm
How about something like...
select case when A=B then 1 else 0 end
from
(
SELECT
CHECKSUM_AGG(BINARY_CHECKSUM(*)) as A
FROM
Table1
) RC1
,
(
SELECT
CHECKSUM_AGG(BINARY_CHECKSUM(*)) as B
FROM
Table2
) RC2
Cheers,
Kevin
January 20, 2004 at 4:29 pm
You've posted to the wrong forum. Actually you've posted to the wrong site!
For ASP/ASP.NET help (you asked about creating a web form) try the following links...
http://www.aspfaqs.com/aspfaqs/
http://www.4guysfromrolla.com/
Cheers,
Kevin
January 20, 2004 at 4:14 pm
Viewing 15 posts - 1 through 15 (of 21 total)