Viewing 15 posts - 196 through 210 (of 213 total)
So your main package has an Execute Package Task that executes a 2nd DTS package that has an Active X Script task that uses the FileSystemObject to copy the files?
If...
July 11, 2006 at 4:59 pm
Add a connection object that points to your sql server.
Add an Execute SQL Task to the package and enter the following SQL statement:
DECLARE @count int
SELECT @count = COUNT(*) FROM Employee WHERE...
July 11, 2006 at 1:41 pm
If you're 100% certain that the path and filenames are correct and that the proper permissions on the folder the file resides in have been set, then most likely the...
July 10, 2006 at 2:03 pm
You could always query the sysjobs & sysjobsteps tables and paste the results in a spreadsheet.
SELECT
sj.[name],
sj.[description],
sj.enabled,
ss.step_id,
ss.step_name,
ss.command
FROM
msdb.dbo.sysjobs sj
INNER JOIN
msdb.dbo.sysjobsteps ss ON sj.job_id = ss.job_id
ORDER BY
sj.[name],
ss.step_id
July 10, 2006 at 10:28 am
Use this instead:
Set oTSK = oPKG.Tasks("DTSTask_DTSExecuteSQLTask_2").CustomTask
July 6, 2006 at 10:35 am
Can you create a DSN for the server on your computer?
June 28, 2006 at 11:26 am
Is that a valid path on the SQL server when logged in with the account SQL Server runs on? Does the account that the SQL Server Agent runs on have...
June 28, 2006 at 10:29 am
Create the following table and stored procedure. Schedule the proc to run in a sql job:
CREATE TABLE [DBAFileInfo] (
[HistId] [int] IDENTITY (1, 1) NOT NULL ,
[SrvName] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS...
June 27, 2006 at 4:35 pm
You can store the .pdf file in an image field.
I don't see how you could import the contents of the .pdf file though.
June 27, 2006 at 12:15 pm
I've found that if you execute a package step by step, it will run using the local and mapped drives on your computer. If you execute the entire package, it...
June 26, 2006 at 3:50 pm
The DTSRun utility can't be executed directly in a SQL statement. You'll have to use the xp_cmdshell stored procedure to run it.
Also, if you're specifying the username & password, you...
June 19, 2006 at 3:57 pm
You'll need the PGP command line interface installed on the SQL server the DTS package will be running on. Use the following code in an Active X script task after...
June 19, 2006 at 10:29 am
Using this code in an ActiveX script transformation will do what you want:
Function Main()
Dim strSource
Dim strNumbersOnly
Dim i
strSource = DTSSource("Col001")
For i = 1 To Len(strSource)
If IsNumeric(Mid(strSource, i, 1)) Then
strNumbersOnly= strNumbersOnly &...
May 26, 2006 at 1:31 pm
Open your Data Transformation task and go to the Options tab. Enter a path in the Exception File text box, then make the Max Error Count > 0.
Any errors...
May 26, 2006 at 10:40 am
Make sure that the machine this is running on has Excel installed on it. Also look at the processes running under Task Manager. If you see EXCEL.EXE, kill it and...
May 23, 2006 at 10:39 am
Viewing 15 posts - 196 through 210 (of 213 total)