Click here to Skip to main content
15,887,135 members
Home / Discussions / Database
   

Database

 
AnswerRe: metadata Pin
André Ziegler4-Nov-05 23:53
André Ziegler4-Nov-05 23:53 
GeneralRe: metadata Pin
kittubond_0095-Nov-05 15:33
kittubond_0095-Nov-05 15:33 
QuestionSql Connection Pin
NormBohana4-Nov-05 14:04
NormBohana4-Nov-05 14:04 
AnswerRe: Sql Connection Pin
Rob Graham4-Nov-05 14:56
Rob Graham4-Nov-05 14:56 
GeneralRe: Sql Connection Pin
NormBohana4-Nov-05 15:03
NormBohana4-Nov-05 15:03 
Questionaccess to MSsql pubs data from vc6.0 Pin
markoot4-Nov-05 8:31
markoot4-Nov-05 8:31 
AnswerRe: access to MSsql pubs data from vc6.0 Pin
markoot4-Nov-05 10:55
markoot4-Nov-05 10:55 
Questionsp procedure Help!!! Pin
Petdav4-Nov-05 4:24
Petdav4-Nov-05 4:24 
I have this provedure that it long so i have pasted the first and last part of the procedure.
Alter PROCEDURE outputexport
@Key varchar(20) = null
,@export int = 1
AS
BEGIN


CREATE TABLE test
/*Create the table for data*/
.
.
.
SELECT * FROM test

if @export = 1
begin
exec filetransferto 1, '"G:/export"', 'output', 'txt', 1, 0, @TableName='test'
exec filetransferto 1, '"G:/export"', 'output', 'txt', 1, 0, @TableName='test'

end
else select * from test

drop table #QRMDump

END
GO

I am trying to put this in such as that i can run from different server but the file will go to the same location that shown in('"G:/export"')
I am trying to declare @cmd that will do this
declare @cmd varchar(128)
set @cmd = (select @@ServerName) + '"G:/export"'
and calling the
exec filetransferto 1, @cmd, 'output', 'txt', 1, 0, @TableName='test'

but it give invalid file path error.

hope someone can give me answer!!

thanks
AnswerRe: sp procedure Help!!! Pin
Rob Graham4-Nov-05 15:10
Rob Graham4-Nov-05 15:10 
Questionsp Help!!! Pin
Petdav4-Nov-05 4:20
Petdav4-Nov-05 4:20 
QuestionHow to modify a table Without dropping Pin
SIJUTHOMASP4-Nov-05 0:42
professionalSIJUTHOMASP4-Nov-05 0:42 
AnswerRe: How to modify a table Without dropping Pin
Colin Angus Mackay4-Nov-05 1:04
Colin Angus Mackay4-Nov-05 1:04 
AnswerRe: How to modify a table Without dropping Pin
Daniel Santillanes8-Nov-05 13:35
professionalDaniel Santillanes8-Nov-05 13:35 
GeneralRe: How to modify a table Without dropping Pin
n10sive11-Nov-05 17:17
n10sive11-Nov-05 17:17 
Questiongeting the first date Pin
microuser_20003-Nov-05 23:43
microuser_20003-Nov-05 23:43 
AnswerRe: geting the first date Pin
Colin Angus Mackay4-Nov-05 0:10
Colin Angus Mackay4-Nov-05 0:10 
GeneralRe: geting the first date Pin
microuser_20004-Nov-05 3:03
microuser_20004-Nov-05 3:03 
Questionsaving data from a datagrid to a database Pin
steve_rm3-Nov-05 17:41
steve_rm3-Nov-05 17:41 
Question@@Servername Pin
Petdav3-Nov-05 10:02
Petdav3-Nov-05 10:02 
AnswerRe: @@Servername Pin
Rob Graham3-Nov-05 12:41
Rob Graham3-Nov-05 12:41 
QuestionMoving from SQL Server 2000 to 2005 Pin
David Wulff3-Nov-05 7:20
David Wulff3-Nov-05 7:20 
QuestionOracle varchar2 size Pin
Michael A. Barnhart3-Nov-05 1:58
Michael A. Barnhart3-Nov-05 1:58 
AnswerRe: Oracle varchar2 size Pin
Al Ortega3-Nov-05 3:24
Al Ortega3-Nov-05 3:24 
GeneralRe: Oracle varchar2 size Pin
Michael A. Barnhart3-Nov-05 8:48
Michael A. Barnhart3-Nov-05 8:48 
QuestionStored Procedure in Oracle 8i Pin
Rohan_bhat_313-Nov-05 0:40
Rohan_bhat_313-Nov-05 0:40 

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.