Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)

  • RE: How to insert data containing ', /, etc

    Thanks Frank....

    I was afraid of that...parsing the data to look for delimiters looks to be the only way ...

  • RE: How to insert data containing ', /, etc

    that is not a double quote in front of dog its two single ticks...

    I dont want the tick at the end of the stream that would make the data invalid...

    Sorry...

  • RE: How to insert data containing ', /, etc

    Here is how the insert ends up looking because the @parameter passes the data to the dynamic insert statement..

    Insert into table ('col', 'col') Values (''dog', 'cat')

    See right before the dog...

  • RE: How to insert data containing ', /, etc

    Frank:

    Would that always insert a tick ....this has only occurred once so far...if it always inserts a tick then the data would not be correct..

    My insert statement passes the VALUES...

  • RE: Table Data Type

    Here is kinda what I want to do....(I know this doesnt work)...can someone help me get it right..

    Create function GetAllData

    (@filterid uniqueidentifier)

    RETURNS table

    AS

    RETURN {select statement that uses all the tables...

  • RE: bcp with queryout

    Thanks for your input I realized the problem...I had to also include the Dbname.table.columnname in the where clause..

  • RE: bcp with queryout

    I tried it a again:

    use master

    exec xp_cmdshell 'bcp "select * from dbname.owner.table where checkbit = 0" queryout e:\products.txt -c -Sserver -Usa -Ppassword'

    I get as an error the format for writing...

Viewing 7 posts - 1 through 7 (of 7 total)