Forum Replies Created

Viewing 15 posts - 2,071 through 2,085 (of 5,590 total)

  • RE: Help needed with code

    pwalter83 (12/22/2010)


    What format do you want me to convert the spreadsheets then ?

    CREATE TABLE <YourTableName> (Your Column list);

    ALTER TABLE to show PK/FK/UQ constraints.

    CREATE INDEX to show any indexes on the...

  • RE: Help needed with code

    pwalter83 (12/22/2010)


    Thanks a lot for your answer Rashmi, but now I am stuck with 15 nested case statements (and increasing) which exceed the total 10 allowed in SQL....as there is...

  • RE: Sql query Output in XML format

    This is incomplete, and not quite right, but hopefully it will fire off someone's neurons to get it finished. I remember seeing something here (article or thread) dealing with just...

  • RE: Sql query Output in XML format

    lsurapaneni (12/21/2010)


    I am using SQL 2005

    Really? With an INSERT statement that has a VALUES clause like that?

    BTW, it would be really, really nice if the code you supplied could actually...

  • RE: Sql query Output in XML format

    lsurapaneni (12/21/2010)


    Here's the table def and values

    I take it that you're using SQL 2008 - R1 or R2?

  • RE: SQL2005 SP4 is here

    ALZDBA (12/21/2010)


    The issue with the maintenance plan is that it is actually an SSIS package at SQLServer side, to you'll have to use the 2005 for sql2005.

    SSMS 2008 actually modifies...

  • RE: How to wrap queries so if one fails they all fail

    For your permanent and temporary tables (not table variables), you can wrap all of this up with a begin transaction statement, and with the use of try/catch you can decide...

  • RE: XCOPY utility to Copy Files from One Server to Another!

    Sourav-657741 (12/21/2010)


    Thanks for the suggestion..!!

    However, what would be the additional 'switch' to be used to create an OUTPUT file?

    For most DOS commands, a single greater-than sign followed by a filename...

  • RE: Are the posted questions getting worse?

    Roy Ernest (12/21/2010)


    Our resident Kiwi, Paul being recongnized in the 12 days of Christmas series[/url].

    Well done Paul.

    Congrats Paul! And I have to agree with Kendra - whenever you have...

  • RE: Dyanmi SQL

    I'm seeing two problems:

    SET ''' + @production_date_time +''' = DATEADD(SECOND,3, ''' + @production_date_time +''' )

    First, assuming that @production_date_time = '20101221' (today's date), if this succeeded you would end up with:

    SET...

  • RE: SQL2005 SP4 is here

    ALZDBA (12/20/2010)


    Apparently, on a side by side client install it breaks SQL2008 SSMS project stuff.

    - New project on a new folder generates "creating project failed"

    - opening an existing sql2008 project...

  • RE: Getting ethnicity information - multiple columns to single column

    Gianluca Sartori (12/21/2010)


    Now we just need somebody to say SQL is nothing like COBOL...:-D

    And maybe relate this coding style to yee ole punch cards?

  • RE: Multi values in parameter

    Are you asking about how to have repeated groupings, or how to send a multi-valued parameter to sql to get all of the data for the program.

  • RE: Nested Temporary Tables

    SanDroid (12/20/2010)


    WayneS (12/20/2010)


    6. Table variables are the only available choice to pass a table to a procedure.

    I know XML is not realy a table, but it can be used...

  • RE: Nested Temporary Tables

    SQLkiwi (12/20/2010)


    Both have their strengths and weaknesses, and the more rounded approach is to use each where it is suited. Table variables have many advantages aside from passing TVPs...

Viewing 15 posts - 2,071 through 2,085 (of 5,590 total)