Viewing 15 posts - 31 through 45 (of 57 total)
Have a look at IDENT_CURRENT, @@IDENTITY and SCOPE_IDENTITY() in Books-Online
Win
January 26, 2005 at 6:33 pm
The tablock lasts for < 1 sec on a 60 million row table, so not a problem for a warehouse database. If you leave the re-seed job to a mignight...
January 12, 2005 at 6:25 pm
Analogous to your convention of user-defined functions we prefix our trigger names with t_.
tables:
t_<tablename>_iud or t_<tablename>_oiud for instead-of triggers.
views:
t_v_<viewname>_oiud
Cheers,
Win
December 16, 2004 at 6:08 pm
This is not a perfect solution, but allows you to test completed stages of the tirgger logic. It is also more complicated to implement. The trigger must fire or it...
December 8, 2004 at 6:45 pm
Clay,
I run a 2-line script with dbcc dropcleanbuffers and freeproccache before every benchmark test. Read - ahead count is also the same.
cheers,
Win
October 29, 2004 at 12:06 am
You can do the opposite (cache) and keep the table in the database buffer cache with dbcc pintable, but I am not aware of a nocache equivalent.
Win
October 28, 2004 at 7:36 pm
Steven,
Thanks for the proc, let's hope there will be a command in Yukon
Win
October 11, 2004 at 4:11 am
Brian,
Is there some undocumented - hard to find command to disable instead-of triggers on views - apart from dropping the trigger?
Thanks,
Win
October 10, 2004 at 9:30 pm
Thanks for your comments - this is not the first time someone made a comment about the non-uniqueness of ROWGUID.
Cheers,
Win
September 9, 2004 at 7:04 pm
Thanks guys. This is a cut and paste from notepad. Twice burnt....
This database forms the back-end to a commercial data management system. The front-end is written in C++ and sits...
September 8, 2004 at 7:53 pm
Note to the coordinator of the thread. I just wrote a lengthy reponse to Kenneth's comments. I pressed the preview button and lost the whole opus. This is the second...
September 8, 2004 at 3:07 am
If what you are saying is correct SQL SVR is not optimised to handle a ROWGUID better than any other 16 byte datatype. The integer Identity looks more attractive. It avoids...
September 7, 2004 at 7:04 pm
1) I assume your sequence exists
2) I cannot find any declaration of
sysdt date;
nnx number;
in package, package body or procedure
for
select sysdate into sysdt from dual; -- SQL Server equivalnet is: select @sysdt=getdate()...
August 19, 2004 at 7:53 pm
You can use temp tables to test your design if up-front re-coding looks like too much work. Temp tables created inside a procedure are automatically destroyed when they go out of...
August 12, 2004 at 11:27 pm
Why don't you create the datatype table following the same principle and stick with the information_schema views which are more up-to-date than the old hack of using sys...tables.
Win
August 12, 2004 at 11:03 pm
Viewing 15 posts - 31 through 45 (of 57 total)