Viewing 15 posts - 6,256 through 6,270 (of 8,731 total)
Please do not disturb.
Watching the World Cup and cheering for Mexico!:-D
June 13, 2014 at 10:07 am
J Livingston SQL (6/13/2014)
http://www.sqlservercentral.com/articles/Tally+Table/72993/see code in resources at bottom of article
Just correcting the IFCode to make it easier.
June 13, 2014 at 9:45 am
Why do you have a Parent and Child in different tables? Should I assume that it's not a hierarchy but a header-detail?
Could you include the deleted column on your PK...
June 13, 2014 at 9:44 am
Had the same problem and couldn't log in for a while. Seems to be working now.
June 13, 2014 at 9:39 am
Order in a table is not guaranteed. Actually, it does not exists in a logical sense.
You could force it with an identity column and being sure the inserts follow...
June 13, 2014 at 8:30 am
The inserts don't match the table definitions.
June 12, 2014 at 6:08 pm
TOP clause accepts variables and expressions.
Example:
SELECT TOP(DATEPART( HH, GETDATE()))
*
FROM master.sys.all_columns
I'm not sure if that helps you because I'm not sure on how do you want to...
June 12, 2014 at 4:38 pm
cbrammer1219 (6/12/2014)
No I figured I would get the tsql working first, and then attempt that change.
If you fix the data import, you don't need to work that hard on the...
June 12, 2014 at 4:01 pm
Did you even try to change the SSIS package to avoid all these complications?
June 12, 2014 at 3:54 pm
There's no need to make that extra work with the date. You need to work with the run_duration column because it comes in format HHMMSS as well.
selectsjh.Job_ID,
...
June 12, 2014 at 3:52 pm
SQL_Surfer (6/12/2014)
how can we modify this to keep today's record but delete previous entries?
Have you tried MERGE to avoid doing this in 2 steps?
June 12, 2014 at 3:38 pm
Thank you for the feedback. You had the right idea on how to do it, I just helped you to get all the way there. 😉
June 12, 2014 at 12:59 pm
Andrew Kernodle (6/12/2014)
June 12, 2014 at 12:39 pm
Fair enough. I thought you only had digits.
Check for the following. 😉
WITH SampleData AS(
SELECT '00345.0001' code UNION ALL
SELECT '02345.0123' code UNION ALL
...
June 12, 2014 at 12:32 pm
cbrammer1219 (6/12/2014)
I have posted the create...
June 12, 2014 at 12:26 pm
Viewing 15 posts - 6,256 through 6,270 (of 8,731 total)