Viewing 15 posts - 46 through 60 (of 70 total)
Hi Bhanu,
This is somewhat built-up (I am sure it needs refactoring), but you will be better doing that:
declare @country varchar(max) = 'china or...
July 20, 2018 at 4:52 am
Hi,
There is a class called DacServices (in Microsoft.SqlServer.Dac namespace). It has a Publish method. Does it serve your purpose?
Do you want both Publish and deploy...
July 20, 2018 at 2:29 am
That means VARCHAR(MAX) I guess.
See here for details,
https://www.sqlservercentral.com/Forums/Topic647815-145-1.aspx
July 19, 2018 at 1:22 pm
Hi,
You can try like below (note the inline comments):
declare @lat1 as float
declare @long1 as float
declare @lat2 as float
declare @long2 as float
July 19, 2018 at 12:19 am
Couple of things that I observed in the stored procedure:
1. There are a DISTINCT clauses in two places. This should be avoided as it is expensive and if your...
July 18, 2018 at 8:20 am
In my opinion, if you do proper checking (e.g. checking for '0' for the denominator in a division and negativity of a SQRT function), that will do.
July 18, 2018 at 7:57 am
Thanks Scott for the reference.
Also, please be mindful about the usage of SQRT function (so that the parameter doesn't become negative) apart from division by zero. In this...
July 18, 2018 at 7:50 am
That doesn't seem to be a HEX value. Is it?
July 18, 2018 at 6:46 am
Hi,
When I tried to execute the expression at my end the expression inside the SQRT function returned negative values for me. Just check the value of
July 18, 2018 at 5:04 am
You can use CONVERT function like this:
SELECT CONVERT(DECIMAL, CONVERT(INT, 0x0010)) // This will return 16
July 18, 2018 at 2:29 am
Yes, actually WITH(NOLOCK) hint may return incorrect result sometimes by showing data from other uncommitted transactions (possibly by other users). So, to get a consistent view of the current data,...
July 9, 2018 at 2:20 am
Thanks Eirikur for pointing that out.
We can remove the WITH(NOLOCK) hint if execution speed is not a concern. This will give a consistent result.
July 9, 2018 at 2:11 am
Sure!
Basically, I am taking Customer table as the base table here and then gradually I am drilling down to the details about the order details. In that process, I...
July 9, 2018 at 1:58 am
Hi,
I hope this will be of help for you:
IF EXISTS(SELECT NULL FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_NAME = 'GetCustomerDetails'
AND ROUTINE_TYPE = 'PROCEDURE')
July 9, 2018 at 1:35 am
Hi,
This is a probable but not so elegant way. Does this give any hint to you?
DECLARE @TestValue VARCHAR(MAX) = '[{"Code":"001", "Valeur":"AAA"}, {"Code":"002",...
June 25, 2018 at 5:06 am
Viewing 15 posts - 46 through 60 (of 70 total)