overwritting.. I am using this query, what I write for appending into that
"Noorali Issani" <naissani@lycos.co.uk> wrote in message
news:eDaOQmU7DHA.2064@TK2MSFTNGP11.phx.gbl...
> Solve that problem but now I have one more issue which would be last issue
I
> think so, the problem is that after executing the osql command the result
is
> saving into one file like this...
>
> insert into [occupation]
> (O_Alias,O_IsActive,O_DMLUserID,O_DmlDate,O_DmlOperation ) values
> ('Software
> Engineer',1,5,getdate(),'C')
> insert into [occupation]
> (O_Alias,O_IsActive,O_DMLUserID,O_DmlDate,O_DmlOperation ) values
> ('Administrator',1,5,getdate(),'C')
>
> In the above insert query u are seeing there is space b/w Software
Enginner
> and when I import that data so it also insert spaces so is it possible
while
> executing the procedure in the command line so I have removed that space
and
> result look like that
>
> insert into [occupation]
> (O_Alias,O_IsActive,O_DMLUserID,O_DmlDate,O_DmlOperation ) values
> ('Software Engineer',1,5,getdate(),'C')
> insert into [occupation]
> (O_Alias,O_IsActive,O_DMLUserID,O_DmlDate,O_DmlOperation ) values
> ('Administrator',1,5,getdate(),'C')
>
> Is it possible ?
>
> Anxiously waiting for you reply
>
> Noor
>
> "Noorali Issani" <naissani@lycos.co.uk> wrote in message
> news:emWr8nK7DHA.2644@TK2MSFTNGP11.phx.gbl...
> > ya that's excellent
> >
> >
> > "Andy Svendsen" <andymcdba1@NOMORESPAM.yahoo.com> wrote in message
> > news:exAbpiZ6DHA.2628@TK2MSFTNGP10.phx.gbl...
> > > Thank you Noorali and Cindy, I appreciate it. Should've looked at the
> > > switches more closely. /h-1 will help me too.
> > >
> > > --
> > > *******************************************************************
> > > Andy S.
> > > MCSE NT/2000, MCDBA SQL 7/2000
> > > andymcdba1@NOMORESPAM.yahoo.com
> > >
> > > Please remove NOMORESPAM before replying.
> > >
> > > Always keep your antivirus and Microsoft software
> > > up to date with the latest definitions and product updates.
> > > Be suspicious of every email attachment, I will never send
> > > or post anything other than the text of a http:// link nor
> > > post the link directly to a file for downloading.
> > >
> > > This posting is provided "as is" with no warranties
> > > and confers no rights.
> > >
> > > *******************************************************************
> > > "Cindy Gross (MSFT)" <cgross@online.microsoft.com> wrote in message
> > > news:KeY6rv05DHA.3496@cpmsftngxa07.phx.gbl...
> > > > How about /h-1?
> > > >
> > > > osql /SMyServer\Instance /Q"set nocount on select * from sysobjects
> > where
> > > > name = 'sysobjects'" /E /h-1
> > > >
> > > > Also, the lines are dashes which indicate comments, so the fact that
> > they
> > > > exist in the output should not prevent that output from being used
as
> > > input
> > > > to another osql command.
> > > >
> > > >
> > > > Cindy Gross, MCDBA, MCSE
> > > >
http://cindygross.tripod.com > > > > This posting is provided "AS IS" with no warranties, and confers no
> > > rights.
> > > >
> > >
> > >
> >
> >
>
>