Viewing 15 posts - 676 through 690 (of 1,246 total)
However that fancy function really isnt neccessary. A recursive CTE should...
June 20, 2017 at 10:38 pm
June 20, 2017 at 5:37 pm
Try this...
IF OBJECT_ID('tempdb..#temp4', 'U') IS NOT NULL
DROP TABLE #temp4;
GO
CREATE TABLE #temp4(
Bdate DATE
,Country VARCHAR(7)
,Type VARCHAR(4)
,P1 INT
,P2 INT
June 15, 2017 at 8:44 pm
I'm not sure if this is a concern with regard to your specific data, but if you you have a circumstance where the "latest 4" periods are all present (193,...
June 15, 2017 at 9:50 am
Is this what you're looking for?
IF OBJECT_ID('tempdb..#TempAgeAnalysisReport', 'U') IS NOT NULL
DROP TABLE #TempAgeAnalysisReport;
GO
CREATE TABLE #TempAgeAnalysisReport ([Account No] varchar(1),
[Current] money...
June 13, 2017 at 10:10 am
I think you're making it too difficult... Just create an INSERT proc and a separate UPDATE proc. Then use a 3rd "control flow" proc to check & see on the...
June 12, 2017 at 4:30 pm
Considering that you don't have the option to make this an actual DATE data type, I would suggest that you leave the data in it's current format. The YYYYMMDD is...
June 12, 2017 at 2:25 pm
Phil Parkin - Monday, June 12, 2017 8:53 AMMin(isnull(AMT,0)) should get rid of the warning.
It will clear the warning, but it would...
June 12, 2017 at 11:10 am
Q1... IIF is nothing more than a CASE expression with an abbreviated syntax. There is no impact, per se... You can use IIF or the equivalent CASE expression and produce...
June 12, 2017 at 10:59 am
If you need the dynamic version, try the following...
IF OBJECT_ID('tempdb..#temp', 'U') IS NOT NULL
DROP TABLE #temp;
CREATE TABLE #temp (
ID INT,
June 12, 2017 at 10:14 am
Try this...
IF OBJECT_ID('tempdb..#temp', 'U') IS NOT NULL
DROP TABLE #temp;
CREATE TABLE #temp (
ID INT,
YDate INT,
DE VARCHAR(200),
...
June 12, 2017 at 9:52 am
It would appear that you are correct about it being an NVARCHAR(128).
DECLARE @String VARCHAR(50) = 'this.is.a.test';
IF OBJECT_ID('tempdb..#temp', 'U') IS NOT NULL
DROP TABLE #temp;
June 10, 2017 at 7:01 pm
Yes there are absolutely negative consequences to having too many indexes and/or the wrong indexes... As they say, there is no free lunch.
You can think of an index as...
June 10, 2017 at 6:21 pm
sks_989 - Friday, June 9, 2017 12:26 PMThanks Jason. It worked now the way I want. Much Appreciated.
No problem. Glad it worked for...
June 9, 2017 at 12:41 pm
June 9, 2017 at 12:01 pm
Viewing 15 posts - 676 through 690 (of 1,246 total)