Viewing 15 posts - 2,056 through 2,070 (of 2,462 total)
dwain.c (9/23/2013)
matt6749 (9/23/2013)
-- Itzik Ben-Gan 2001
November 5, 2013 at 10:29 pm
Thanks Dwain!
-- Itzik Ben-Gan 2001
November 5, 2013 at 9:00 pm
Solomon Rutzky (11/5/2013)
Alan.B (11/5/2013)
With your question about reasonableness, it's up to you. If performance wasn't an issue, why maintain two different functions? If it does matter, you can create a...
-- Itzik Ben-Gan 2001
November 5, 2013 at 5:19 pm
Thanks!
With your question about reasonableness, it's up to you. If performance wasn't an issue, why maintain two different functions? If it does matter, you can create a calculated column on...
-- Itzik Ben-Gan 2001
November 5, 2013 at 11:44 am
Forgive me if the code to do this has already been posted but I had a requirement for a greater-than-8k splitter. I made the following changes:
1) Changed @pString to...
-- Itzik Ben-Gan 2001
November 5, 2013 at 10:18 am
Jeff Moden (10/31/2013)
Eric Mamet (10/31/2013)
I know but I was hoping it would be fast...Just talked to my customer and I'll try using CLR!
Yipee!!! 😀
Heh... hate to throw a...
-- Itzik Ben-Gan 2001
November 1, 2013 at 11:44 am
No Problem:-)
-- Itzik Ben-Gan 2001
October 31, 2013 at 1:48 pm
I know but I was hoping it would be fast...
Just talked to my customer and I'll try using CLR!
Yipee!!!
I don't know if a CLR is going to be the...
-- Itzik Ben-Gan 2001
October 31, 2013 at 11:49 am
I've run into this before. Take a look at this article: http://nerdwords.blogspot.com/2010/01/sql-server-error-conversion-of-xml.html
-- Itzik Ben-Gan 2001
October 31, 2013 at 11:23 am
mickyT (10/29/2013)
And so far Dwains Tally solution looks like the winner based on the IO stats:-D
As far as speed is concerned, mine is still in the top 5!
-- Itzik Ben-Gan 2001
October 30, 2013 at 5:29 am
First, is the application executing a stored procedure or an Ad Hoc SQL Query? If it's Ad Hoc SQL you will want to put the query into a stored procedure....
-- Itzik Ben-Gan 2001
October 29, 2013 at 4:47 pm
There should be a way to do this without these self-joins but I can't figure it out. That said, this will do the trick:
WITH distinct_ids AS
(
select DISTINCT t1.id, MAX(t2.rnk)...
-- Itzik Ben-Gan 2001
October 29, 2013 at 4:02 pm
harsimranjeetsinghwasson (10/24/2013)
DECLARE @Payrollhandle int
DECLARE @Payrolldoc VARCHAR(MAX)=
('<Payroll StartDate="2013-10-30" EndDate="2013-10-31">
<Doctor ID="74962">
<WorkDays>
<Office ID="60101" Days="23"/>
<Office ID="60102" Days="23"/>
</WorkDays>
<AsstDays>
<Office ID="60101" Days="23"/>
<Office ID="60102" Days="23"/>
</AsstDays>
</Doctor>
</Payroll>')
EXEC SP_xml_preparedocument @Payrollhandle OUTPUT,@Payrolldoc
SELECT
*...
-- Itzik Ben-Gan 2001
October 29, 2013 at 3:08 pm
XML questions don't always get much love around here. Here's what you are looking for:
EXEC SP_xml_preparedocument @Payrollhandle OUTPUT,@Payrolldoc;
SELECT A.*, B.AsstDaysOfficeID
FROM
OPENXML(@Payrollhandle,'Payroll/Doctor/WorkDays/Office',8)
WITH
(DoctorID INT '../../@ID',
WorkDaysOfficeID VARCHAR(10) './@ID') AS A
OUTER APPLY
OPENXML(@Payrollhandle,'Payroll/Doctor/AssDays/Office',8)
WITH...
-- Itzik Ben-Gan 2001
October 29, 2013 at 2:39 pm
Is it possible to setup replication/Mirroring to a database server which is not in our windows domain?
Yes but it will be more work to secure.
We have a database of...
-- Itzik Ben-Gan 2001
October 29, 2013 at 11:22 am
Viewing 15 posts - 2,056 through 2,070 (of 2,462 total)