Viewing 15 posts - 4,711 through 4,725 (of 5,504 total)
Bru Medishetty (11/27/2009)
If your goal is to import data from an Excel source for one off time, then you can use Import / Export wizard available in SQL Server.
I don't...
November 27, 2009 at 1:01 pm
Seems like your table are set to different collation.
Check your table definition scripts to find the coulmn with a different collation.
To figure out which one it is you can either...
November 27, 2009 at 11:04 am
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
Viewing 15 posts - 4,711 through 4,725 (of 5,504 total)