Forum Replies Created

Viewing 15 posts - 286 through 300 (of 433 total)

  • RE: Getting header columns of excel file in DTS using script

    Is there a static number of columns in the Excel spreadsheet or is this for dynamic transformations?



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: DTS stored procedure

    Your variable @intCompanyID is declared as INT - you can't mix this with VARCHAR when concatenating arguments.

    Change WHERE intCompanyId = ' + @intCompanyID to



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: Create DTS and output to a SAS data format

    Just reading books... Maybe I should get out more!



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: Create DTS and output to a SAS data format

    I don't know TBH. As I said I've never used SAS just read a book or two .

    I'll see if I can find out.



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: Create DTS and output to a SAS data format

    I think it's something like:

    dimport  "filename.csv" targetDataset

    As far as I am aware, the csv file needs to be tab delimited though.



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: Create DTS and output to a SAS data format

    Theres an article on creating a SAS program to read a csv file here:

    http://www.ts.vcu.edu/faq/stats/sasexcel.html

    Once set up you might be able to execute that using the SAS command line. If...



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: Error: "Invalid Procedure Call or Argument, "DTS Lookups"

    Jaybee,

    I'm afraid you'll have to give us more information than that buddy. Is this a transformation task? From what to what? What does the lookup involve?

    The more info you give,...



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: RE: Refreshing Views and Recompiling Stored Procs

    In the good old UK, it's knocking-off time. Hope this works for you.



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: Need help with looping

    You should be able to do this with a set based query rather than use any loop/cursor. Can you post the DDL of the table and some sample data?



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: RE: Refreshing Views and Recompiling Stored Procs

    Okay, still hovering somewhere around the original script.... This stored procedure takes a database name and output file name (for locating errors) and creates a scheduled Sql Server Agent Job. Each step...



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: RE: Refreshing Views and Recompiling Stored Procs

    "which removes the automation portion of it."

    I'm missing something here... If the EXEC is moved in to the cursor, it will execute each...



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: Generate script for data

    "All is fair in love and war... "

    Sadly this is neither; just, as mentioned, shameless.



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: RE: Refreshing Views and Recompiling Stored Procs

    You could move the EXEC in to the cursor and change the first line starting SET @sqlCommand = @sqlCommand + 'PRINT.... to SET @sqlCommand ='PRINT...

    Would this not...



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: Apply scripts to UAT server

    Do you have these scripts already saved as .sql or .whatever files in a directory?

    * Added *

    If you have, you could use the procedure below utilising a function that reads files. This...



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: RE: Refreshing Views and Recompiling Stored Procs

    A small change to the script will allow you to run each recompile separately. You can also check what's actually going to run with the PRINT command before using the...



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

Viewing 15 posts - 286 through 300 (of 433 total)