Month: April 2019

FullText Search Error 1075: The dependency service does not exist or has been marked for deletion

Disclaimer:Hey Guys, this post contains affiliate link to help our reader to buy best product\service for them. It helps us because we receive compensation for our time and expenses.
Error: FullText Search Error 1075: The dependency service does not exist or
has been marked for deletion

Infrastructure: SQL server 2005 and onward

Scenario: While I was working on Migration project for one of my prime customer from SQL2005 32-bits to SQL2005 64bits few years ago, after SQL sever build I wanted to restore databases backup taken to the destination one by one.

but while doing so, I received an error FullText Search Error 1075: The dependency service does not exist or has been marked for deletion and this error led me not to restore databases backup.

then I checked the FullText service and tried to start it but could not cross the bridge.

Dear Visitors!
To get Best Deals and Discounts Buy Now from Amazon just by
Clicking This Image

Simply send snap of your product details after delivery at ad22092012@gmail.com for more surprises or additional discounts

 

Resolution:

I then went inside the event logs just to see if any other error details could be found and yeah, I was right I found more info which guided me to the corrective action.

that way I got to know Full text service was not running because it depended service RPCSS NTLMSSP was actually not available at all.

Follow the below steps in order to resolve this error.

1. Open the registry key HKEY_LOCAL_MACHINE\System\CurrentControlSet
\Services\msftesql

2. Rename the value DependOnService to anything or make the entry blank but take the backup of registry while doing so.

3. Restart the server

Hope this helps!

The SQL server job is in suspended mode-Unable to start execution of step 1 (reason: The %s subsystem failed to load [see the SQLAGENT.OUT file for details]; The job has been suspended). The step failed.

Disclaimer:Hey Guys, this post contains affiliate link to help our reader to buy best product\service for them. It helps us because we receive compensation for our time and expenses.

Note:  Best viewed in Internet Explorer 6 and above

Error: The SQL server job is in suspended mode-Unable to start execution of step 1 (reason: The %s subsystem failed to load [see the SQLAGENT.OUT file for details]; The job has been suspended). The step failed.

Infrastructure: SQL server 2005 and onward

Scenario: While I was working on database migration project for one of the my client and since it was SQL2005 32bits to SQL 2005 64bits migration project, I had replaced msdb database from sql server2005(32-bits) to sql server2005(64-bits) msdb database backup. Since the installation directory had been changed while replacing resulted in old directory entry in table ‘msdb.dbo.syssubsystems’

Resolution:

1.First take the backup of msdb database of newly migrated sql server.
2. Delete the old entry which showing the old directory by running the t-sql command [DELETE FROM msdb.dbo.syssubsystems]
3. Fill the table with new rows pointing to the proper location of the DLLs by running  [EXEC msdb.dbo.sp_verify_subsystems 1]
For more info please visit MS official link for the same:-

https://support.microsoft.com/en-us/help/914171/error-message-when-you-restore-or-attach-an-msdb-database-or-when-you

Hope this helps:)

Dear Visitors!
To get Best Deals and Discounts Buy Now from Amazon just by
Clicking This Image

Simply send snap of your product details after delivery at ad22092012@gmail.com for more surprises or additional discounts

 

 

 

Cannot open backup device. Operating system error 5(Access is denied.) while backing up\restoring SQL server Databases.

Disclaimer:Hey Guys, this post contains affiliate link to help our reader to buy best product\service for them. It helps us because we receive compensation for our time and expenses.

Note:  Best viewed in Internet Explorer 6 and above

Error: Cannot open backup device. Operating system error 5(Access is denied.)

Infrastructure: SQL server 2000 and onward

Scenario: This is very famous  error which has been seen no of times in DBA life.

If you go on the error, it says there is some problems with backup device or permission issues and so on. You will get so many blogs and will find proper resolutions referring those blogs, so I am not going to write about that here.

I will simply talk about the scenario I had on my client environment.

Everything was correct  like  Backup command was right,backup media was rightly placed and had full permission and it was verified multiple times.

