Viewing 15 posts - 31 through 45 (of 78 total)
It is a data issue, please analyze. the date for that record is "2017-04-24 16:05:38.000" not 04-21, there is no session defined for that day. query given by <a title="Go to
September 5, 2017 at 8:58 am
September 1, 2017 at 9:42 am
Another option
;with dummy as
(
select ROW_NUMBER() OVER (ORDER BY (SELECT NULL)) rowid
from string_split(SPACE(1000),' ')
)
select ord.ID, ord.ProductCode, 1 Qty
...
August 31, 2017 at 3:37 pm
You need to provide data, script and output expected.
Looks like you need case statement.
SELECT t1.cust_no
,Case when t2.bill_date < DATEADD(year,-2,getdate()) Then 1 else 0 end yearsNotbilled3 --bill...
August 31, 2017 at 2:41 pm
Nice article. Agree, with the way technology is evolving it is better be jack of all as compare to master of one. Adaptability is more required I think. Being adequate...
August 31, 2017 at 1:02 pm
Nice post Steve. Aggree all cultures have something good that can be adopted, sometimes a very small thing changes the perspective. This is great to build a cohesive team, especially...
August 31, 2017 at 12:52 pm
Actually this make sense, since aggregation of at table level should always return a row to represent overall picture of table, you can have count, max, avg etc. in case of...
August 31, 2017 at 12:43 pm
There are multiple options, based on your requirement and can choose
---to get all cities, using SQL's inbulid split function
WITH YourTable AS (
...
August 31, 2017 at 12:34 pm
RedGate SQL compare is very good. but you can use Visual Studio as well, Schema comparison is good.
August 31, 2017 at 9:58 am
For bulk load BCP is very good option you can simply write it is SQL job and schedule it as well
August 31, 2017 at 9:55 am
Just to verify. I ran the script to encrypt in one server and then ran the decryption script to different server, it works fine
DECLARE @Passphrase NVARCHAR(Max)...
August 31, 2017 at 9:05 am
you getting null value from the table
SELECT @Encrypted = EncryptedMessage
FROM dbo.Inbound
WHERE InboundMessageId = 208
this returns NULL
so basically your input to function ( Fn_DecryptByPassphrase) is NULL,...
August 31, 2017 at 9:02 am
Viewing 15 posts - 31 through 45 (of 78 total)