Viewing 15 posts - 466 through 480 (of 2,647 total)
Jack Corbett (7/18/2012)
What platform is your experience with?
BY default SQL Server does pessimistic locking. So, within a transaction it will lock what it needs to lock to...
Jared
CE - Microsoft
July 18, 2012 at 8:50 am
In addition to that, it is a fact that with a unique constraint on the column, it is IMPOSSIBLE for there to be duplicate account numbers. That's the point...
Jared
CE - Microsoft
July 18, 2012 at 8:38 am
The database engine will perform its own locks as needed because of the unique constraint. You seem to assume that things happen asynchronously at the database level, but it...
Jared
CE - Microsoft
July 18, 2012 at 8:36 am
Jeff Moden (7/17/2012)
gerard-593414 (7/17/2012)
The example of updating a Table with...
Jared
CE - Microsoft
July 18, 2012 at 8:00 am
I don't understand why you think that it needs these locks. SQL Server is smart enough to handle this for you when you place a unique constraint and use...
Jared
CE - Microsoft
July 17, 2012 at 6:05 pm
Jasmine D. Adamson (7/17/2012)
Jared
CE - Microsoft
July 17, 2012 at 4:57 pm
I think you are thinking too much into this. Let the database engine handle it, that's what it is built to do. You can do an IF EXISTS and if...
Jared
CE - Microsoft
July 17, 2012 at 2:53 pm
As an example, run this and look at the actual execution plan:
DECLARE @test-2 VARCHAR(10)
SET @test-2 = 'cid'
SELECT *
FROM sys.columns
WHERE @test-2 = '' OR @test-2 = name
SELECT *
FROM sys.columns
WHERE ...
Jared
CE - Microsoft
July 17, 2012 at 2:47 pm
Jasmine D. Adamson (7/17/2012)
Jared
CE - Microsoft
July 17, 2012 at 2:42 pm
gmamata7 (7/17/2012)
We need to configure SQL Server alias on Client servers NOT on SQL Server box.
Ok, let's all take a moment and think about this... If you reference a default...
Jared
CE - Microsoft
July 17, 2012 at 2:32 pm
Jasmine D. Adamson (7/17/2012)
Select whateverfrom table
where @mySearchVar is not null AND searchField = @mySearchVar
Nope, that will not return all rows when @mySearchVar = ''
The previous post by me is the...
Jared
CE - Microsoft
July 17, 2012 at 2:11 pm
If I were in your position, I would start with only the first 2 tables. Then add the 3rd and make sure it is giving you desired results. ...
Jared
CE - Microsoft
July 17, 2012 at 1:43 pm
Look at this code:
CREATE TABLE #identity_map (id int identity(1,1), name varchar(110));
INSERT INTO #identity_map(name)
SELECT 'sql-mmt';
;WITH tagTypes (tagType)
AS
(Select '%-FRN%'
UNION
Select '%-BCK%'
UNION
Select '%-PPP%'
UNION
Select '%-MES%'
UNION
Select '%-MMT%')
SELECT *
FROM tagTypes
LEFT JOIN #identity_map IM
ON IM.name LIKE...
Jared
CE - Microsoft
July 17, 2012 at 1:30 pm
You probably need to change all of your INNER JOINs to LEFT JOIN
Jared
CE - Microsoft
July 17, 2012 at 1:26 pm
Viewing 15 posts - 466 through 480 (of 2,647 total)