Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««12345»»»

SQL Overview SSIS Package III - Full Package Expand / Collapse
Author
Message
Posted Tuesday, May 13, 2008 6:51 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, November 21, 2014 11:09 AM
Points: 185, Visits: 1,034
The SQL Overview package is missing a Truncate SQL statement for the table Jobs.

To add this to the package

1) Add an Execute SQL Task named "Truncate Jobs" to the Sequence Container "Truncate Tables"
2) Select the same connection information as the other truncate tasks
3) Use the SQL Statement "TRUNCATE Table Jobs"


Sorry for the missing task



David Bird

My PC Quick Reference Guide
Post #499529
Posted Wednesday, June 25, 2008 1:09 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, January 22, 2014 6:38 AM
Points: 104, Visits: 305
I'm getting an error in s01-Job Last Run Datetime. It's a syntax error near '(' in this code. I'm not familiar with the $(ESCAPE_NONE(JOBID)) portion of the statement.

-- Get Job Name
SET nocount ON
DECLARE @JobName sysname
SELECT @JobName = [name] FROM msdb.dbo.sysjobs
WHERE Job_id = CONVERT(uniqueidentifier, $(ESCAPE_NONE(JOBID)))
PRINT '>'+@JobName+'<'


I really like what you've done & want to make this work for me too.

Thanks
Post #523652
Posted Wednesday, June 25, 2008 1:21 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, November 21, 2014 11:09 AM
Points: 185, Visits: 1,034
What is the error you are getting?


What @@VERSION of SQL Server 2005 are you running?


The version of SQL Server I am using is Microsoft SQL Server 2005 - 9.00.3239.00 (X64) Standard Edition.


David Bird

My PC Quick Reference Guide
Post #523663
Posted Wednesday, June 25, 2008 2:08 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, January 22, 2014 6:38 AM
Points: 104, Visits: 305
My bad. I though the job was failing on Step 1, but it was actually Step 5 - because I fat fingered the job name.
Thanks much for a great tool. I plan to work with it & see what other monitoring I can do with it.
Post #523707
Posted Friday, June 27, 2008 2:29 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, January 22, 2014 6:38 AM
Points: 104, Visits: 305
I encountered a problem getting the size of the files, when the database was mirrored in the Update Data Used Size step. I received this error message:
failed with the following error: "The database "MyDatabase" cannot be opened. It is acting as a mirror database.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection

I tried changing the portion of the query that gets the database names
from
SELECT name FROM master.dbo.sysdatabases
WHERE Status & 512 = 0
To
SELECT name FROM master.dbo.sysdatabases
WHERE DATABASEPROPERTYEX(name, 'status') = 'ONLINE'

Now I'm getting this error:
failed with the following error: "Syntax error, permission violation, or other nonspecific error". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

I know the new Select statement works, so how do I determine what portion of the query is failing? I cannot use the SQL Verify function in the Build Query tool.
I'm stumpted & looking for assistance.

Thanks
Post #525347
Posted Monday, July 7, 2008 11:32 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, November 21, 2014 11:09 AM
Points: 185, Visits: 1,034
Try using

SELECT name
FROM master.dbo.sysdatabases
WHERE status&512 = 0
and status&32 = 0

Any databases that are offline or being loaded will be skipped.

For a list of all the status values take a look at this post by
Lowell


David Bird

My PC Quick Reference Guide
Post #529506
Posted Thursday, July 17, 2008 10:47 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Tuesday, November 18, 2014 10:52 AM
Points: 84, Visits: 294
Hello, this SSIS package is something me and my coworkers are really looking forward to implementing on our server.
I seem to be having a problem with the "Collect Server Info" step. It's only reading / loading information from one server, instead of 2 or 3. I have updated the "SSIS_ServerList" table to use/read information from multiple servers but still not luck. What could I be missing for this step?



Post #536157
Posted Thursday, July 17, 2008 11:39 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, November 21, 2014 11:09 AM
Points: 185, Visits: 1,034
Here are some things to check:
1) Confirm the skip indicator in the table SSIS_ServerList is not set for any of the servers.
2) Check for any connection errors in SSIS_Errors.
3) Make sure the table SSIS_ServerList you are referencing in the SSIS package is correct.
4) Run the package through SQL Server Business Intelligence Development Studio and watch it connect to each server
5) Remove the working server from SSIS_ServerList and see if it still collects the same information.


David Bird

My PC Quick Reference Guide
Post #536193
Posted Tuesday, July 22, 2008 12:21 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, July 15, 2009 11:12 AM
Points: 2, Visits: 22
Hello

I am getting this error at job step s01:

Msg 102, Level 15, State 1, Line 5
Incorrect syntax near '('.


-- Get Job Name
SET nocount ON
DECLARE @JobName sysname
SELECT @JobName = [name] FROM msdb.dbo.sysjobs
WHERE Job_id = CONVERT(uniqueidentifier, $(ESCAPE_NONE(JOBID)))
PRINT '>'+@JobName+'<'


Any ideas? I am running SQL 2005 9.0.3159 32 bit
Post #538732
Posted Tuesday, July 22, 2008 12:44 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, November 21, 2014 11:09 AM
Points: 185, Visits: 1,034
I was able to run the SQL you posted without problem on SQL Server 2005 Standard 9.0.3159 32 bit.

I did get that error while editing the job step and clicking the parse button. When I ran the job with just the code you posted, it ran successfully.




David Bird

My PC Quick Reference Guide
Post #538762
« Prev Topic | Next Topic »

Add to briefcase ««12345»»»

Permissions Expand / Collapse