Viewing 15 posts - 6,091 through 6,105 (of 7,636 total)
Thanks for the feed back, JJ.
August 4, 2008 at 9:27 am
OK, sure.
First case:
jmclain (8/1/2008)
...
CREATE PROCEDURE [dbo].[POXML](
@strXML VARCHAR(2000)
)
...
EXEC sp_xml_preparedocument @XMLDocPointer OUTPUT, @strXML
BEGIN TRANSACTION
INSERT INTO PO(PO_ID, PO_DATE, CUST_PO_NBR, po_rcvd_dttm)
SELECT '1', podate,...
August 4, 2008 at 8:48 am
dbaker (8/4/2008)
- criticism smacks of double standards methinks
Please, explain?
August 4, 2008 at 8:10 am
Try this instead:
With cteServers as (
Select PC.PC
,PC.PC_DomainName
, Disks.Disk_Desc
, Row_Number() Over(Partition by Disks.Disk_Desc order by Disks.Disk_Desc) as N
From PC
LEFT JOIN...
August 4, 2008 at 6:53 am
dbaker (8/4/2008)
- better solution (for SQL200x) might have been
...
exec sp_MSforeachdb 'use[?];
...
August 4, 2008 at 6:42 am
Question: are you using CHAR or VARCHAR? I ask because RTRIM and LTRIM probably do not work the way you expect for CHAR. Remember, they're not variable in...
August 3, 2008 at 8:52 pm
Right. The resource hit to do this in the database is not usually significant, however, it does "uglify" the code and lead to secondary costs as Jeff W pointed...
August 3, 2008 at 5:59 pm
For many years I worked as a Capacity Planning Consultant, first for Digital, then later on my own. Capacity planning is a lost art now, but was pretty big...
August 3, 2008 at 5:45 pm
Heh, right. The section with the cursor is not necessary, just delete it.
August 3, 2008 at 10:44 am
This should do it:
;With cteServers as (
Select server
, logical_disk
, Row_Number() Over(Partition by server, order by logical_disk) as N
From Servers
)
Select...
August 3, 2008 at 10:40 am
Oh yeah, I remember that one from way back. Heh.
August 3, 2008 at 1:18 am
Actually, after re-reading your original post, I think that I misunderstood what you were asking for and that Jeff is right.
August 3, 2008 at 1:13 am
Oops, sorry. Didn't see this until now. Well, glad you worked it out...
August 3, 2008 at 1:08 am
Try this:
--====== Change Cursor to Temp table
Select Identity() as ID
, *
--move all of the temp variables here too
, Coalesce((SELECT MSALESNBR
FROM USER_STAGE.dbo.BOOKING_FACT_EXT_CUSTOMER
WHERE MSALESNBR = TMSalesNbr
), 0) as TMTo1Flag
,...
August 3, 2008 at 12:30 am
What's the maximum number of logical drives per server?
August 2, 2008 at 7:12 pm
Viewing 15 posts - 6,091 through 6,105 (of 7,636 total)