The SQL server specified in SSIS service configuration is not present or is not available.
July 2, 2009 by John Tran · Leave a Comment
If your connected to SQL 2005 Integrated Services and you get the following error message when expanding MSDB
TITLE: Microsoft SQL Server Management Studio
——————————
Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476
——————————
ADDITIONAL INFORMATION:
The SQL server specified in SSIS service configuration is not present or is not available. This might occur when there is no default instance of SQL Server on the computer. For more information, see the topic “Configuring the Integration Services Service” in Server 2005 Books Online.
Login timeout expired
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
Named Pipes Provider: Could not open a connection to SQL Server [2]. (MsDtsSrvr)
——————————
Login timeout expired
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
Named Pipes Provider: Could not open a connection to SQL Server [2]. (Microsoft SQL Native Client)
Check the following,
- Launch SQL Server Configuration Manager
- Check that the SQL Server Integrated Services is running and that the Log On As account is an Active Directory account with correct permissions.
- Under SQL Server 2005 Network Configuration make sure Names Pipes is enabled for the SQL instance.
If you have multiple instance then you may need to change the MsDtsSrvr.ini.xml to state the default instance.
The registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTS\ServiceConfigFile specifies the location and name for the configuration file that Integration Services service uses. The default value of the registry key is C:\Program Files\Microsoft SQL Server\90\DTS\Binn\ MsDtsSrvr.ini.xml. You can update the value of the registry key to use a different name and location for the configuration file.
In the configuration file, go to
Invalid Object Name when using sp_send_dbmail in SQL 2005
June 11, 2009 by John Tran · Leave a Comment
If you are trying to send a query result via email in SQL 2005 then you will need to use sp_send_dbmail procedure. As with other Database Stored Mail procedures, the sp_send_dbmail procedure lives in the msdb database. Therefore, you need to ensure that you are a member of the DatabaseMailUserRole in the msdb database.
Now secondly if you are using the @query parameter then you need to make sure that you specify the database where you would like the query to run. You can do this by using the @execute_query_database parameter. If you do not do this then you will receive an invalid object name error.
Example:
EXEC msdb.dbo.sp_send_dbmail
@recipients = ‘youremail@domain.com‘,
@subject = ‘Subject‘,
@profile_name = ‘DBMail Profile Account Name‘,
@query = ‘your query‘
@execute_query_database = ‘database you would like to query‘,
@body = ‘your message here or you can leave out if you don’t want anything other then the query in the body‘,
@attach_query_result_as_file = 0 or 1;
Another thing to remember is if you want the query result to be displayed in the body and not as a file attachement then make sure you use the @attach_query_result_as_file parameter and set the value to 0. If you would like to send it as a file attachment then you will need to set the value as 1.
MetaFrame Presentation Server cannot contact the license server Empty error message
October 28, 2008 by John Tran · 4 Comments
If you receive the following error message “MetaFrame Presentation Server cannot contact the license server Empty” when logging on your Citrix Server, do the following.
- Check the Event Log on the Citrix Server
You should see the following error under the System Log – This computer running MetaFrame Presentation Server will now stop accepting connections. This server is no longer in or could not enter a licensing grace period. - Now check the Event Log on your licensing Server
You should see the following error under the Application Log Error: 9002, Severity: 17, State: 6
The log file for database ‘CITRIX’ is full. Back up the transaction log for the database to free up some log space. - If you do not see the following errors then please visit http://support.citrix.com/article/CTX112408
- If you do see the errors in your Event Log then you must truncate the inactive transactions in your transaction log and shrink the Citrix transaction log file. The easiest way to do this is to firstly backup your Citrix database log file and then run the following query.
DBCC SHRINKFILE(CITRIX_log, 10)