Click here to Skip to main content
15,905,913 members
Home / Discussions / Database
   

Database

 
AnswerRe: Delete and Truncate Pin
Ashfield21-May-08 21:16
Ashfield21-May-08 21:16 
QuestionDatabase Upsizing from MSDB to SQL Pin
new2pgrmg21-May-08 5:26
new2pgrmg21-May-08 5:26 
QuestionSOLVED SQL error - attempted to position cursor on empty recordset. Using "LIKE" [modified] Pin
Vaclav_21-May-08 4:54
Vaclav_21-May-08 4:54 
AnswerRe: SQL error - attempted to position cursor on empty recordset. Using "LIKE" Pin
Mike Dimmick21-May-08 6:08
Mike Dimmick21-May-08 6:08 
GeneralRe: SQL error - attempted to position cursor on empty recordset. Using "LIKE" Pin
Vaclav_21-May-08 6:27
Vaclav_21-May-08 6:27 
QuestionTop 5 Records Pin
.NET- India 21-May-08 4:33
.NET- India 21-May-08 4:33 
AnswerRe: Top 5 Records Pin
Ashfield21-May-08 4:41
Ashfield21-May-08 4:41 
QuestionRow Terminator not working: Pin
Shahzad.Aslam21-May-08 3:06
Shahzad.Aslam21-May-08 3:06 
Hi,
I am using sql bulk copy to insert into table from txt file. The following code is is being used for row terminator but it does not work. it works with '\n'. But it should be work with Unix system as well.

@BQUERY AS nVARCHAR(250)
SET @BQUERY = 'BULK INSERT tblCustomer
FROM ''' + @FILEPATH + '''
WITH
(
FIRSTROW = 2,
FIELDTERMINATOR = '','',
ROWTERMINATOR = ''\x0A''
)'

EXECUTE SP_EXECUTESQL @BQUERY

Shahzad Aslam
Software Engineer

Email: shehzadaslam@hotmail.com

AnswerRe: Row Terminator not working: Pin
Ashfield21-May-08 4:36
Ashfield21-May-08 4:36 
GeneralRe: Row Terminator not working: Pin
Shahzad.Aslam21-May-08 4:40
Shahzad.Aslam21-May-08 4:40 
GeneralRe: Row Terminator not working: Pin
Ashfield21-May-08 21:19
Ashfield21-May-08 21:19 
GeneralRe: Row Terminator not working: Pin
Shahzad.Aslam21-May-08 21:41
Shahzad.Aslam21-May-08 21:41 
GeneralRe: Row Terminator not working: Pin
Ashfield21-May-08 22:28
Ashfield21-May-08 22:28 
QuestionSql Stored Procedure Pin
senthilsstil20-May-08 23:58
senthilsstil20-May-08 23:58 
Questionhow to retrive the value of the sp output through execute immediate Pin
lakshmichawala20-May-08 23:08
lakshmichawala20-May-08 23:08 
Questionsql query Pin
Unknown Ajanabi20-May-08 23:02
Unknown Ajanabi20-May-08 23:02 
AnswerRe: sql query Pin
Colin Angus Mackay21-May-08 1:01
Colin Angus Mackay21-May-08 1:01 
AnswerRe: sql query Pin
Michael Potter21-May-08 10:23
Michael Potter21-May-08 10:23 
Questionproblem with SQLparameter? Pin
Mr.Kode20-May-08 22:20
Mr.Kode20-May-08 22:20 
AnswerRe: problem with SQLparameter? Pin
Unknown Ajanabi20-May-08 23:17
Unknown Ajanabi20-May-08 23:17 
GeneralRe: problem with SQLparameter? Pin
Mr.Kode20-May-08 23:20
Mr.Kode20-May-08 23:20 
GeneralRe: problem with SQLparameter? Pin
Unknown Ajanabi20-May-08 23:50
Unknown Ajanabi20-May-08 23:50 
AnswerCP Ignore Pin
leckey21-May-08 3:20
leckey21-May-08 3:20 
Questiondistinct? Pin
laserbaronen20-May-08 21:40
laserbaronen20-May-08 21:40 
AnswerRe: distinct? Pin
Blue_Boy20-May-08 22:47
Blue_Boy20-May-08 22:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.