Bulk insert .txt file in SQL
问题 I'm trying to import a .txt file into Advanced Query Tool (the SQL client I use). So far, I have: CREATE TABLE #tb_test ( id INTEGER, name varchar(10), dob date, city char(20), state char(20), zip integer ); insert into #tb_test values (1,'TEST','2015-01-01','TEST','TEST',11111) ; bulk insert #tb_test from 'h:\tbdata.txt' with ( fieldterminator = '\t', rowterminator = '\n' ); I receive an error message saying there's a syntax error on line 1. Am I missing a database from which #tb_test comes