select the 3rd maximum salary from sql server database if 4
(just an example In practically I may not know the exact
situation) of the highest salaries are equal.

Answer Posted / sandeep saxena

CREATE procedure Proc_Loaddata_Text (@File_path nvarchar
(255),@Table_Name varchar(100)) AS

DECLARE @SQLString NVARCHAR(4000)

/* Build Command*/

SET @SQLString =N'Bulk Insert ['+@Table_Name+'] from ' +
N'N''' + @File_path + N''' with (FIELDTERMINATOR=''|'',
ROWTERMINATOR = ''\n'')'

--print @SQLString

/* Execute */

EXEC (@SQLString)
GO

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does an index slow down updates on indexed columns?

577


Can sql servers linked to other servers like oracle?

540


List the advantages of using stored procedures?

556


What is tablix?

115


What is Lock table in SQL?

999






How to drop an existing table with "drop table" statements in ms sql server?

550


Explain about system database?

578


What are the joins in sql server? : sql server database administration

535


How to create function without parameter in sql server?

557


Do you know what is bit data type and whats the information that can be stored inside a bit column?

550


What is statement level trigger?

537


What is a hint?

577


what is the difference between delete table and truncate table commands? : Sql server database administration

517


How to find the version of sql server? : sql server database administration

623


List types of tables in SQL Azure?

102