Viewing 15 posts - 76 through 90 (of 2,006 total)
Complete an utter stab in the dark. . .
SELECT DISTINCT
p.dbPatID,
p.dbpatfirstname,
...
March 24, 2015 at 8:26 am
Sample data: -
IF object_id('tempdb..#testEnvironment') IS NOT NULL
BEGIN
DROP TABLE #testEnvironment;
END;
--1,000,000 Random rows of data
SELECT TOP 1000000 IDENTITY(INT,1,1) AS ID,
RAND(CHECKSUM(NEWID())) * 30000 /*(Number of days in...
March 9, 2015 at 9:17 am
You dealt with the technical issues very well!
March 6, 2015 at 6:08 am
ChrisM@Work (1/23/2015)
SELECT MondaysThisMonth = DATEADD(DAY,n,MondayBeforeFOM)FROM (
SELECT FirstOfMonth, MondayBeforeFOM = DATEADD(DAY,DATEDIFF(DAY,0,FirstOfMonth)/7*7,0)
FROM (SELECT FirstOfMonth = DATEADD(MONTH,DATEDIFF(MONTH,0,GETDATE()),0)) d
) e
CROSS JOIN (SELECT 7 UNION ALL SELECT 14 UNION ALL SELECT 21 UNION ALL SELECT...
January 23, 2015 at 8:52 am
Something like this would work. . .
DECLARE @PassedInDate AS DATE;
SET @PassedInDate = GETDATE();
WITH CTE ( N )
AS...
January 23, 2015 at 6:21 am
Sample data: -
IF object_id('tempdb..#testEnvironment') IS NOT NULL
BEGIN
DROP TABLE #testEnvironment;
END;
--1,000,000 Random rows of data
SELECT TOP 1000000 IDENTITY(INT,1,1) AS ID,
RAND(CHECKSUM(NEWID())) * 30000 /*(Number of days in range)*/ + CAST('1945' AS...
January 9, 2015 at 5:29 am
I'm not affiliated with RedGate. Have you thought of using SQL Compare[/url]?
It's pretty quick and will show you in a very simple UI any differences between the schema.
November 7, 2014 at 1:46 am
Shahzadi (11/6/2014)
Unable to show XML. The following error happenend.
Unexpteced end of...
November 6, 2014 at 8:30 am
Shahzadi (11/6/2014)
November 6, 2014 at 7:59 am
Shahzadi (11/6/2014)
Thank for the script, is there anyway i can run one table at a time ? i mean a where condition with table name?
Of course you can limit it...
November 6, 2014 at 7:47 am
OK, I've messed around with this over lunch and am reasonably confident that it does what you want. Please be extremely careful, execute in a test environment that is...
November 6, 2014 at 7:19 am
Eirikur Eiriksson (10/23/2014)
😎
; --terminator, not begininator 😛
WITH LAST_TABLE AS
(
SELECT TOP(1)
T.object_id
...
October 24, 2014 at 7:08 am
Qira (9/10/2014)
Hello sir,How about year? I cant imagine that
Really?
Cadavre (9/10/2014)
September 10, 2014 at 4:11 pm
Qira (9/10/2014)
This is my table and data
CVID | WorkExperience
--------------------------------
2838736
68181101
96568122
1135484
I need to convert into this result
CVID | WorkExperience
--------------------------------
283873 years
681818 years 5 months
9656812 years 2 months
1135484 months
Need help
This...
September 10, 2014 at 3:34 pm
Viewing 15 posts - 76 through 90 (of 2,006 total)