Viewing 15 posts - 2,296 through 2,310 (of 5,504 total)
After a first glance at the 250 lines of undocumented code I don't think you'll need a those nested c.u.r.s.o.r.s *cough* at all.
I'm confident the issue can be resolved with...
December 30, 2010 at 3:26 am
Ok, based on harinerella great setup for the sample data here's my approach (based on ROW_NUMBER to get numbered list without gaps and a self join to that list):
WITH cte...
December 30, 2010 at 3:02 am
Jack Corbett (12/29/2010)
I'd bet the SafetyCheck is in the discussion of Jeff's article which I linked to in my original post....
Nope, not in the version I checked (will be published...
December 30, 2010 at 2:39 am
Did you have a chance to search for the articles I pointed you at?
I'm sure there is a solution that'll exactly match your requirement.
December 30, 2010 at 2:26 am
Langston Montgomery (12/29/2010)
December 29, 2010 at 6:37 pm
So I guess I have to withdraw my point of view then...
On a second thought, there is one important thing missing: your approval prior to publishing.
December 29, 2010 at 6:26 pm
rluke (12/29/2010)
December 29, 2010 at 6:17 pm
Craig Farrell (12/29/2010)
http://balapalani.blogspot.com/2010_12_01_archive.html
It's roughly a copy/paste...
December 29, 2010 at 6:10 pm
Or, to phrase it slightly different:
Wouldn't it be much easier, if the app would send you a separated list of the products checked instead of a binary code? Something like...
December 29, 2010 at 6:05 pm
How do you make sure the order used for the binary coding will ALWAYS match the order in your db?
December 29, 2010 at 6:02 pm
Something like this?
DECLARE @xml XML
SET @xml=
'<root>
<id>2983</id>
<Area>Urgencias</Area>
<Puesto>Enfermera General</Puesto>
<Motivo>Reposicion de personal</Motivo>
<Genero>F</Genero>
</root>'
SELECT
T.c.value('localname[1]', 'varchar(100)') AS element, -- node name extracted from data column (holding NTFRS elements in xml format)
T.c.value('value[1]', 'varchar(100)') AS val ...
December 29, 2010 at 5:14 pm
Would you mind providing some sample data (including expected result) so w can see what you're looking for?
Your verbal description "leaves some room for interpretation"....;-)
December 29, 2010 at 4:02 pm
Would it help to see if a table is used in a sproc, view or function?
Then you could use sys.dm_sql_referencing_entities, sys.dm_sql_referenced_entities and sys.sql_expression_dependencies.
This will at least give you the list...
December 29, 2010 at 3:05 pm
Please explain the business rules on how to get your expected result.
Issues I'm struggling with:
- Item a starts with an amount of 10, but it shows an amount of 5...
December 29, 2010 at 1:41 pm
Viewing 15 posts - 2,296 through 2,310 (of 5,504 total)