Viewing 15 posts - 6,406 through 6,420 (of 7,608 total)
Whatever rules you decide on, you should enforce them programmatically. Otherwise, the rules will be broken and be meaningless.
Also, follow the first rule of naming -- don't build meaning...
September 3, 2013 at 2:00 pm
Something like below. It's possible you only need one left join, depending on the specific data in your tables:
SELECT
CASE WHEN b_out.Continent_cd IS NOT NULL THEN...
September 3, 2013 at 1:49 pm
MyDoggieJessie (8/30/2013)
ScottPletcher (8/30/2013)
MyDoggieJessie (8/30/2013)
It may "bypass" the locking of the records it's ready but it does not improve performance or reduce any overhead one bit.
LOL. That's self-contradictory...
August 30, 2013 at 2:49 pm
Sean Lange (8/30/2013)
ScottPletcher (8/30/2013)
Sean Lange (8/30/2013)
ScottPletcher (8/30/2013)
Sean Lange (8/30/2013)
ScottPletcher (8/30/2013)
Sean Lange (8/30/2013)
NOLOCK hints. They are NOT a performance boost.
To me, that's not a logical claim. While NOLOCK is clearly...
August 30, 2013 at 2:23 pm
Sean Lange (8/30/2013)
ScottPletcher (8/30/2013)
NOLOCK can be useful, for example, for code lookup tables, such as state code lookups. A state hasn't been added since 1959, I think I'll risk...
August 30, 2013 at 2:17 pm
Sean Lange (8/30/2013)
ScottPletcher (8/30/2013)
Sean Lange (8/30/2013)
ScottPletcher (8/30/2013)
Sean Lange (8/30/2013)
NOLOCK hints. They are NOT a performance boost.
To me, that's not a logical claim. While NOLOCK is clearly dangerous, it DOES...
August 30, 2013 at 2:02 pm
MyDoggieJessie (8/30/2013)
It may "bypass" the locking of the records it's ready but it does not improve performance or reduce any overhead one bit.
LOL. That's self-contradictory -- if NOLOCK avoids...
August 30, 2013 at 2:00 pm
Sean Lange (8/30/2013)
ScottPletcher (8/30/2013)
Sean Lange (8/30/2013)
NOLOCK hints. They are NOT a performance boost.
To me, that's not a logical claim. While NOLOCK is clearly dangerous, it DOES in fact reduce...
August 30, 2013 at 1:52 pm
You should be able to use a correlated subquery, like so:
SELECT
@mystring,
REPLACE(@mystring, name, value) AS newstring
FROM (
SELECT TOP...
August 30, 2013 at 1:49 pm
Here's a quick-and-dirty first try -- might or might not work. Also, you need to get rid of the DISTINCT if at all possible -- it's a big drag...
August 30, 2013 at 1:34 pm
Sean Lange (8/30/2013)
NOLOCK hints. They are NOT a performance boost.
To me, that's not a logical claim. While NOLOCK is clearly dangerous, it DOES in fact reduce overhead by avoiding...
August 30, 2013 at 1:26 pm
kapil_kk (8/30/2013)
ScottPletcher (8/29/2013)
ALTER TABLE dbo.tblemployeeADD ident int IDENTITY(1, 1) NOT NULL
Edit: Added "NOT NULL"
You are adding a new column with IDENTITY property and it works..
The thing is that we cant...
August 30, 2013 at 9:53 am
Float only takes 4 bytes to store if you specify a precision of 24 or less.
August 29, 2013 at 4:48 pm
WHY IS THE LEN OF THE FLOAT 4?!
It takes 4 bytes to store a float value (up to 24 digits).
August 29, 2013 at 4:28 pm
DOH, just realized, the proc should check for an explicitly specified schema name and parse out the names before adding brackets:
alter PROC [dbo].[sp_getrecords]
(
@TableName sysname
)
AS
declare @SchemaName sysname
set...
August 29, 2013 at 3:55 pm
Viewing 15 posts - 6,406 through 6,420 (of 7,608 total)