Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Sirchrisak
Starting Member
19 Posts |
Posted - 2005-06-10 : 10:00:55
|
| help me fish out the error in this code,it is reporting an error at line 3 near ','if try to execute it with the follawing values : CSC101,Introduction to Programming,Y;CSc102 ,Manging Programming,N;. Also why insert with BULK Insert into table with Auto Id Integer dataType. Thanks CREATE procedure dbo.STP_AddCODE(@CourseCode varchar(500))ASDeclare @sql as varchar(200)Set @sql='BULK INSERT [STUDENT_COURSE_Course1]FROM '+@CourseCode+'WITH(FIELDTERMINATOR ='','',ROWTERMINATOR = '';'')'Exec(@sql)Chris |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-06-10 : 10:07:59
|
| You should give file nameSee BOL for more informationMadhivananFailing to plan is Planning to fail |
 |
|
|
nr
SQLTeam MVY
12543 Posts |
|
|
|
|
|