Viewing 15 posts - 151 through 165 (of 622 total)
Agree with all of your points but I did qualify my statement by saying that there were other considerations if you need a generic solution. (i.e. compare any two records...
October 2, 2017 at 7:28 am
so if you wanted to pass a table name and two record IDs to a function/procedure that would spit out a list of fields with differences and the before/after values,...
October 2, 2017 at 6:33 am
If you want a generic solution then you are going to need to use a cursor, sys.colums and probably some executable SQL to build what is effectively the pivoted data...
October 2, 2017 at 5:13 am
@ Kevin,
You can't leave a statement like that hanging 🙂 You need to explain WHY it is a bad idea.
September 26, 2017 at 8:14 am
I don't think there is one. Just someone sharing code that might save you half a day.
September 22, 2017 at 7:48 pm
If you are deleting the majority of the table, you may find it more performant to copy the records to DO want to a new (temp) table and then truncate...
September 22, 2017 at 7:41 pm
Thanks guys,
I indeed edit the package by hand. i.e. view in code (rather than use the properties) and set the text qualifier to empty string. I just know...
September 22, 2017 at 7:12 pm
you could just do it with nested REPLACE() functions. I have only done the first two ([ and @). You would need to be careful with the % as that...
September 7, 2017 at 10:57 am
Assuming all employees are in the same table and have a parent_ID field to point up the tree then you are probably looking at a recursive CTE
You will...
September 7, 2017 at 10:06 am
would love to but our network is screwed down so tight there isn't a drive I have access to that is big enough
August 16, 2017 at 4:46 am
Thanks Sue,
TLS/LS - My bad 🙂
You are right on all counts. I ended up turning off the existing LS and starting again. I completely agree that...
August 16, 2017 at 2:20 am
+1 for using SSIS - it comes as part of the implementation for all versions of SQL other than Express.
Loading data from a CSV file is a pretty...
January 13, 2017 at 8:06 am
You are very nearly there. Try to think of the problem as two separate steps:
1) How do I find the last date in the system
2) How do I...
January 13, 2017 at 7:34 am
Thanks guys, I din't post the entire query because it is currently over 800 lines long and uses a number of correlated sub-queries (converting to CTEs to make it easier...
January 10, 2017 at 1:43 am
Does this help?
It sounds like the same root problem. If you can solve it efficiently, I am sure that Facebook would love to hear from you...
December 14, 2016 at 1:29 pm
Viewing 15 posts - 151 through 165 (of 622 total)