patternMinor
Workaround to importing data
Viewed 0 times
importingworkarounddata
Problem
I am trying to import data into a SQL Server. I can import through the Import and Export Data wizard. I cannot import from my machine using
Are there any other possible solutions to importing data from my machine?
BULK IMPORT or OPENROWSET since the file is not on the server machine. How does the IED wizard insert data into its target db? Does it go row by row?Are there any other possible solutions to importing data from my machine?
Solution
SQL Server cannot import what it cannot see. The reason that you can import it via SSMS is because it opens a Windows File Dialog box, which uses your permissions and not SQL Servers to find the file. If you must import the file then the only way you can do this is to make the file accessible to SQL Server.
How you decide to do this is up to you, whether it be through File Shares, the NET USE command or simply by copying the file over to the server that SQL sits on. You may not be able to do any of these, but somebody in your organization can - if this is a regular thing you should also talk to them about arranging either a SQL Job or a scheduled task whichever is easier to do.
How you decide to do this is up to you, whether it be through File Shares, the NET USE command or simply by copying the file over to the server that SQL sits on. You may not be able to do any of these, but somebody in your organization can - if this is a regular thing you should also talk to them about arranging either a SQL Job or a scheduled task whichever is easier to do.
Context
StackExchange Database Administrators Q#22647, answer score: 5
Revisions (0)
No revisions yet.