Click here to Skip to main content
12,509,269 members (58,005 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET SQL-Server
I run R language to generate data and need to load this data automatically automatically in SQL Server.Is this possible?
Posted 21-Jan-13 4:00am
digimanus 21-Jan-13 10:19am
what have you tried?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I like to store stuff in SQL Server tables. Data can be just about anything and it can be stored using TSQL in numerous stages of conversion in a table. Large storage is available in ntext, binary, varbinary, etc ...

But first you've gotta load ... it.
CREATE TABLE [database].[rdata].[rfile](
CREATE TABLE [database].[rdata].[rfileIdx](
BULK INSERT [database].[rdata].[rfile]
INSERT INTO [database].[rdata].[rfileIdx]
   SELECT [strR] FROM [database].[rdata].[rfile]
If all goes well, you'll receive no red error messages and you'll have lines of "data" in an indexed table. I'll wager you'll run into the single line table next ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160927.1 | Last Updated 21 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100