WCF to solr get CSV - wcf

I need to export a large set of records from a page that is using Solr to query and get the data.
Currently I am stuck at how to get the Data from solr which is in wt=CSV using WCF and use a string formatter on that data to replace the titles for the csv and write it on my local hard drive. can someone point me at the right direction?

Related

How do i convert a csv file to a db REACT-NATIVE

I am trying to create an app that pulls and pushes to and from a remote server a bunch CSV and a txt file with data in it and convert it into a SQLLite database that I can read/write/query. The txt file contains timestamps that I will be using so when the app pulls again from the server it'll take only the updated values from the server after that certain timestamp (so I don't have to completely redownload all the data). However, I also want to be able to send data back to the server from the database!
So far, I have successfully implemented the Fetching of the data but I am stuck on how to convert my csv files into a db file for React-Native. I want to use react-native-sqlite-storage to then read/write/query the data.
However, the react-native-sqlite-storage requires a .db file and I only have .csv files.
I was thinking that I could convert the csv file into a JSON and then somehow convert the json into a db?
I'm confused whether or not my approach is efficient or is there any other efficient way to implement this ! Thank you so much

How to import data into Solr? Could anyone please tell me the baby steps?

I need to import a word doc to Solr.
Could anyone please tell me the procedure to do this? Also the changes to be made in the xmls.
Check link. There are many other different ways to import your data into Solr... one can
Import records from a database using the Data Import Handler (DIH).
Load a CSV file (comma separated values), including those exported by Excel or MySQL.
POST JSON documents
Index binary documents such as Word and PDF with Solr Cell (ExtractingRequestHandler).
Use SolrJ for Java or other Solr clients to programatically create documents to send to Solr.
The question is too broad to explain.

Import a .atomsvc file from Reporting Services

I'm fairly sure I'm missing something really obvious here so hopefully someone can point me in the right direction.
A client of ours has spun up a standard public facing SQL Server 2008 Reporting Services webpage. It shows a few columns of data, based on a couple of drop down filters. It has the standard export to... options (Excel, PDF and so on). It also had a button that downloads an atomsvc file which I understand is for importing the data into Excel via PowerPivot.
Is it possible to import the data this file links to into SQL Server in a fairly straightforward way (T-SQL, linked data source, SSIS ect) or should I just import the Atom data the file links to as I would any other XML?
I can't find much online that doesn't talk about PowerPivot in relation to these atom feeds but it seems to me that, as a standard feature of SQL Serverreporting services, it should be easily importable into SQL server.
Alternatively am I completely missing a much easy way to import data from an HTTP reporting services page? Obviously I don't have console level access to the server as it's a public facing webpage.
So I've done a bit of digging and learned about URL Access (SSRS) for SQL Server Reporting Services.
The .atomsvc file contains a link to the raw data feed. This can be easily tweaked quite extensively. In particular there is a "Format" specifier available which can be used to export as normal XML / CSV / whatever. For example:
http://myrshost/ReportServer?/myreport&rs:Format=XML
http://myrshost/ReportServer?/myreport&rs:Format=CSV
I hope this helps someone. I was as I suspected missing something "obvious" but it was knowing what to Google that tripped me up.
I still can't help thinking that there should be an easy way to just download the .atomsvc file and open it with SQL Management Studio or SSIS rather than PowerPivot but XML / CSV is fairly straight forward o deal with.

saving data from an online table/CSV to sql database

I am looking into creating an sql database that extracts data from a web page. The webpage displays the data in either a table or CSV list.
The address of the page is
Online table/CSV
I am not entirely sure how to do this. I thought maybe to save the page as a text file then import it but I cannot save it. Am I missing something is there an easy way of doing this?
Apologies I should say that I will use the data in a asp.net application using VB in Visual Studio 2010. The SQL will will be SQL Server 2012.
EDIT - ok so I was informed to run the page in compatibility mode and the CSV will save which I have confirmed. I therefore need to be able to open the page using a vb console app and perform a save as. I have tried using the webclient control and I can create a file but it downloads the html of the page as well. How do I save the contents of the webpage as a csv or text file?

I need to upload images in asp to sql and then view them in asp

I am relatively new to sql and asp. My problem is that i need to be able to upload a number of image files, mainly jpgs, to a sql database database.
Then i need to be able to display them as part of a catalogue.
Ive searched around for a while and am struggling to find anything that seems to let me do this.
Any help or guidance would be greatly appreciated.
The best way to do this would be to upload the files to a directory on the web server, then just store the path to the file in the SQL database.
You can store the actual image in the DB using BLOB columns, but it's generally not recommended.