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.
Related
I want to create external table in BigQuery and the data source is from Google Sheet. Is it possible to do it using dbt? In the yml file, where should I put the URI?
The main problem is, I don’t have the access to create it directly in BigQuery.
One way to handle a Google Sheet as a source is by creating a new table out of it in BigQuery via Connected Sheets.
Then, you create a new source in dbt that relies on that table, and start building your downstream models from there.
As far as I know, you cannot create a source directly from dbt, unless it is a seed file, which I woul not recommend unless it is a rather static file (e.g. country names and ISO codes, which is not prone to change over time).
We have a similar situation where the data source is from Google Sheet.
The end user updates the Google sheet on a periodical basic and we replicate it using Fivetran to our Snowflake datastore.
DBT can then pick up the data seamlessly.
From what I have read via google, it may be possible to do this with Rails? But I sadly don't know where to begin.
I have been asked to understand if it is possible to either utilising SQL Server or multiple CSV dumps to create a PDF of customer sales orders for the year.
An example of data I am working with is as follows;
What I need is a way to go through each ClientID in turn, Create a new page for each 'Category' Type of purchase as separate sequentially numbered PDF's so that Page 1 for client A1 would only have the motorcycle, page 2 would have the two helmets as that then completes that data entry for the client. I would need to save the two PDF pages as a single document entitled A1 and save this to C:\PDFOrderCreation
Constraints:
There can be no more than 10 lines of data per page,
There is a header and footer which have to remain static on the page(s)
I don't know where to begin with this, I have considered trying to do it with word but it would I think be extremely messy and resource heavy.
Anyone have any thoughts or able at least to push me in the right direction?
you would have to write a software that queries your SQL server and creates pdf files. There are many ways to do this, but afaik it cant be done using only SQL server features, SQL server is meant to store and serve your data, what you want to do with this data is out of it's scope. your software would have to do 3 things:1. To query the data from your server 2. To organize the data in the structure you need it to be presented 3. To write it to pdf filesYou would have to target each task individually, and it can be done using either a web application or a native application which could be written in ruby, c#, java, js,c++, objective c or any other programming language. Its important to note that TSQL is NOT a programming language, its a query language. Good luck!
what are the steps involved in moving from TestTrack to JIRA?
I've done a few migrations from TestTrack to JIRA over the last 5 years. It's always more work than I expect (weeks not days). The migrations I did used a custom migration application that read the data from the TestTrack database (not the simplest of schemas) and then imported it into JIRA using a custom SOAP API. Nowadays I think I might go with a more focused approach and use a single customized script to create CSV suitable for the JIRA CSV importer. This will get you the issue fields, comments and attachments. Links are separate thing, but no issue history.
The JIRA CSV importer works, though the flattening of the data restricts what it can do significantly. The hardest thing is usually mapping of values from one system to another - are the userids really identical in both systems?
If you want to investigate doing the migration commercially, please contact info#customware.net (my employer)
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.
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.