Viewing 15 posts - 481 through 495 (of 1,229 total)
The only issue I see here is with Scott and My results is the emp_id = 45678. The employee has the same email for both fields, and that email is...
September 23, 2016 at 4:06 pm
What I did first is create a list of invalid emails
With myCTE as
(
Select emp_id, emailType, email
From #temp1
Unpivot (email for emailType in ([email1],[email2])) as upvt
)
Select email, count(email) as numTotal
into...
September 23, 2016 at 2:48 pm
Good article that highlights rounding as really a formatting function. In the movement and derivation of data, I like to save rounding towards the end. That is, when you actually...
September 23, 2016 at 2:00 pm
The links were provided to you because the subject matter is something that people figure that you can read through and understand on your own. It is better to get...
September 23, 2016 at 1:46 pm
Still, I can't connect through SSMS since login is incorrect, it says
Can you take a look at the attachment... is this how you are trying to connect through...
September 23, 2016 at 11:03 am
For older versions of SQL SERVER : A simple (non table valued) function >
if object_id('fcnTEST') is not null
drop function fcnTest;
GO
CREATEFUNCTION dbo.fcnTEST(@param decimal(10,3))
RETURNS decimal(10,3)
AS
begin
return @param *2
end
GO
----------------------------
selectdbo.fcnTEST(t.[n]) as...
September 22, 2016 at 7:19 pm
On the topic of running
'SELECT * FROM M_Driemnd(@p_number)'
inside of a cursor....
Not sure what the original objective was but if I am understanding well enough, I imagine can...
September 22, 2016 at 5:35 pm
It would be good to also post the definition of the destination table. We could see clearly what it defines as a duplicate.
September 22, 2016 at 3:58 pm
SQLPain (9/20/2016)
Thanks, so L.FundingDate <= CAST(GETDATE()-30 AS DATE) that's the best way to do it.
I am just wondering if
L.fundingDate < dateadd(m, -1, cast(getdate() as date))
Would not serve your purpose...
September 22, 2016 at 3:25 pm
The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing.
Just covering the obvious, is the report...
September 22, 2016 at 3:12 pm
After this step I am sure you can configure the next data flow task in the control flow, to move from staging to your destination table. Though part of the...
September 16, 2016 at 12:38 pm
Start with a data flow task. Open this >
If you are joining on tables already in a SQL Server database then you will simply use that same SQL statement...
September 16, 2016 at 12:34 pm
So for the Monday, you want Friday listed,
Same for Sunday.
Would the code not actually read as
(1 indicates a Monday)
iif(Weekday(Parameters!TopLineDate.Value,1) = 1,
dateadd("d", -3, Parameters!TopLineDate.Value),
...
September 16, 2016 at 12:28 pm
I am interested in seeing what the columns actually are. Can you post this? I suspect you are not satisfying 3rd normal form in your database tables.
September 16, 2016 at 11:54 am
Hugo Kornelis (9/16/2016)
MMartin1 (9/15/2016)
Just wanted to bring up a point of inquiry : the view sys.dm_db_index_usage_stats would not satisfy if any table has no indeces I imagine.
A logical...
September 16, 2016 at 11:09 am
Viewing 15 posts - 481 through 495 (of 1,229 total)