The File test.xml exists but I get this error when trying to read it
Server: Msg 4860, Level 16, State 1, Line 4
Could not bulk insert. File 'C:\test.xml' does not exist.
(0 row(s) affected)
I am in Query Analyzer for testing
Any ideas?
TIA
DougP, MCP, A+
Server: Msg 4860, Level 16, State 1, Line 4
Could not bulk insert. File 'C:\test.xml' does not exist.
(0 row(s) affected)
Code:
-- Create a table to hold the data
CREATE TABLE #textfile (line varchar(8000))
-- Read the text file into the temp table
BULK INSERT #textfile FROM 'C:\test.xml'
GO
-- Now read it
SELECT * FROM #textfile
Any ideas?
TIA
DougP, MCP, A+