Viewing 15 posts - 4,546 through 4,560 (of 13,877 total)
April 11, 2018 at 10:29 am
The command argument for sp_MSforeachdb has a max length of 2,000 characters, and your query exceeds that.
There are alternatives to sp_MSforeachdb out there which work better – here is...
April 11, 2018 at 7:04 am
April 10, 2018 at 12:37 pm
All data sources are pointing to the...
April 10, 2018 at 8:29 am
April 10, 2018 at 7:40 am
April 9, 2018 at 12:16 pm
April 6, 2018 at 7:06 am
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
Viewing 15 posts - 4,546 through 4,560 (of 13,877 total)