How to call stored procedure in crystal reports using C# - stored-procedures

I am able to create a crystal report for a single table call from C#.\
But I have to call generic stored procedure or a single stored procedure. How can I do this?
Do we can acheive this using XML files also? I mean .. the details abt which table the SP is referring to and if I want to dump the data to excel sheet, which cells the data needs to be inserted.
I have XML for my tables also. Now I hav to call stored procedure in crystal reports.
Please suggest me doin this
Thank you,
Ramm

I'm not sure that I totally understand the question so I'll answer it the best I can.
Try this link to help you get started on what you are looking for.
http://www.beansoftware.com/ASP.NET-Tutorials/Using-Crystal-Reports.aspx
You can report off of xml data if needed by using the XML connection in the datasources screen.
Edit:
If are just trying to connect the report to an sp then you should be able to do it using the OLE DB ADO connector and SQL Server provider. Once connected you should be able to navigate down to the stored procedures and add the one you want as a selected table. Then simply add the fields to the report detail section and format it so that it exports properly to Excel. Hope this helps.

Related

Why my stored procedures in MariaDB do not appear when connect to Tableau?

I don't know why but I can not see the stored procedures appear when I connect the database to Tableau (I use MariaDB). I can only see the data tables.
Anyone has the same problems with me? I am a newbie so I am not sure if my description is clear or not.
Use the stored procedures.
I found that Tableau does not connect to stored processes and that one way around this is that when you connect to your server, you should use the initial query function. Once you log in, grab Custom SQL and for that script simply use
select * from #nameoftemptable
and Execute.

Grails GORM vs MS ADO with Excel Datasource

Morning All, Microsoft has different data access object to make you easy to connect and access your database. The old one is called DAO. The newer (still old) one is called ADO. I think Grails calls its GORM.
One thing great about Microsoft's is that it can connect to an Excel file just like a database. A sheet is a table. An Excel column is a database column. Row is row. You can use SQL statement to query the Excel file like Select Sum(sheet1.column1) From sheet1 Where sheet1.column10 > 25 Group By sheet1.column 5 for example.
I am learning to use POI to access the Excel file. So far so good. I can do it no problem. (I try the Grails Excel Import plugin but it keeps crashing.) But basically, I am looping through the rows and columns and a bunch of if-then-else to access the data in the Excel file.
Can I connect to an Excel file as a datasource and run the dynamic finder to query the Excel file in Grails?
Danken!
Since GORM is built upon Hibernate it should be possible to use an Excel file as a DataSource for Hibernate. Consult the Hibernate documentation on how to do so. Also this article may help give you some ideas on how to do so.

Get Details of Deleted Stored Procedures and Functions of DB2

I want to get the details of the Deleted Stored Procedures and Functions
Also i want to get the info like when it was created & removed in DB.
Please guide me.
Thanks in Advance...
You can see when procedures and functions were created by looking at the CREATE_TIME column tables in the system catalog like SYSCAT.PROCEDURES and SYSCAT.FUNCTIONS.
You will have no way of knowing when these objects were dropped unless you enable auditing within the database (and review the audit logs to find instances of DROP PROCEDURE or DROP FUNCTION).

How to handle multiple database accesses?

In my program I have multiple databases. One is fixed and cannot be changed, but there are also some others, the so called user databases.
I thought now I have to start for every database one connection and to connect to each data dictionary. How is it possible to connect to more than one database with one connection by handing over the data dictionary filename? Btw. I am using a local server.
thank you very much,
André
P.S.: Okay I might find the answer to my problem.
The Key word is CreateDDLink. The procedure is connecting to another data dictionary, but before a master dictionary has to be set.
Links may be what you are looking for as you indicated in the question. You can use the API or SQL to create a permanent link alias, or you can dynamically create links on the fly.
I would recomend reviewing this specific help file page: Using Tables from Multiple Data Dictionaries
for a permanent alias (using SQL) look at sp_createlink. You can either create the link to authenticate the current user or set up the link to authenticate as a specific user. Then use the link name in your SQL statements.
select * from linkname.tablename
Or dynamically you can use the following which will authenticate the current user:
select * from "..\dir\otherdd.add".table1
However, links are only available to SQL. If you want to use the table directly (i.e. via a TAdsTable component) you will need to create views. See KB 080519-2034. The KB mentions you can't post updates if the SQL statement for the view results in a static cursor, but you can get around that by creating triggers on the view.

Sharepoint to call a SQL stored procedure?

I'm completely new with SharePoint. How can I create a new page where the user can essentially click a button that will call a stored procedure on the same server? Am I going to need to create an ASP.NET application?
SharePoint 2007 and SQL Server 2008
SharePoint Designer will allow you to put a DataViewWebPart on a page and let you tweak it endlessly. The DataViewWebPart can be populated from all sorts of data sources including SQL databases so it might be able to meet your needs.
You could create this as a webpart. There's a built-in project type for a SharePoint Visual WebPart. Would this be just a single button that always executes the same stored procedure? Does there need to be a list of procedures to choose from? Would the list always be the same, or would it need to be populated dynamically?

Resources