No problem with media was captured. all were seem to be good but though I was getting Cannot open backup device. Operating system error 5(Access is denied.)

And one thing was quite strange backup command was running fine in new query window in SSMS but it was throwing Cannot open backup device error while automating it through Maintenance Plan. No problem was detected in Maintenance Plan in-fact rest DBs backup were occurring fine.

Resolution:

Since there were no fault in Media, No permission issues, No syntax problems were found.

I run the backup script (GUI then script to new Window) for that particular database through SSMS and suddenly noticed an [EXTRA SPACE] in the end of database name in backup query.

That one extra space was the only culprit and the I checked the database name. I highlighted the DB name in Object explorer and found that DB name also had same extra space that the reason backup command also had same space.

I removed that extra space for that particular database and finally succeeded to take backup automatically.

Hope this helps!

Dear Visitors!
To get Best Deals and Discounts Buy Now from Amazon just by
Clicking This Image

Simply send snap of your product details after delivery at ad22092012@gmail.com for more surprises or additional discounts

 

 

 

Only a member of the sysadmin server role can add a job for a different owner with @owner_login_name

Disclaimer:Hey Guys, this post contains affiliate link to help our reader to buy best product\service for them. It helps us because we receive compensation for our time and expenses.

Note:  Best viewed in Internet Explorer 6 and above

Error: Only a member of the sysadmin server role can add a job for a different owner with @owner_login_name

Infrastructure: SQL server 2005 and onward

Scenario: Here the scenario was, user with DB level access say database owner was trying to create sql job and wanted to change the owner to sa or some other sysadmin account.User also had role in MSDB role as of result she was able to see the jobs and create the jobs but unable to change its owner to sysadmin.

Please refer link for msdb agent role.

 

Resolution:

As per the error, only sysadmin can change the owner to sysadmin sql account or some other account. Once the jobs got created DBA can change the owner and issues disappear but generally application team like to manage their own application related group of jobs without depending on DBA everytime.

In such situation, either DBA needs to create proxy for them through which they can run the job under SQL security context or application team can also do hard-code inside their tsql code to EXECUTE AS.

but all the time EXECUTE AS the code dosent look flexibile and if its SSIS package that needs to run with help of SQL agent job in that case proxy is required.

Please note, t-sql can not be run through proxy account. So in this scenario, proxy can help them out.

Please follow this link to understand and implementing proxy account.

Hope this helps!

Dear Visitors!
To get Best Deals and Discounts Buy Now from Amazon just by
Clicking This Image

Simply send snap of your product details after delivery at ad22092012@gmail.com for more surprises or additional discounts
 

 

No global profile is configured. Specify a profile name in the @profile_name parameter

Disclaimer:Hey Guys, this post contains affiliate link to help our reader to buy best product\service for them. It helps us because we receive compensation for our time and expenses. 

Note:  Best viewed in Internet Explorer 6 and above

Error: No global profile is configured. Specify a profile name in the @profile_name parameter

Infrastructure: SQL server 2005 and onward

Scenario: Here the scenario was, client was trying to run some stored procedure. In that stored procedure she was calling send_db_mail to send some query result output as attachment like some excel file but sp was breaking during DB mail shoot.

Resolution:

As per the error it tells us that there is no global profile defined and so we should specify a value for @profile_name but overall error was actually misleading. It was something to do with DB mail profile security.

Follow the below steps to check database public profile security:

  1. Go to DB mail configuration wizard
  2. Manage profile security
  3.  Set public profile security to Yes and increase the MaxFileSize to its max value to allow sending big attachment (this can be set to max 2GB when your query output seems to be big in size)

To change database attachment size, refer below link.

https://www.mssqltips.com/sqlservertip/4599/sql-server-database-mail-attachment-error/

Hope this helps!!

Dear Visitors!
To get Best Deals and Discounts Buy Now from Amazon just by
Clicking This Image

Simply send snap of your product details after delivery at ad22092012@gmail.com for more surprises or additional discounts