Viewing 15 posts - 361 through 375 (of 562 total)
Enforcing constriants often prevents actions. Most of the time it prevents 'illegal' actions. But sometimes it prevents actions, which are functional.
In general I am in favor to enforce constraints in...
August 3, 2015 at 1:42 am
Sean Lange (7/31/2015)
July 31, 2015 at 3:02 pm
All thanks for your contributions.
Luis Cazares, thanks for your solution. Next monday I'll study it and try it.
Although not simple, I probably could wrap this up in a stored procedure.
If...
July 31, 2015 at 1:57 pm
;
With
A as (
SELECT
ROW_NUMBER() OVER(PARTITION BY PartNumber, MfgSerialNumber ORDER BY InspectionDate desc) subnumber
,*
FROM TestGroup
WHERE PartNumber...
July 31, 2015 at 9:07 am
Thanks again.
Did not realise that a select top 1 would count as a 'scan'.
I do use the TOP a lot, but not in a production environment. (At least not without...
July 31, 2015 at 7:34 am
GilaMonster (7/30/2015)
A key/rid lookup is done to fetch columns which are not present in the index used. It's not related to a seek, you can get index scans with key...
July 30, 2015 at 10:11 am
GilaMonster (7/30/2015)
Updates are any modification. Insert,...
July 30, 2015 at 9:32 am
A similar question has been answered before see :
http://www.sqlservercentral.com/Forums/Topic508540-1291-1.aspx
July 16, 2015 at 1:38 am
Jack Corbett (7/14/2015)
July 14, 2015 at 12:46 pm
Lowell (3/19/2015)
obviously, this only works for compiled objects like procs/views/functions, but it's a start
Thanks, get some 'false positives' for calls to stored procedures in the master, but this is working...
March 19, 2015 at 9:56 am
MyDoggieJessie (3/17/2015)
How about something like this? Did a quick test and it looked like it might work...
Used the code:
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[A_test]') and OBJECTPROPERTY(id,...
March 19, 2015 at 4:06 am
MyDoggieJessie (3/17/2015)
Do you mean for procedures that are called within procedures i.e ("other" procedures get executed from within a calling procedure?)
Sorry that I was not clear.
I would like a list...
March 17, 2015 at 2:53 pm
Hello, thanks for your attention.
While messaging in this forum I came up with the following sollution:
-----------------------------------------------------------------------------
-- Solution method 1
-- Create a temptable of an actual table, where the identity column...
December 12, 2014 at 11:37 am
Sean Lange (12/12/2014)
December 12, 2014 at 10:24 am
ZZartin (12/12/2014)
How do you not know table structures at design time.....
I am building a generic tool. *)
The tool can be used on tables which are not in existence yet.
Ben
*)
More specific...
December 12, 2014 at 10:01 am
Viewing 15 posts - 361 through 375 (of 562 total)