Changing a SQL Report server Database to a new One Using Powershell script
Hi,
I have an existing report server (Native Mode) and a pre-configured report server database. I have created a new database and want to assign it new report server database. How can i automate this process using powershell?
Here is the detail requirement
If there is a Report Server database seeded on the xxxxx server, follow the below steps:
◾Click the Database button on the left. Click on the Change Database button, choose option Choose an existing report server database. Enter the RPT server name (e.g. xxxxxx) in Server Name text box and click Next.
◾In the Report Server Database selection, select the ReportServer database. Then click next button to complete the process.
Any help in this regard will be very much helpfull.
Sushruta Banerjee
Hi Sushruta,
To query export from Report server Database, the scripts below may be helpful for you:
Export RDL Files from ReportServer Database with PowerShell
SQL Database Reports with PowerShell
I hope this helps.
Similar Messages
-
My question is what the steps do I need to take to upgrade SSRS from 2005 SP2 to SP4. The web server that host the SSRS is in 2005 SP2, and the OS is in window 2003.
Our SSRS report server and report server database are in different servers. The SSRS in the web server is in 2005 SP2 enterprise edition, the report server database is in sql server 2005 SP4 enterprise edition.
To upgrade the SSRS in web server from 2005 sp2 to sp4, do I need to backup/restore the encryption key? Nothing will be changed in the report server database. We will still pointing to the same database in the current server, all
I wanted to do is performing a inplace upgrade of SSRS from 2005 SP2 to SP4.
Any response will be greate appreciated. Thank you!
Li-hui ChenHi Lihui Chen,
According to your description, you want to install the Services Pack 4 for SQL Server. Right?
In SQL Server, Services Packs are used for fixing issues of current version product. It's not an Upgrade, you don't have to backup/restore your encryption key. You just need to download the Service Pack 4 on:
Microsoft SQL Server 2005 Service Pack 4 RTM . Please make sure you have administrative rights on the computer to install SQL Server 2005 SP4. For more information, see links below:
How to obtain the latest service pack for SQL Server 2005
List of the issues that are fixed in SQL Server 2005 Service Pack 4
SQL Server 2005 SP4, KBA 2463332, Installation Issues
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
The error below makes absolutely no sense! I'm using Enterprise Core...yet I'm being told I can't use remote data sources:
w3wp!library!8!03/05/2015-19:08:48:: i INFO: Catalog SQL Server Edition = EnterpriseCore
w3wp!library!8!03/05/2015-19:08:48:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.OperationNotSupportedException: , Microsoft.ReportingServices.Diagnostics.Utilities.OperationNotSupportedException: The feature: "The edition of Reporting
Services that you are using requires that you use local SQL Server relational databases for report data sources and the report server database." is not supported in this edition of Reporting Services.;
Really? This totally contradicts the documentation found here:
https://msdn.microsoft.com/en-us/library/ms157285(v=sql.110).aspx
That article says remote connections are completely supported.
ARGH! Why does this have to be so difficult to setup?!?Hi jeffoliver1000,
According to your description, you are using Enterprise Core edition and you are prompted that you can’t use remote data sources.
In your scenario, we neither ignore your point nor be doubt with what you say. But actually we have met the case before that even though the SQL Server engine is Enterprise but the reporting services is still standard. So I would recommend you to find the
actual edition of reporting services you are using. You can find Reporting Services starting SKU in the Reporting Service logs ( default location: C:\Program Files\Microsoft SQL Server\<instance name>\Reporting Services\LogFiles). For more information,
please refer to the similar thread below:
https://social.technet.microsoft.com/Forums/en-US/f98c2f3e-1a30-4993-ab41-acbc5014f92e/data-driven-subscription-button-not-displayed?forum=sqlreportingservices
By the way, have you installed the other SQL Server edition before?
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
The report server cannot open a connection to the report server database
I have SQL server installed to I can connect to RS using my domain/user account. However, when I try to go to http://<machine_name>/Reports/Pages/ReportViewer.aspx, I get error as
* The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. (rsReportServerDatabaseUnavailable) Get Online Help
o Login failed for user '<machine name>\ASPNET'
* I also noticed that after I installed RS,I do not see reports folder under C:\Inetpub. This folder does not exist, I manually created reports virtual folder in IIS and liked it to C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer
* Thsi is obviously permissions issue and I missing something so your help will be really appreciated.
During installation, I always specified user as domain\user.
ThanksHi NewToReporting,
From you descriptions, I know you have tow questions: 1.Why the SQL Server Reporting Services does not create virtual directories in the wwwroot? 2. Why the error "A connection to the database is required for all requests and processing" happen? If I have misunderstood, please do not hesitate to let me know.
One of the changes in SQL Server Reporting Services 2008 is the removal of the Internet Information Services (IIS) dependency. So, we won't see report server virtual directories in the wwwroot folder.
The second problem is caused by the user '<machine name>\ASPNET' does not have permission to login the SQL Server database "Reports".
To solve the issue, please follow these steps:
1.Open SQL Server Reporting Services Configuration Manager(Start - All Programs - Microsoft SQL Server 2008 - Configuration Tools)
2.Go to "Database" tab.
3.Click "Change Credential"
4.In the coming dialog, fill the textboxes with this information(some textboxes are not modifiable )
Server: <the server name of the report server catalog database>
Authentication Type: Current User - Integrated Security (This will use the user we are login to connect to the database server.)
UserName:(If selecting "Current User - Integrated Security", this textbox is not modifiable. )
Password:(If selecting "Current User - Integrated Security", this textbox is not modifiable. )
5. Click Next
6.In the coming dialog, configure the following information:
Authentication Type: Service Credential(This will use the user the reporting services running under to connect to the report server catalog database. The user is the one we configured in "Service Account" tab)
UserName:(If selecting "Service Credential", this textbox is not modifiable. )
Password:(If selecting "Service Credential", this textbox is not modifiable. )
7.Click Next to confirm the information.
8.Click Next to apply.
This will auto add the user '<machine name>\ASPNET' to login group, set this user to be the owner of report server catalog database, and also give this user "RSExce" role.
Now, we are able to connect to the report server.
For more information, please see:
Why Leave IIS: http://blogs.msdn.com/bwelcker/archive/2007/12/04/everybody-why-leave-iis.aspx
Configuring a Report Server Database Connection: http://msdn.microsoft.com/en-us/library/ms159133.aspx
If you have any more questions, please feel free to ask.
Thanks,
Jin ChenJin Chen - MSFT -
Hii all,
I have a subscription which used to send report email daily 10 am morning
now today it does not sent an email the status i s showing above error message ..
why this occurs ?? at the time of subscription running time ??
i have checked there is not error of subscription it runs fine ..
only today errored ..
Kindly , help me
Dilip Patil..Hi Dilip,
Based on the error message "An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database." it seems the issue is caused by the Report Server catalog databases are
corrupted.
To fix this issue, I suggest that you use the Reporting Services Configuration Manager to recreate the Report Server catalog databases. In addition, please make sure report server instance can connect to the report server database. For more details about Configure
a Report Server Database Connection (SSRS Configuration Manager), please see the following document:
http://msdn.microsoft.com/en-IN/library/ms159133.aspx
Besides, if the issue is caused by the connection to the SQL Server Reporting Services Report Server catalog database is timeout. Please refer to the following thread:
http://social.technet.microsoft.com/Forums/en-US/db4ca6c2-5445-4ff9-9f63-e20f3859cc70/error-throwing-microsoftreportingservicesdiagnosticsutilitiesreportserverstorageexception-an?forum=sqlreportingservices
If the problem is still existed, I would appreciate it if you could give us detailed error log, it will help us move more quickly toward a solution.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
From report server database how to know reporting services server
from report server database how to know reporting services server
ThanksHi Ajay,
If I understand correctly, you want to know
Reporting Services server name based on report server database. Based on my research, I find that the Reporting Services server name is the computer name which install the report server. So we can try to click Start button, right-clicking Computer,
and then clicking Properties. Under Computer name, domain, and workgroup settings, you can find your computer name.
Besides, the report server database is a SQL Server database that stores the following content:
Items, Subscription and schedule definitions, Report snapshots and report history, System properties and system-level security settings, Report execution log data, Symmetric keys and encrypted connection and credentials for report data sources.
For more information about report
server database, please refer to the following link:
http://technet.microsoft.com/en-us/library/ms156016.aspx
If there are any misunderstanding, please elaborate the issue for further investigation.
Thanks,
Katherine xiong
Katherine Xiong
TechNet Community Support -
Configure logshipping for report server database
Hi All,
Could some one please let me know the steps to be followed to configure logshipping for report server databases.
Thanks in Advance,
Regards, KranthiHi Kranthi,
Based on my understanding, you want to know how to change the roles between primary server and secondary server when primary server goes down. Also you want to know when you should install reporting service on secondary to make sure reporting service could
be used by application team.
When primary server goes down, you should manually fail over to the secondary server and make it your new primary server. Before changing roles between primary server and secondary server, you should initial role change. For more information, please refer
to this link: http://msdn.microsoft.com/en-us/library/ms178117.aspx.
Besides, considering lots of time of reporting service installation and downtime during failover, I recommend you to install reporting service on secondary before configuring log shipping. When application team want to use reporting service with reportserver
database after you performing fail over to the secondary server, you can follow bellow steps to reset the database which will be used by reporting service:
Open Reporting Services Configuration Manager\Database.
Click Change database in the Current Report Server Database section.
On Action page, check Choose an existing report server database box. Click Next.
On Database Server page, type the secondary sever name then connect to it. Click Next.
On Database page, select the reportserver database from the drop-down menu of Report Server Database. Click Next.
Set the credentials, then click Finish on Progress and Finish page.
If you have any questions, please feel free to ask.
Best regards,
Qiuyun Yu -
Reporting Services offers limited support for using AlwaysOn Availability Groups with report server databases. The report server databases can be configured in AG to be part of a replica; however Reporting Services will not automatically use a different
replica for the report server databases when a failover occurs. How to overcome this issue? is there any workaround for that..
RahulHi.
With the AlwaysOn listener you should have a single DNS name to connect to regardless of which cluster node is active. Are you using the listener service? If not, please refer to the link below.
http://msdn.microsoft.com/en-us/library/hh213417.aspx#AGlisteners -
Report the size of all SharePoint Databases in a text file using PowerShell?
I am new to Powershell. please help me for following question with step by step process.
How to report the size of all SharePoint Databases in a text file using PowerShell?Hi Paul,
Here is the changed script, which will also include the size for the Config DB.
Please let me know if it worked:
#Get SharePoint Content database sizes
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
$date = Get-Date -Format "dd-MM-yyyy"
#Variables that you can change to fit your environment
$TXTFile = "D:\Reports\SPContentDatabase_$date.txt"
$SMTPServer = "yourmailserver"
$emailFrom = "[email protected]"
$emailTo = "[email protected]"
$subject = "Content & Config Database size reports"
$emailBody = "Daily/Weekly/Monthly report on Content & Config databases"
$webapps = Get-SPWebApplication
$configDB = Get-SPDatabase | ?{$_.Name -eq ((Get-SPFarm).Name)}
$ConfigDBSize = [Math]::Round(($configDB.disksizerequired/1GB),2)
Add-Content -Path $TXTFile -Value "Config Database size: $($ConfigDBSize)GB"
Add-Content -Path $TXTFile -Value ""
foreach($webapp in $webapps)
$ContentDatabases = $webapp.ContentDatabases
Add-Content -Path $TXTFile -Value "Content databases for $($webapp.url)"
foreach($ContentDatabase in $ContentDatabases)
$ContentDatabaseSize = [Math]::Round(($ContentDatabase.disksizerequired/1GB),2)
Add-Content -Path $TXTFile -Value "- $($ContentDatabase.Name): $($ContentDatabaseSize)GB"
if(!($SMTPServer) -OR !($emailFrom) -OR !($emailTo))
Write-Host "No e-mail being sent, if you do want to send an e-mail, please enter the values for the following variables: $SMTPServer, $emailFrom and $emailTo."
else
Send-MailMessage -SmtpServer $SMTPServer -From $emailFrom -To $emailTo -Subject $subject -Body $emailBody -Attachment $TXTFile
Nico Martens - MCTS, MCITP
SharePoint 2010 Infrastructure Consultant / Trainer -
Is it possible to monitor State change of a .CSV file using powershell scripting ?
Hi All,
I just would like to know Is it possible to monitor State change of a .CSV file using powershell scripting ? We have SCOM tool which has that capability but there are some drawbacks in that for which we are not able to utilise that. So i would like
to know is this possible using powershell.
So if there is any number above 303 in the .CSV file then i need a email alert / notification for the same.
Gautam.75801Hi Jrv,
Thank you very much. I modified the above and it worked.
Import-Csv C:\SCOM_Tasks\GCC2010Capacitymanagement\CapacityMgntData.csv | ?{$_.Mailboxes -gt 303} | Export-csv -path C:\SCOM_Tasks\Mbx_Above303.csv;
Send-MailMessage -Attachments "C:\SCOM_Tasks\Mbx_Above303.csv" -To “[email protected]" -From “abc@xyz" -SMTPServer [email protected] -Subject “Mailboxex are above 303 in Exchange databases” -Body “Mailboxex are above 303 in Exchange databases"
Mailboxex - is the line which i want to monitor if the values there are above 303. And it will extract the lines with all above 303 to another CSV file and 2nd is a mail script to email me the same with the attachment of the 2nd extract.
Gautam.75801 -
In Yosemite Mail, there is an issue where the signatures no longer toggle as in the past. If you change the existing signature, it just adds the new one vs replacing it within the body of the message. Thoughts?
Hi howe.sc,
When I checked for how signatures in Yosemite work, I found this.
Mail (Yosemite): Include signatures in messages
Delete a signature from a message: Select the signature, then press the Delete key.
Replace a signature in a message: Delete the existing signature, then add a different signature.
That sounds similar to what you are describing.
Take care,
Nubz -
In iClouds...How do i change the old Apple ID email to the new one I created with
Do the following:
Make sure you are signed into iMessage and FaceTime with your current ID. If they are signed into the old ID, go to Settings>Messages>Send & Receive and Settings>FaceTime, tap the ID, sign out, then sign back in with your current ID.
Then temporarily recreate the old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID. Click edit next to the primary email account, change it back to your old email address and save the change. (You should not have to verify the old email account so it doesn’t matter if you no longer have access to it.) Now go to Settings>iCloud, turn off Find My iDevice and enter your current password when prompted (even though it prompts you for the password for your old ID). Then save any photo stream photos that you wish to keep to your camera roll (unless using iCloud Photo Library). When finished goThen go to Settings>iCloud, tap Sign Out and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud). Next, go back to https://appleid.apple.com and change your primary email address back to the way it was. Now you can go to Settings>iCloud and sign back in with your current iCloud ID and password (your data will download back to your device). -
I'd like to change my iCloud email address or create a new one, how do I do this? I'm starting a new business and I've not really used my iCloud email address, I'd like to change the name to the business name. Can I do this? If so, how?
You can't change an iCloud email address. You can create an alias address to use that will receive email in your current iCloud inbox, but it will still be an @icloud.com address. If you want to do this, this article explains how to create an alias: http://support.apple.com/kb/PH2622. Note: once you create an alias address, you can't use it to create a new iCloud account, move it to another account, of reactivate it should you ever delete it.
You should also be aware that iCloud is designed for personal rather than business use, and as such, there are limits place on iCloud email accounts as outlined here: http://support.apple.com/kb/ht4863. -
Crystal Report Server Database Log File Growth Out Of Control?
We are hosting Crystal Report Server 11.5 on Microsoft SQL Server 2005 Enterprise. Our Crystal Report Server SQL 2005 database file size = 6,272 KB, and the log file that goes with the database has a size = 23,839,552.
I have been reviewing the Application Logs and this log file size is auto-increasing about 3-times a week.
We backup the database each night, and run maintenance routines to Check Database Integrity, re-organize index, rebuild index, update statistics, and backup the database.
Is it "Normal" to have such a large LOG file compared to the DATABASE file?
Can you tell me if there is a recommended way to SHRINK the log file?
Some Technical Documents suggest frist truncating the log, and the using the DBCC SHRINKFILE command:
USE CRS
GO
--Truncate the log by changing the database recovery model to SIMPLE
ALTER DATABASE CRS
SET RECOVERY SIMPLE;
--Shrink the truncated log file to 1 gigabyte
DBCC SHRINKFILE (CRS_log, 1000);
GO
--Reset the database recovery model.
ALTER DATABASE CRS
SET RECOVERY FULL;
GO
Do you think this approach would help?
Do you think this approach would cause any problems?my bad you didn't put the K on the 2nd number.
Looking at my SQL server that's crazy big my logs are in the k's like 4-8.
I think someone enabled some type of debugging on your SQL server, it's more of a Microsoft issue, as our product doesn't require it from looking at my SQL DB's
Regards,
Tim -
Hello
We just had this error today. We did not do ANY changes to our existing ReportServer database neither to our reports.
Our infrastructure - we have sharepoint 2010 and sql server 2008 r2 with reporting services installed.
I confirmed the following:
-->Disk space on database server OK:
-->ReportServer database not corrupted - I restored the database to my test server and ran DBCC CheckDB.
I am now looking at the Activity Monitor and have noticed that several SPID executed by the ReportServer database are blocked by a SPID executed by the ReportServerTempDB.
Would blocking be a possible cause to this problem?
Thank you all in advanceTake a look into this http://support.microsoft.com/kb/2146315
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence
Maybe you are looking for
-
Unable to view streaming video
I could view a streaming video using following address rtsp://138.133.71.2:554/file/ when using Quicktime 6. However, I have upgraded to Quicktime 7 Pro and I am now unable to view the streamed video. I am using Windows 2000 on a PC and streaming the
-
How to enable New Schema in existing EUL
Hi, We have a single EUL and recently, we have created a new schema. Could anyone direct me as to how I could see this schema listed down along with the rest of the schemas in my selection? Do I need to login as EUL_MANAGER and do a refresh? We have
-
How should resolve " processdp command ex" error?
HI Experts. While refreshing i am getting frequently i am getting following "An internal error occured while calling 'processDPCommandsEx' API. (Error: ERR_WIS_30270) (WIS 30270)" Here I attached screen shot. Please find the attachment.
-
Where do I find documentation on BEx SAP-Exit Variables. What the Exit does and so on?
-
Is the chapter selection feature available on all movies either rented or purchased from itunes?