Forum Replies Created

Viewing 15 posts - 4,711 through 4,725 (of 5,504 total)

  • RE: How to import data from excel file into mysql

    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...

  • RE: collation conflict

    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...

  • RE: Qty values for each day

    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...

  • RE: How to append a record in xml if any new record is inserted in database ?

    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...

  • RE: Updating Date-time Field takes long

    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...

  • RE: How to append a record in xml if any new record is inserted in database ?

    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)...

  • RE: Percentage in Case statement

    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(*)...

  • RE: How to import data from excel file into mysql

    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...

  • RE: cursor...data reporting

    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...

  • RE: sum() change result

    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...

  • RE: Totals for each month in a date range query

    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...

  • RE: Averages from logon data

    jb-1079038 (11/25/2009)


    etc. etc. where the (10) & (11) are the month and the numbers after the space are time taken to logon that day, and the commas used as delimiters...

  • RE: XML into a table

    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]...

  • RE: XML into a table

    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...

  • RE: XML into a table

    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...

Viewing 15 posts - 4,711 through 4,725 (of 5,504 total)