Viewing 15 posts - 2,266 through 2,280 (of 4,085 total)
bcp doesn't allow you to append data to an existing file.
You have a couple of options. You can output the data to two separate files and then concatenate them...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 10, 2016 at 3:44 pm
Yes, but are you having trouble getting the information to append to the file or do you have the information and you can't figure out how to append it?
We also...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 10, 2016 at 1:31 pm
Brandie Tarvin (10/10/2016)
Grant Fritchey (10/10/2016)
No need...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 10, 2016 at 1:11 pm
Did you check to make sure that the agent has permissions to access the directory where the files are stored?
The last time I worked with SSIS was SQL 2008, so...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 10, 2016 at 1:00 pm
Chrissy321 (10/10/2016)
My use case is I have daily jobs that are scheduled to run at a specific time. I want to alert when a job did not run.
Your description does...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 10, 2016 at 12:48 pm
LinksUp (10/10/2016)
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 10, 2016 at 11:10 am
wtren (10/8/2016)
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 10, 2016 at 10:57 am
Sergiy (10/9/2016)
vfn (10/9/2016)
error:Column PupilPersonalDetails.Forename is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY Clause
helllpppp
That's right.
If you want to...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 10, 2016 at 9:00 am
eandre360 (10/10/2016)
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 10, 2016 at 8:50 am
Y.B. (10/7/2016)
drew.allen (10/7/2016)
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 7, 2016 at 2:11 pm
Try the following.
DECLARE @t TABLE(doc XML)
INSERT @t (doc)
VALUES('
<AUDITS>
<Admin>
</Admin>
<provider_spells />
<Refno>123456</Refno>
<Action>UPDATE</Action>
<Fields>
<old_pmetd_refno></old_pmetd_refno>
<new_pmetd_refno>4110</new_pmetd_refno>
</Fields>
</AUDITS>')
SELECT f.fields.value('old_pmetd_refno[1]/text()[1]', 'INT'), f.fields.value('new_pmetd_refno[1]/text()[1]', 'INT')
FROM @t
CROSS APPLY doc.nodes('/AUDITS/Fields') f(fields)
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 7, 2016 at 11:17 am
Here is an updated version that only requires a single scan of the table. There is a complete description of the logic at New Solution to the Packing Intervals...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 7, 2016 at 9:41 am
niall5098 (10/7/2016)
HI There,it looks like sql but is actually text
We said it was XML, not SQL, and XML IS text, but in a very specific format. Even if it's...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 7, 2016 at 8:43 am
Luis Cazares (10/7/2016)
SELECT *
FROM #tmp
WHERE loginName LIKE '%_._%' --Has a period surrounded by other characters
AND loginName NOT LIKE...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 7, 2016 at 8:27 am
I think that this is what you are looking for.
SELECT *, ROW_NUMBER() OVER(PARTITION BY Companyid, DateFrom ORDER BY DateTo DESC)
FROM #temp
ORDER BY CompanyID, DateFrom, DateTo
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 7, 2016 at 8:12 am
Viewing 15 posts - 2,266 through 2,280 (of 4,085 total)