Viewing 11 posts - 1 through 11 (of 11 total)
January 5, 2018 at 9:23 am
All done - IP address is he same and the ports bit is blank - really stuck on this one
December 1, 2015 at 12:32 am
Thanks for the input - I am running this on a local machine - no accessing remote machines. I have installed an instance on a widows server 2008 machine and...
November 30, 2015 at 11:03 am
need it to be automatic though - dont think i can trigger it automatically
September 25, 2015 at 11:03 am
Not thought about that option but may try and find some examples on the web. cheers
September 25, 2015 at 8:50 am
thanks for the reply- can SQL reporting services take an existing template like i have or does it generate the whole document on the fly?
September 25, 2015 at 3:26 am
hopefully nearly there
i have changed where you suggested
DECLARE @xlFileName nvarchar(255)
SET @xlFileName=N'D:\'+ @XPRACTICE +'.XLS'
PRINT @pracid
DECLARE @sql as nvarchar(2000)
SET @sql=N'INSERT INTO OPENROWSET(''Microsoft.Jet.OLEDB.4.0'',''Excel 8.0;DATABASE='+@xlFileName+''',''Select * from [DATA$]'')SELECT COMPANY,LOANREF,AGREEMENTNUMBER,SOLREF,FIRSTNAME,SURNAME,ADD1,ADD2,ADD3,POSTCODE,CAPITAL,INTEREST,FEES,BALANCE,STARTDATE,DUEDATE,LOANTYPE FROM...
August 11, 2010 at 4:43 am
thanks for the help - these are my first go a procs.
tried bringing the select statement in but it now says i Must declare the scalar variable "@PRACID".
i have listed...
August 11, 2010 at 4:05 am
still getting an error - altered your code slightly, here is all the code below for this bit - @pracid is declared in code above it (works fine)
EXEC sp_configure 'show...
August 11, 2010 at 2:28 am
DECLARE @datasource as VARCHAR(4000)
SET @datasource = 'Excel 8.0;Database=D:\'+ @XPRACTICE +'.XLS;'
INSERT INTO OPENROWSET ('Microsoft.Jet.OLEDB.4.0', @datasource ,'Select * from [DATA$]')
i get an Incorrect syntax near '@datasource'
August 10, 2010 at 9:52 am
i declared @filename:
DECLARE @FILENAME AS VARCHAR(50)
August 10, 2010 at 9:44 am
Viewing 11 posts - 1 through 11 (of 11 total)