Quite a newbie with SQL, and gradually getting used to the Management Studio
Ideally, I would like to have the output in JSON forma, and emailed to a specific mailbox.
I would like the above scheduled using the Service Agent
Thanks in advance
Related
I have a WebI report that I sent via a scheduled publication, this is done for months already, and it used to work fine until last week.
Some of my dynamic recipients get only half the information, others dont get information at all. The publication has the status succes, and when I look into the log file, I don't see any differences from the publication that worked fine before. When generating the report there are no issues as well, and the report wasn't changed since the end of June. The publication didn't change since the start of October. The publication only has dynamic recipients, which are requested via a WebI report that uses a handwritten SQL query.
I am using an oracle database to get the dynamic recipients, and I am using a SQL Server database via an ODBC connection in order to generate the actual report.
I already tried to recreate the publication, but the same problems occur. Does anyone have an idea of what I could try?
It is possible that if your reports get big, memory is exceeded, and therefore reports are cut off in the end. Making sure the queries of the generated reports request less data solved the problem.
My overall goal would be to take data that I get from MS SQL server, and I would like for the data to export, real time, onto a JSON format so that the data can be integrated to the AM Charts Dataloader that would then appear in the front end as a line graph that would constantly keep trending as new information comes into the SQL Server.
I plan on having real-time information being forwarded from MS SQL server to the Front End Web Page. So basically, how would I convert data to JSON, and how would I make it so that the information is updated in real time as the server receives new information?
I'm using Visual Studio to load the SQL Server data and from there I want to integrate the JSON Data to the website. So far I have nothing other than the SQL Server connected to Visual Studio 2013.
A broad question, with many ways to implement. One being the below
Convert data to Json? You can use JSON.NET
There are lots of examples shown on the Documentation section. You can construct your object using the library and perform the needed operation.
"How would I make it so that the information is updated in real time
as the server receives new information?"
You can construct a sqlcachedependency.
Currently we have a process that our IT department has to do manually on a weekly basis that we really need to automate. We have a few of our employees that get paid a different way. The hr department has to send us the employee names and dates and we have to connect to a MySQL database. Put the correct employee numbers and dates in a script we have set up. Execute the script. And then send the hr department an email back with the table it generates.
I was thinking is there a way to automate a SQL script in Excel using macros or something similar. That way we could send the hr department the spread sheet. They go in the spreadsheet input the employees and dates in cells. run the script and let it give them their data back?
Any input on this would be greatly appreciated. Thanks!
There are many different things you could pursue, depending on you what need done exactly. If I was in your shoes I would discuss with your IT dept about SSIS packages, http://en.wikipedia.org/wiki/SQL_Server_Integration_Services . With SSIS you can upload excel docs, have it run the queries you need and then export the spread sheet with the updates.
However, you will need someone knowledgeable of SQL servers and SSIS to set this up.
You could integrate the SQL query to a VBA script within your Excel file, but you would definitely have to code that.
Take a look a this example to get automated query from SQL Server:
Using Excel VBA to run SQL query
I am working on sending reports via emails to users. Now I am able to successfully send this reports my only problem is that for this reports there are times whereby the report shows no values. Now I want to ensure that when a report shows no values, it will not be send out.
I went through numerous forums with regards to this, in most times the solution I found is to create jobs, I have no idea how to go about in doing that.
Please note the I used just a normal subscription not the data driven subscription.
If you have any better yet simple solution I can use please assist. Please take me on a step by step work through in solving this problem.
I will highly appreciate your assistance
A service agent would be a big chunk of work to prevent the delivery of zero record reports. However, you will need to use a data-driven subscription to achieve your needs. Essentially, you would scan-ahead in your Stored procedure that produces the email recipient list to check for no records and return null as the list of recipients. I do not think this is possible without data driven subscription.
On a side note, if you are using an email server you could see if it's possible to do something similar on that side of things.
I have created few SSRS reports in SQL server 2012 with Visual Studio 2010 version.
And I have deployed them to one SharePoint Site.
I want to make this automated, so that data available in the reports are up to date.
So, now I would like to create SSIS package which will run periodically to get up to date data using integration services. I am very much new to SSIS. I have tried to look at different sites for this, but I am not getting an exact idea from where to start.
Can anyone please guide me on this? How can I create a WSDL file URL for the SharePoint report? Do I really need it if report is already made in SSRS or do I just want to run that?
Thank you.
Would SSRS caching solve your problem?
Otherwise, there's nothing SSIS specific to solving your problem. You will simply need to use the .NET library to visit the page with the appropriate parameters. Visit your report page and copy the full URL.
Inside a Script Task use that URL as part of the WebClient. You'll probably need to supply credentials with this. No need to deal with storing the output, you'll simply want to validate that you get a 200 message code
Can you clarify what you are trying to achieve? Do you want to automate the running of the Reporting Services reports? In that case you should look at Report Subscriptions.