Viewing 15 posts - 121 through 135 (of 2,452 total)
this article may help you
https://www.codeproject.com/Articles/20815/Building-Dynamic-SQL-In-a-Stored-Procedure
July 22, 2017 at 4:03 am
some similar posts from you
https://www.sqlservercentral.com/Forums/1818860/need-to-extract-text-from-given-string
https://www.sqlservercentral.com/Forums/1882790/Extract-String
July 21, 2017 at 11:48 am
just a thought.........probably way off base !
SELECT TOP 30 PG_ID = IDENTITY( INT, 1, 1)
INTO #PG
FROM sys.all_columns;
SELECT * FROM #PG;
DELETE...
July 20, 2017 at 2:56 pm
July 20, 2017 at 1:54 am
July 19, 2017 at 1:46 pm
I have to ask why you are performing this query
SELECT *
FROM calendar
UNION
SELECT *
FROM calendar
are you by chance trying to obfuscate an...
July 19, 2017 at 1:11 pm
July 19, 2017 at 1:05 pm
based on what I believe you have said so far in this post...is the following a representative example?
SELECT TOP 420000
TransDate = Dateadd(dd, Abs(Checksum(Newid()))%Datediff(dd, '2015', '2017'), '2015')
July 19, 2017 at 12:55 pm
ChrisM@Work - Wednesday, July 19, 2017 9:39 AMForum outage for around 20 minutes here.
same here (UK)
July 19, 2017 at 9:41 am
some discussion here
https://www.sqlservercentral.com/Forums/1867110/Performing-a-Right-and-Comprehensive-Age-Calculation
July 18, 2017 at 9:05 am
does this help at all?
INSERT INTO hashed(id, sha256)
SELECT id, convert(varchar(280), HASHBYTES('SHA2_256',id),1)
FROM [nonhashed] ;
July 18, 2017 at 3:35 am
using CASE
DECLARE @yourtable TABLE
(colA INT,
colB INT,
colC INT
);
INSERT INTO @yourtable
VALUES
(100, 300, 200),
(400, 100, 200),
(500, 500, 600)
;
July 17, 2017 at 8:20 am
not sure if I am on the right track ..
DECLARE @yourtable TABLE
(source_database_id VARCHAR(20),
target_database_id VARCHAR(50)
);
INSERT INTO @yourtable
VALUES
('WDICENTRAL', 'WDIFINAL'),('WDIFINAL', 'WDICENTRAL'),
('GDFADVWKG', 'WDIFINAL'),('SOCQNT',...
July 16, 2017 at 3:03 pm
thanks for updated script...it works🙂
based on your sample data...what results are you expecting, please?
July 15, 2017 at 8:10 am
July 15, 2017 at 7:16 am
Viewing 15 posts - 121 through 135 (of 2,452 total)