Viewing 15 posts - 61 through 75 (of 901 total)
Chris,
I keep forgetting that the LEAD/LAG window functions have the 'default' value field, and have been using ISNULL (as per my previous example!!!) :w00t:
March 12, 2015 at 2:53 am
Just as a side bar, I worked in a travel company with a rather aggressive profanity filter on the mail server, and bounce legitimate emails that contained the word Bastardise(d),...
March 12, 2015 at 2:50 am
As with all things speak to anyone from the various camps and they will tell you their option is better, I remember being told by an Ingres developer that it...
March 9, 2015 at 7:03 am
I believe that you have to remove the SSISDB and start from scratch as there is no way that I know of to recover the password after the setup has...
March 6, 2015 at 2:08 am
Theres a big logic flaw in yourscript, you add the Time to a DATETIME that already has a time component, which is why my results look a little weird.
as...
March 5, 2015 at 6:54 am
This might help you get started
NOTE : Tables changed to TEMP tables for ease, also using my own String splitter
Reporting.SplitParam_Test (Effectively Jeff Modens).
;WITH CTE_GetAudit
AS
(
select
CONCAT([Forename],' ' ,[Surname]) AS...
March 5, 2015 at 6:26 am
Final script you provided seems to work fine, I just cant see the connect between that and the CRM table.
What is the data set you are looking to return.
As you...
March 5, 2015 at 4:19 am
TSQL Tryer (3/5/2015)
ignore last post - think I've worked it out - will post all code again shortly.Sorry
I was just about to send a response, its the ai/bi columns that...
March 5, 2015 at 3:13 am
For a start you insert is completely malformed, replace the * with a comma, and you are missing single quotes around the bi/ai columns in the selects.
Just taking the...
March 5, 2015 at 2:30 am
There are a couple of possible issues, have you tried just putting one of those fields into a variable and passing it through the Splitter
I did a simple test using...
March 5, 2015 at 1:14 am
SQL is linear, so it wont start a statement until the previous has completed, there could be an issue with transactions, overlapping, or not completing in time for the next...
March 4, 2015 at 4:00 am
Why do you need to create a function for this. simply do this for text fields
ISNULL(NULLIF(@column,'NULL'),'No Data'))
or this for Numeric fields
ISNULL(NULLIF(@column,'NULL'),0))
Its also likely to be more efficient than calling a...
March 4, 2015 at 3:36 am
hi,
Sorry I didn't get back to you yesterday, work got hectic.
I didn't realise this was for a DW, had it been a OLTP system I would have used the structure...
March 3, 2015 at 12:47 am
Nevyn (3/2/2015)
SELECT 'SELECT '
+ COALESCE(QUOTENAME(user_name,''''),NULL)+','
+ COALESCE(QUOTENAME(date_of_change,''''),NULL)+','
+ COALESCE(QUOTENAME(time_of_change,''''),NULL)+','
...
March 2, 2015 at 9:30 am
cs_source (3/1/2015)
the solution worked using the following code for those who need...
March 2, 2015 at 1:13 am
Viewing 15 posts - 61 through 75 (of 901 total)