|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 12:29 PM
Points: 182,
Visits: 952
|
|
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
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 7:46 AM
Points: 96,
Visits: 272
|
|
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
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 12:29 PM
Points: 182,
Visits: 952
|
|
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
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 7:46 AM
Points: 96,
Visits: 272
|
|
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.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 7:46 AM
Points: 96,
Visits: 272
|
|
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
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 12:29 PM
Points: 182,
Visits: 952
|
|
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
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Friday, May 03, 2013 3:54 PM
Points: 83,
Visits: 263
|
|
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?
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 12:29 PM
Points: 182,
Visits: 952
|
|
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
|
|
|
|
|
Forum 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
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 12:29 PM
Points: 182,
Visits: 952
|
|
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
|
|
|
|