Forum Replies Created

Viewing 5 posts - 1 through 6 (of 6 total)

  • RE: Pass variables into OPENROWSET

    It didn't like @WDA smallint, so I had to change to nvarchar(2). I ended up taking out the 'region_id= ' in all the sql statements and dumped all regions...

  • RE: Pass variables into OPENROWSET

    Sounds good. I'll have to play with it. Probably won't have anything until late next week. I'll be out of the office M-W.

    Not sure I...

  • RE: Pass variables into OPENROWSET

    I did set it up that way. Still got chopped. Thanks.

  • RE: Pass variables into OPENROWSET

    Thanks again. I got it working, but unfortunately, my sql statements exceeded what nvarchar will hold for the @sql parameter. I just gave you a portion of the...

  • RE: Pass variables into OPENROWSET

    Thanks Adam. Where do I pass in the worksheet name? This is a portion of my sp:

    Create procedure spAttendanceWDA (@WDA smallint)

    as

    insert into OPENROWSET('Microsoft.Jet.OLEDB.4.0',

    'Excel 8.0;Database=(path)\TEST.XLS;',

    'SELECT * FROM [Sheet1$]')

    Select PY,...

Viewing 5 posts - 1 through 6 (of 6 total)