Viewing 15 posts - 4,546 through 4,560 (of 13,871 total)
Or you can use dynamic SQL:
DECLARE @category VARCHAR(50);
DECLARE @sql VARCHAR(1000);
--Based on category values i should get records dynamically
SET @category = 'lamp';
SET...
April 6, 2018 at 6:08 am
I appreciate that this is not using SSMS, but getting this info out in a structured format is just a few clicks away if you create a database project in...
April 5, 2018 at 1:07 pm
Try this
DROP TABLE IF EXISTS #LoanNumber;
CREATE TABLE #LoanNumber
(
Loannumber VARCHAR(10)
, ID INT IDENTITY(1000, 1)
, GeneratedLoan AS RIGHT('0000000000' + CAST(ID AS VARCHAR(10)),10)
);
April 5, 2018 at 12:46 pm
komal145 - Thursday, April 5, 2018 12:18 PMBut the Leading zeros are not adding up. Please correct me.
What should they add...
April 5, 2018 at 12:23 pm
April 5, 2018 at 10:36 am
April 5, 2018 at 10:34 am
April 5, 2018 at 9:09 am
(DATEPART("dw",[Transaction Date]) == 1 ? "Sunday" :...
April 4, 2018 at 11:17 am
April 4, 2018 at 9:07 am
April 4, 2018 at 5:06 am
April 3, 2018 at 11:08 am
I am looking to create a query so that we can identify top 3 selling...
April 2, 2018 at 4:38 pm
The obvious question: have you rebooted your machine?
April 2, 2018 at 8:11 am
Viewing 15 posts - 4,546 through 4,560 (of 13,871 total)