Viewing 15 posts - 4,816 through 4,830 (of 5,502 total)
Most probably the file is different than the sample file Flo used in his example due to the lack of any further information... Change 'C:\test.xml' to the real file destination.
Also,...
November 10, 2009 at 10:20 am
How many days does a year have in your scenario?
same question for month...
Your example could also result in 1 year 0 month 30 days (assuming a year with February 29th)...
November 10, 2009 at 9:27 am
Seems like the insert statement doesn't reflect your situation (I'd assume [SHP_ZIP] to have NULL values...).
In that case, (to complete Daves hint):
SELECT
[ORD_NBR],
[1ST_NME],
[LST_NME] ,
ISNULL([SHP_ZIP],[BILL_ZIP]) AS zipcode...
November 9, 2009 at 12:44 pm
What is the reason to send one xml node at a time?
Wouldn't it be easier to convert all rows per batch into one xml variable (matching the node structure, of...
November 9, 2009 at 12:29 pm
Did you check that the linked server is available at all?
(e.g. by test the connection using right click on the linked server in SSMS?)
Btw: Seems like the question wasn't that...
November 6, 2009 at 11:06 am
Button (im)pressed. Nice one, Jeff!
I thought there was an easy solution out there...
November 6, 2009 at 10:28 am
Well, that would turn the "old fashioned" DOS command option into a "retrofit version" 🙂 But the basic concept would be the same...
So, if your company would accept it I...
November 5, 2009 at 4:14 pm
AFAIK there is no "easy" way of appending to an existing file.
I remember a few options being discussed a while ago (but I can't find the thread...):
a) load the content...
November 5, 2009 at 12:58 pm
Would something along those lines do it?
DECLARE @t table(Type char(3),Cnt int, Date datetime)
INSERT INTO @t values('Foo' ,206, '11/04/2009')
INSERT INTO @t values('Foo' ,509, '11/05/2009')
SELECT
t1.type,
t1.date,
t1.Cnt,
t2.cnt as CntYesterday,
t1.cnt-t2.cnt as Diff...
November 5, 2009 at 12:50 pm
marty.seed (11/5/2009)
The business rule for defining a Fiscal Month is as you have...
November 5, 2009 at 11:54 am
You're very welcome!
Actually, I felt like I had to do some "charity work" since I had a real bad day a work...
But now I'm feeling better! Thank you for your...
November 3, 2009 at 2:09 pm
What is the business rule for the beginning of a new fiscal year (always first Sunday of December?)
What is the business rule for defining a fiscal month? Is it based...
November 3, 2009 at 1:30 pm
Hi,
it took me a while so set up a step by step "tutorial" on how to convert a static cross tab into a dynamic cross tab using your sample data...
November 3, 2009 at 1:22 pm
Would you mind sharing some sample data together with your expected result?
Please see the first link in my signature on how to post sample data.
There are several ways to do...
November 3, 2009 at 11:52 am
Viewing 15 posts - 4,816 through 4,830 (of 5,502 total)