Viewing 15 posts - 286 through 300 (of 433 total)
Is there a static number of columns in the Excel spreadsheet or is this for dynamic transformations?
May 3, 2007 at 10:03 am
Your variable @intCompanyID is declared as INT - you can't mix this with VARCHAR when concatenating arguments.
Change WHERE intCompanyId = ' + @intCompanyID to
May 3, 2007 at 9:11 am
Just reading books... Maybe I should get out more!
May 1, 2007 at 10:20 am
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.
May 1, 2007 at 10:03 am
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.
May 1, 2007 at 9:18 am
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...
May 1, 2007 at 5:29 am
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,...
April 30, 2007 at 6:28 am
In the good old UK, it's knocking-off time. Hope this works for you.
April 27, 2007 at 10:34 am
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?
April 27, 2007 at 10:26 am
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...
April 27, 2007 at 10:07 am
"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...
April 27, 2007 at 8:12 am
"All is fair in love and war... "
Sadly this is neither; just, as mentioned, shameless.
April 27, 2007 at 5:00 am
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...
April 27, 2007 at 2:14 am
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...
April 26, 2007 at 5:53 am
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...
April 26, 2007 at 5:39 am
Viewing 15 posts - 286 through 300 (of 433 total)