Visit Our UNIX and Linux User Community


SQL Server import csv or txt on a Solaris box

 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions SQL Server import csv or txt on a Solaris box
# 1  
Old 08-23-2013
SQL Server import csv or txt on a Solaris box

New to using sql server and unix, but say I have here /home/foo/file.txt

Can I use some kind of process to push that .txt into a sql server?

Or

Is there a sql server utility that can be configured to find a unix box and go into /home/foo/file.txt and slurp it upSmilie

Or is there any PC and Unix Sas folk round here? I thought I once heard PC Sas can find a unix box, can I the use PC Sas, find the file and send it over to the SQL Server doing a proc sql insert into using the odbc protocol?

Solaris and sql serv 2008 r2
# 2  
Old 08-25-2013
I suppose with PC you mean a Windows environment? You can't use PC and Unix SAS at the same time without any configuration beforehand. Files would need to be transferred using scp or automatic ftp.
Presuming that the data is in a structured format already and if we are talking about one file only, can't you use one of the two systems, given that they have overlapping functionality?
# 3  
Old 08-25-2013
You could export the file to a Windows share using Samba. You could call a command line version of Winscp to copy the file from the Unix system to the Windows server. You could use ftp to get the file.
# 4  
Old 08-25-2013
I tried to do a secure FTP the oter day between the box and a windows NAS and it took hours (was a massive file). That made me wonder of there's a protocol/process/whatnot that can trancend win-unix worlds....

Something clean 'n fast??
# 5  
Old 08-25-2013
How is the file created? I am supposing that a Unix program creates the file, and a Windows program reads it. Can you create the file on a file system that Windows and Unix can read and write directly (FAT32)?
# 6  
Old 08-25-2013
Creating sas data sets on unix, wanna bring them into a windows env, fast and easy. SFTP took forever, but worked. Just trying to see what my options are. I think sql server integration services can do this, but have to look into how to get a license of it, etc. just wondering if there is something on the unix box that can send the sas files to a windows env, w/o having windows (ie sql server) go into unix and get the files (many gig files were talking abt).

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

I can't edit a txt file shared from Window server to Solaris

Hello, I'm working with Solaris and I need to share files between Windows Server 2012 and Solaris through an authentication with an Active Directory user, where Windows Server is the "main server". All was going good, until after see the WS files and I tried to open one and modify it, but I cannot... (1 Reply)
Discussion started by: QeratD0
1 Replies

2. Shell Programming and Scripting

Import 2 columns from 8 .csv files into pandas df (side by side) and write a new csv

I have 8 .csv files with 16 columns and "n" rows with no Header. I want to parse each of these .csv and get column and put the data into a new.csv. Once this is done, the new.csv should have 16 columns (2 from each input.csv) and "n" rows. Now, I want to just take the average of Column from... (3 Replies)
Discussion started by: Zam_1234
3 Replies

3. Shell Programming and Scripting

How to import a value from txt file

Hello, I want to give a value from a txt file to my variable at my ksh script. I`ve searched on the net and I found the command variable < file.txt but it cannot see the file. The .txt file contains two values in the first and the second line. Is there any way to give the first-line value to... (1 Reply)
Discussion started by: chris_euop
1 Replies

4. Shell Programming and Scripting

shellscript to read data from txt file and import to oracle db

Hi all, Help needed urgently. I am currently writing a shellscript to read data/record from a flat file (.txt) file, and import/upload the data to oracle database. The script is working fine, but it takes too long time (for 18000 records, it takes around 90 mins). I guess it takes so long... (1 Reply)
Discussion started by: robot_mas
1 Replies

5. Programming

import .txt and split word into array C

Hi, if I want to import .txt file that contain information and the number separate by space how can I split and put into array In C Example of .txt file 3 Aqaba 49789 10000 5200 25.78 6987 148976 12941 15.78 99885 35262 2501 22.98 Thank (3 Replies)
Discussion started by: guidely
3 Replies

6. Solaris

Solaris box to AD,Exchange server 2003

Forgive me if this question has been asked before, but I am trying to add a solaris box to server 2003, it is an active directory and exchange server. I have succeeded in adding it to network in general -- meaning I can access the server and xp files over the network. But what I want to do is... (3 Replies)
Discussion started by: sofakingjewish
3 Replies

7. Solaris

Can we use a solaris box as a web server?

Can we use a solaris box as a web server? If yes then can any one can explain each and every steps to configure a Solaris web server? (4 Replies)
Discussion started by: Sesha
4 Replies

8. Shell Programming and Scripting

From Solaris UNIX to MS SQL Server

Hello, my problem is, that I want to send an SQL-Statement via ksh-Shell to an MS-SQL-Database based on SQL Server 2005. I want to receive a file, which can be used for further actions on UNIX (Sun OS 5.9). ODBCUnix and JDBC and FreeTDS are not allowed. Does anybody have a suggestion? Br,... (0 Replies)
Discussion started by: usagi67
0 Replies

9. UNIX for Dummies Questions & Answers

Getting a file from win3k server on to my solaris 9 box

Hey guys, Please don't lynch me for asking this question but I'm trying to get a file from a windows 2k3 server and store it on one of my Solaris 9 machines (automated in cron or something weekly) so I can then store it to tape. I'm just trying to think of the best way to get the file and I'm... (10 Replies)
Discussion started by: kingdbag
10 Replies

10. UNIX for Advanced & Expert Users

i'm pulling my hair out getting a solaris 8 box to work as a caching name server

i've gone through the sun docs as well as a Solaris Network Admin book. while the book is fair, it lacks detail and i'm sure there are things it's missing on getting a caching only name server working. as for the sun docs... what it has is really miserable. i can't make anything out of it. ... (4 Replies)
Discussion started by: xyyz
4 Replies

Featured Tech Videos