SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL Overview SSIS Package III - Full Package


SQL Overview SSIS Package III - Full Package

Author
Message
David Bird
David Bird
SSChasing Mays
SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)

Group: General Forum Members
Points: 647 Visits: 1224
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
BigSam
BigSam
SSC-Enthusiastic
SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)

Group: General Forum Members
Points: 198 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
David Bird
David Bird
SSChasing Mays
SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)

Group: General Forum Members
Points: 647 Visits: 1224
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
BigSam
BigSam
SSC-Enthusiastic
SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)

Group: General Forum Members
Points: 198 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.
BigSam
BigSam
SSC-Enthusiastic
SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)SSC-Enthusiastic (198 reputation)

Group: General Forum Members
Points: 198 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
David Bird
David Bird
SSChasing Mays
SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)

Group: General Forum Members
Points: 647 Visits: 1224
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
ppreston
ppreston
SSC-Enthusiastic
SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)

Group: General Forum Members
Points: 104 Visits: 315
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?



David Bird
David Bird
SSChasing Mays
SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)

Group: General Forum Members
Points: 647 Visits: 1224
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
Kurt-378850
Kurt-378850
Forum Newbie
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: General Forum Members
Points: 6 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
David Bird
David Bird
SSChasing Mays
SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)SSChasing Mays (647 reputation)

Group: General Forum Members
Points: 647 Visits: 1224
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search