I have a spreadsheet of data that I would like to convert to 2sxc data items.
Are there any tools or suggested approaches to doing this? (I can get the data into a SQL table if that would help.)
Thanks.
The answer is, you can import and export data type and items to and from XML.
Related
I have a question regarding importing a CSV file which has some of its fields are objects, I have created the types for those objects but I don't know how to import the CSV's objects' data to cassandra types.
For an example, I have a house table that has id, name and pet(pet is an object). I have create a type for pet(name, age), in my CSV file, it has 2 columns called pet.name and pet.age and I want to import those data to the pet type. Am I able to do that? Sorry I'm new to Cassandra.
Thank you
You can use the DataStax Bulk Loader tool (DSBulk) to bulk load data in CSV format to a Cassandra table. It supports loading data into columns with user-defined types (UDTs).
Here are some references with examples to help you get started quickly:
Blog - DSBulk Intro + Loading data
Blog - More DSBulk Loading examples
Blog - Counting records with DSBulk
Docs - Loading data examples
Answered questions - DS Community
DSBulk is open-source so it's free to use. Cheers!
Hello Everyone I'm new in programming. I am working on small project in my project
I have
windows form where user will upload 4 to 6 Images and i want to store these images
in SQL Database Table After that i want to retrieve these Images regarding one user.
Now my question is how can i store these images in one SQL column without any new row in Database Table?
Is it right way to store and retrieve Images ?
You store image names in your database, and not images themselves.
Also, store image names of the 4-6 pictures belonging to one customer in one cell and not a column. Try this, hope it works.
If you are going to store images rather than paths in the database use a varbinary field. Once in the database it is easy to use the images in reports (ssrs) of you can extract and use in your application.
There used to be an image datatype but that is being removed. Also consider the size of the image 1MB + and you really should be storing paths.
You will need to import your image and convert to varbinary. Example:
MemoryStream ms = newMemoryStream();
pictureBox1.Image.Save(ms,ImageFormat.Jpeg);
byte[] photo_aray = newbyte[ms.Length];
ms.Position = 0;
ms.Read(photo_aray, 0, photo_aray.Length);
Here is a link to a demonstration that should help: tutorial
I have successfully downloaded twitter data through flume directly into HBase table containing one column family and all of the data is stored in one column like this
hbase(main):005:0> scan 'tweet'
ROW
default00fbf898-6f6e-4b41-aee8-646efadfba46
COLUMN+CELL
column=data:pCol, timestamp=1454394077534, value={"extended_entities":{"media":[{"display_url":"pic.twitter.com/a7Mjq2daKZ","source_user_id":2987221847,"type":"photo"....
Now i want to access structs and arrays through HBase like we can access then in Hive. I have tried googling the issue but still clue less. Kindly Help
You can't query display_url , source_user_id or another json fields in hbase directly. You should use a document store nosql db like mongodb.
I am using sql server 2008 R2 to store my data. I have a datatable named postMaster where I save all the posts in my organization. All posts have to be described in english and arabic. My problem is with the arabic description of the post
My data table structure as follows:
and a sample record will look as follows:
As you can see from the picture, the Arabic description mixes up the brackets and when I display data in datagridview it would look the save way it is saved!
Is there away to make these brackets be properly saved as in english way?
It's because the postDescAr is not displaying texts in a RTL format. The data is saved correctly, but not displayed correctly. It depends on from where you query the data.
I have done an MS SQL Query in excel.
I have added extra colums in the excel sheet which I want to enter manual
data in.
When I refresh the data, these manually inputted columns become misaligned
to the imported data they refer to.
Is there any around this happening.
I have tried to link the imported data sheet to a manual data sheet via
vlookup but this isn't working as there are no unique fields to link together.
Please help!
Thanks
Excel version is 2010.
MS SQL version is 2005.
There is no unique data.
Because excel firstly looks like this.
when we entered a new order in to database Excel looks like this
Try this: in the External Data Range Properties, select "Insert entire rows for new data".
Not sure, but worth a try. And keep us updated of the result !
edit: And make sure you provide a consistent sort order.
There is no relationship to the spreadsheets external data and the columns you are entering. When refreshing typically the data is cleared and updated though there are other options in the external data refresh menu you could play with. You could play around with the External data options in the menu to see if changing the settings on what happens with the new data would help.
If you want your manually entered data to link to the data in the embedded dataset, you have to establish the lookup with a vlookup or some formula to find the rows info and show it.
Basically you are thinking the SQL data on the spreadsheet is static, but it isn't unless you never refresh it or disconnect it from the database
note that Marcel Beug has given a full solution to this problem in a more recent post in this forum # Inserting text manually in a custom column and should be visible on refresh of the report
he has even taken the time to record an example in a video # https://www.youtube.com/watch?v=duNYHfvP_8U&feature=youtu.be