Viewing 15 posts - 4,711 through 4,725 (of 5,502 total)
I don't know whether you have a calendar table or not - I'm guessing there's none...
So, please have a look at the Tally Table article I linked in my signature...
November 27, 2009 at 9:36 am
Since it's not really appending a new node but mor something like:
1) delete last row of xml file (<Employees>)
2) insert new lines (<Employee>
<Name>Adam</Name>
<Address>Washington</Address>
<Phone>234-567-8901</Phone>
<Employee>)
3) insert last row (<Employees>)
I'd rather export the...
November 27, 2009 at 9:01 am
I'd assume that the columns you're updating in table 2 are part of one or more index.
If so, your update requires an index update as well.
Would it be possible to...
November 27, 2009 at 6:55 am
Where do you have your xml data?
Is it a file or a xml column in another table?
If it's a file, do you need to append it (assuming appropriate node structure)...
November 27, 2009 at 6:51 am
Something along those lines should work:
SELECT COUNT(*) 'Total',
sum(case WHEN TYPE = 1 THEN 1 ELSE 0 END) AS 'TYPE 1',
sum(case WHEN TYPE = 1 THEN 1.0 ELSE 0 END) /Count(*)...
November 27, 2009 at 3:30 am
Did you try asking this question in a MySql forum?
It's more than likely that you won't be able to use the SQL Server solutions you might get here.
On the other...
November 27, 2009 at 2:21 am
The FIFO challenge,
http//ask.sqlservercentral.com/questions/826/the-fifo-stock-inventory-sql-problem , give me some direction on rewriting this as set-base solution, but I can't seem to put this all together.
Would you mind sharing what you've tried so...
November 26, 2009 at 12:20 pm
looks like you're using float data type for at least one of your columns.
This will give you approximate results (see quote below).
You might want to change it to numeric(p,s) data...
November 26, 2009 at 10:40 am
What have you tried so far?
I'd recommend reading the articles regarding CrossTab and DynamicCrossTab (if required) as referenced in my signature.
Before doing so you probably should get the data in...
November 25, 2009 at 3:44 pm
jb-1079038 (11/25/2009)
November 25, 2009 at 2:56 pm
Can't really help.
here's the complete script I'm testing with (please note that I change the name of your original table):
CREATE TABLE [dbo].[tblInsiderXMLData_test](
[ID] [int] IDENTITY(1,1) NOT NULL,
[CIK] [int] NULL,
[xmlFileName] [varchar](300) NULL,
[xml_data]...
November 25, 2009 at 11:25 am
What is the table structure of tblInsiderXMLData ?
And how many rows are in that table?
Since I cannot confirm your statement (your data will return only two rows when I run...
November 25, 2009 at 10:58 am
Dan Guzman - Not the MVP (11/24/2009)
Imu92, what is @xml?
I'm sorry... I used an XML variable to test the XQuery against.
Using the table name and yolumn you mentioned before it...
November 25, 2009 at 8:09 am
Unfortunately, your expected output does not match your sample data (e.g. there is no issuerCik with a value of 1000047).
Also, the table structure of your expected output is not clear...
November 24, 2009 at 4:56 pm
The most helpful link I found on the web was: http://devio.wordpress.com/2008/03/04/retrieving-xml-data-in-sql-server-2005/ (searching for "sql 2005 Msg 9402").
Interesting part when playing around with the data on my machine: I could easily...
November 24, 2009 at 3:45 pm
Viewing 15 posts - 4,711 through 4,725 (of 5,502 total)