sql server - Find the exact line number of error in sql script -


i trying insert 1000 records each insert statement in table called zoneplaces. table having index.

when try run script insert on table throws error

msg 2601, level 14, state 1, line 56 cannot insert duplicate key row in object 'dbo.zoneplaces' unique index 'ix_zoneplaces'. 

line 56 start of insert statement. know inserting duplicate value there way find exact line number has error?

hope clear.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -