Viewing 5 posts - 16 through 20 (of 20 total)
Cory Ellingson (4/25/2008)
You may need to create the SQL Statement and the execute it with EXEC sp_executesql
Thank you for the help. Let me try to work out how to...
April 29, 2008 at 9:41 am
GSquared (4/25/2008)
I believe DTS can do most of this work for you, if you want it to. You might want to look into using that.
Yes, I tried a DTS...
April 28, 2008 at 8:10 am
It appears that the problem is that you cannot use an "@" in a Create Table.
So somehow I need to be able to generate the GetDate() result and then...
April 25, 2008 at 1:34 pm
Thank you,
I added into the SP the:
DECLARE
@ddlname varchar(100)
And also added:
set @ddlname = 'Create Table Table_' + getdate() + '
(dbid Int, id Text, login_name Text, rleasenumber Text, releasestate Text)'
And...
April 24, 2008 at 1:53 pm
Cory Ellingson (4/24/2008)
CREATE PROCEDURE spExecute_ADODB_SQL
@DDL VARCHAR(2000),
@DataSource VARCHAR(100),
@Worksheet VARCHAR(100)=NULL,
@ConnectionString VARCHAR(255)
= 'Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=%DataSource;
Extended Properties=Excel 8.0'
AS
DECLARE
@objExcel INT,
...
@filename...
April 24, 2008 at 11:58 am
Viewing 5 posts - 16 through 20 (of 20 total)