![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I'm using this query: SET @cmd = 'BCP ' + 'Cxmain' + '.dbo.' + 'BIW_Stage_Dim_DatabaseServer' + ' out ' + @path + 'BIW_Stage_Dim_DatabaseServer' + '.txt -N -S' + 'EW5038EZ\SQL2005' + ' -U' + 'etllogin' + ' -P' + 'saw001' EXEC @result = master.dbo.xp_cmdshell @cmd, no_output Here It is giving success even though if I give not existing path. How can I rectify this problem? Thanks in advance.. Suresh |
#3
| |||
| |||
|
|
Hi, I'm using this query: SET @cmd = 'BCP ' + 'Cxmain' + '.dbo.' + 'BIW_Stage_Dim_DatabaseServer' + ' out ' + @path + 'BIW_Stage_Dim_DatabaseServer' + '.txt -N -S' + 'EW5038EZ\SQL2005' + ' -U' + 'etllogin' + ' -P' + 'saw001' EXEC @result = master.dbo.xp_cmdshell @cmd, no_output Here It is giving success even though if I give not existing path. How can I rectify this problem? Thanks in advance.. Suresh |
#4
| |||
| |||
|
|
Hi, I'm using this query: SET @cmd = 'BCP ' + 'Cxmain' + '.dbo.' + 'BIW_Stage_Dim_DatabaseServer' + ' out ' + @path + 'BIW_Stage_Dim_DatabaseServer' + '.txt -N -S' + 'EW5038EZ\SQL2005' + ' -U' + 'etllogin' + ' -P' + 'saw001' EXEC @result = master.dbo.xp_cmdshell @cmd, no_output Here It is giving success even though if I give not existing path. How can I rectify this problem? Thanks in advance.. Suresh |
#5
| |||
| |||
|
|
Hi, I'm using this query: SET @cmd = 'BCP ' + 'Cxmain' + '.dbo.' + 'BIW_Stage_Dim_DatabaseServer' + ' out ' + @path + 'BIW_Stage_Dim_DatabaseServer' + '.txt -N -S' + 'EW5038EZ\SQL2005' + ' -U' + 'etllogin' + ' -P' + 'saw001' EXEC @result = master.dbo.xp_cmdshell @cmd, no_output Here It is giving success even though if I give not existing path. How can I rectify this problem? Thanks in advance.. Suresh |
#6
| |||
| |||
|
|
Hi, I'm using this query: SET @cmd = 'BCP ' + 'Cxmain' + '.dbo.' + 'BIW_Stage_Dim_DatabaseServer' + ' out ' + @path + 'BIW_Stage_Dim_DatabaseServer' + '.txt -N -S' + 'EW5038EZ\SQL2005' + ' -U' + 'etllogin' + ' -P' + 'saw001' EXEC @result = master.dbo.xp_cmdshell @cmd, no_output Here It is giving success even though if I give not existing path. How can I rectify this problem? Thanks in advance.. Suresh |
#7
| |||
| |||
|
|
Hi, I'm using this query: SET @cmd = 'BCP ' + 'Cxmain' + '.dbo.' + 'BIW_Stage_Dim_DatabaseServer' + ' out ' + @path + 'BIW_Stage_Dim_DatabaseServer' + '.txt -N -S' + 'EW5038EZ\SQL2005' + ' -U' + 'etllogin' + ' -P' + 'saw001' EXEC @result = master.dbo.xp_cmdshell @cmd, no_output Here It is giving success even though if I give not existing path. How can I rectify this problem? Thanks in advance.. Suresh |
#8
| |||
| |||
|
|
Hi, I'm using this query: SET @cmd = 'BCP ' + 'Cxmain' + '.dbo.' + 'BIW_Stage_Dim_DatabaseServer' + ' out ' + @path + 'BIW_Stage_Dim_DatabaseServer' + '.txt -N -S' + 'EW5038EZ\SQL2005' + ' -U' + 'etllogin' + ' -P' + 'saw001' EXEC @result = master.dbo.xp_cmdshell @cmd, no_output Here It is giving success even though if I give not existing path. How can I rectify this problem? Thanks in advance.. Suresh |
#9
| |||
| |||
|
|
Hi, I'm using this query: SET @cmd = 'BCP ' + 'Cxmain' + '.dbo.' + 'BIW_Stage_Dim_DatabaseServer' + ' out ' + @path + 'BIW_Stage_Dim_DatabaseServer' + '.txt -N -S' + 'EW5038EZ\SQL2005' + ' -U' + 'etllogin' + ' -P' + 'saw001' EXEC @result = master.dbo.xp_cmdshell @cmd, no_output Here It is giving success even though if I give not existing path. How can I rectify this problem? Thanks in advance.. Suresh |
![]() |
| Thread Tools | |
| Display Modes | |
| |