Viewing 15 posts - 1,381 through 1,395 (of 1,435 total)
I expect that the following extract will fail, as the max size of INT is 2,147,483,647 (10 Digits).
Even converting to BIGINT MAY fail, depending on the actual data, as the...
September 23, 2016 at 3:07 am
BOR15K (9/20/2016)
Can one advise how to obtain file's details, please? Both xp_dirtree and xp_cmdshell return expected list of files, but I also need their properties: size and date.
Is it possible,...
September 21, 2016 at 5:18 am
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
Viewing 15 posts - 1,381 through 1,395 (of 1,435 total)