Viewing 15 posts - 7,486 through 7,500 (of 15,381 total)
huum (7/18/2013)
No no as you mentioned about un necessary repetative part of SP, thats what i meant
Ahh gotcha. 😉
Consider this piece of code.
INSERT INTO @OfficeAccess (lOffice)
SELECT map.loffice
FROM map_PatientToOffice map
INNER JOIN...
July 18, 2013 at 2:04 pm
huum (7/18/2013)
can you please post the changes you like to make then i will test it?Regards
Are you asking me to spend a whole day to try to restructure your code...
July 18, 2013 at 1:36 pm
huum (7/18/2013)
This SP is running ONMicrosoft SQL Enterprise Manager
Microsoft Corporation
Version: 8.0
There is nothing like table definitions, index definitions and execution plan as Gail requested, and what you posted is nothing...
July 18, 2013 at 1:34 pm
jace.bennett (7/18/2013)
Set(
Id,
Name,
Dimension,
...)
Person (
Id,
Name,
...)
SetRelationships (
ParentSetId,
ChildSetId
)
PersonSets (
PersonId,
SetId
)
And then these tables give me a lot of my queries directly. The ones I want to denormalize would be
PersonContainedBy(
PersonId
SetId
)
SetContainedBy(
SetId,
AncestorId
)
Which would be a...
July 18, 2013 at 1:32 pm
Phew!!! That is a lot of unformatted code to read.
CREATE PROCEDURE dbo.NIC_CPP_LABRESULTS_GetReviewedPatientLabTests_AOS @lPatient INT,
@nRecordStatus INT,
@nClassLevel INT = 5,
@nSecurityLevel INT = 0,
@lMap_UserToOffice INT = 0
AS
SET TRANSACTION ISOLATION LEVEL READ COMMITTED
BEGIN
DECLARE @lUser...
July 18, 2013 at 1:29 pm
I just found this one in that series. 😛
http://www.sqlskills.com/blogs/paul/a-sql-server-dba-myth-a-day-2630-nested-transactions-are-real/%5B/url%5D
July 18, 2013 at 12:58 pm
GilaMonster (7/18/2013)
Sean Lange (7/18/2013)
July 18, 2013 at 12:54 pm
It sounds like you are thinking about having 3 columns that each have a delimited list of IDs or something like that? That is certainly not a normalized version. Or...
July 18, 2013 at 12:52 pm
jdbrown239 (7/18/2013)
ThanksThanks Sean that worked. I also found that substring worked too.
That is because in this case they are doing the same thing. 😉
July 18, 2013 at 12:46 pm
dan-572483 (7/18/2013)
July 18, 2013 at 12:45 pm
WayneS (7/18/2013)
Jeff Moden (7/17/2013)
Steve Jones - SSC Editor (7/17/2013)
Koen Verbeeck (7/17/2013)
Jeff Moden (7/16/2013)
Steve Jones - SSC Editor (7/16/2013)
Arrgggg, some days I hate software.
BWAAA-HAAA!!!! You mean like the stuff that generates...
July 18, 2013 at 9:37 am
There is probably an add-on somewhere that you can find for this...if not...you could write your own and reap the $1M rewards for yourself instead of MS. 😀
July 18, 2013 at 9:32 am
skempf (7/18/2013)
Sean Lange (7/18/2013)
WHILE EXISTS(SELECT * FROM #TempTable)
You posted in the sql 7, 2000 forum. Are you actually using an old...
July 18, 2013 at 9:21 am
Here is how you would do that for the two columns you say are the problem.
update XDDDepositor
SET XDDdepositor.WBeneName = Vendor.RemitName,
XDDDepositor.WBeneAddr = left(Vendor.RemitAddr1, 35),
XDDDepositor.WBeneAddr2 = left(Vendor.RemitAddr2, 35),
XDDDepositor.WBeneCity = Vendor.RemitCity,
XDDDepositor.WBeneState = Vendor.RemitState,
XDDDepositor.WBeneZipPostal...
July 18, 2013 at 9:16 am
Viewing 15 posts - 7,486 through 7,500 (of 15,381 total)