Viewing 15 posts - 1,411 through 1,425 (of 1,464 total)
Below are 3 different methods for achieving the required results.
I'll leave it to you to test and find the best performance ...
Option 1 - Will have to be duplicated for...
September 19, 2016 at 2:29 am
kiran08.bi (9/2/2016)
Hi Thanks of the replyi am trying to implement the CTE which is posted above .
You should have noticed that my partial solution only works if all of...
September 4, 2016 at 11:41 am
ammit.it2006 (9/1/2016)
Nice one. Really, We don't need to run one by one...........Thanks
This hsould do the trick
Value = ((select ABS(CAST(NEWID() AS binary(6)) %25)) +1) *0.25
September 2, 2016 at 5:40 am
This looks like the main update can be achieved with a simple CTE to pre-aggregate per AcctNum and AgeBucket, joined to the #test_account for a single update.
;WITH cteAggregate AS (
...
September 2, 2016 at 4:59 am
This will list all the indexes in all the tables in your DB.
Modify the WHERE clause to filter the results.
SELECT
databaseName = DB_NAME()
...
August 23, 2016 at 12:36 am
The Dixie Flatline (8/22/2016)
Why be that chatty? Paying network overhead twice?
It's an option.
I have had cases where this has resulted in improved performance from the UI perspective.
Done...
August 22, 2016 at 1:16 pm
What about getting the app to make 2 separate calls, to 2 separate procs.
August 21, 2016 at 11:45 pm
drew.allen (8/18/2016)
DesNorton (8/17/2016)
Unless my understanding is incorrect, I believe that the movement in this solution is the wrong way around.
To prove this, let's take a look at only the first...
August 18, 2016 at 8:56 am
drew.allen (8/17/2016)
August 17, 2016 at 3:50 pm
Hi Jeff
Something went awry with your quote. Somehow the OP text was quoted under my name
May 30, 2016 at 10:32 pm
WhiteLotus (5/29/2016)
so I run DBCC CHECKIDENT('XYZ',RESEED,0); to reset the value of...
May 29, 2016 at 11:28 pm
We don't know anything about your table, so here is something that works on my environment
;WITH cteBaseData AS (
SELECT [Timestamp], Customer
, seq...
May 29, 2016 at 7:18 am
John Mitchell-245523 (5/26/2016)
DesNorton (5/25/2016)
Create a standard column [NICKNAME]
Create an INSERT trigger that sets [NICKNAME] = [LASTNAME] + ' ' + [FIRSTNAME]
Then the column...
May 26, 2016 at 7:34 am
franklinkeith (5/25/2016)
LASTNAME + FIRSTNAME
I'm trying to be able to edit the computed column (NICKNAME) = LASTNAME FIRSTNAME and change to...
May 25, 2016 at 2:45 pm
What about adding a new derived column and index to each table that creates a hash across the 30 fields. Then do a compare of the hashes.
ALTER TABLE <tablename>
ADD...
May 25, 2016 at 1:35 am
Viewing 15 posts - 1,411 through 1,425 (of 1,464 total)