LinqtoExcel- searches file in server drive or client machine drive - server

I am using LinqToExcel import Excel data from client machine into SQL Server.
Below is the code.
var fileName = #"c:/test.xlsx" var excel = new
ExcelQueryFactory(fileName); var employees =
excel.Worksheet().ToList();
This worked fine in my development machine.
But will this works when deployed on the server machine ?
Does it searches file in server c drive or client machine c drive?
I wanted the program to search file at client machine c drive location.
Please help me , Thanks

Related

Store Postgres data on an external SSD drive so I can use the drive on different computer [duplicate]

I have Postgresql 14 on desktop and laptop using Windows 10. Would someone please show me how to store the data on an external SSD drive so that I can just move the drive to different computer and not having to restore? I am thinking about learning Ubuntu because people on the web say Postgresql run faster on Ubuntu. Thank you so much in advance for your instruction!

Is there a way to keep Windows EFS encryption metadata in place when uploading a file to Linux?

I am trying to copy an EFS Encrypted zip file from Windows to a Linux server (through OpenSSH scp). It was encrypted using the PowerShell .Encrypt() method. Unfortunately, for whatever reason, when I download the file from the Linux server to a Windows machine, it can't be opened because the Windows machine does not detect it's EFS encrypted, and just regards it as an unreadable zip file.
I have exported the EFS key from the first computer and installed it on the computer that opens the file. The file is successfully detected as an EFS encrypted file when I use a USB key to move the file around and can be opened properly.
The PowerShell script that I'm trying to create should be invisible to the user. Another question is: could creating and mounting a VHDX file still be part of a script that doesn't interrupt the normal workflow of the user?

DB2 load ( client in remote | file in the db2 server )

I'm using db2 client in windows to connect to Linux DB2 server.
I'm trying to upload data using my client but the data is in the /tmp/ directory in the host server.
If I use LOAD FROM "/tmp/file.txt" OF .. it fails with message QL2036N The path for the file, named pipe, or device "/tmp/file.txt" is not valid.
It is possible doing thins without db2 connect from the server itself ?
regards
Per comment thread: the solution was to ensure that the Db2-instance owner has read access to the file on the server.
When you use load from then the specified file must reside on the Db2-server, and the Db2-instance owner (e.g. db2inst1) on the server must have read access to the file. DOUBLE CHECK the permissions/ownerships. If the file is on your workstation use load client from.

Oracle Forms 10g Copy command

I am using oracle 10g forms. I want to copy a image saved in my PC to server. While I checked locally by using two destination of my pc it works fine.
Code is
the_command:= 'copy D:\WORKORDER\'||:title.filename||'_'||:title.page||'.jpg D:\vish\'||:title.filename||'_'||:title.page||'.jpg';
My server is linux based. So I used the command
copy D:\WORKORDER\'||:title.filename||'_'||:title.page||'.jpg \WEB\folder\WORK_ORDER\'||:title.filename||'_'||:title.page||'.jpg';
It is not copying image in my pc to serverlocation. I tried both forward and backward slashes. Please help
I'd say that you should install Webutil and use its CLIENT_HOST to do that.
Although Forms offers the HOST built-in, as 10g Forms application runs on the Application server, HOST affects files on the server - not locally, on your PC. Therefore, as I said - Webutil's CLIENT_HOST.

How to replicate virtual box linux server to my own server?

I have one virtual box linux server which shows only command prompt...
And I want to have that server files and Database to my another server...
How can I achieve that?
there are several options for start if use the same virtualization technology on the virtual box and the new server you could just create snapshot from your virtual box and than try to run that snapshot on the new server. http://wiki.qemu.org/Documentation/CreateSnapshot
The other solution will be to transfer all of your data manually, for that you will need to:
Export all your databases the corresponding tools for that type of
database ( eg. mysqldump for MySQL server )
Transfer all files from old to the new server using rsync
Install the same software stack / control panels you've had on the virtual box on the new server.
Recreate the FTP, MYSQL users and restore files from the transferred data into the same locations as on the virtual box
Import the databases from the exported database files using the corresponding tools for that server.
This should do the trick :)