Forum Replies Created

Viewing 15 posts - 316 through 330 (of 342 total)

  • RE: Variable name in FROM clause

    Greg,

    No - you are correct in that the UNION causes the duplicates to be removed. This is true even if all the results come from a single result set....

  • RE: Comma Delimited BCP

    I suppose, since bcp allows a query, all of this could be done as the query argument for the bcp command. (In case it is important to keep unchanged...

  • RE: Short-life data structure suggestions

    Thanks for the feedback.

    Guarddata-

  • RE: Failure to see 4GB Memory in SQL

    Which version of SQL are you running? Assuming it is Enterprise (since standard won't recognize beyond 2GB), remember there is also and /awe switch needed (I just don't remember...

  • RE: Export to Text File

    DTS is pretty powerful if you have time to learn it. I haven't produced XML for export, but, depending on what you are doing with the result, this might...

  • RE: Wrong result set returned when executing a query!

    We did have a similar problem once - many moons ago. Seems that our interface had somehow cached the call...but I cannot remember much about it. I've never...

  • RE: Returning column names of a Table view

    Wish I could help on that score, iakar. I played with this for quite a while before deciding that it would take a better understanding of the internals than...

  • RE: Returning column names of a Table view

    This will give you the column names from the view. I am not quite happy with it yet - I cannot get the view column name and the table...

  • RE: Comma Delimited BCP

    Interesting question David. Rachel, I just assumed that the columns were defined as CHAR instead of VARCHAR. VARCHAR data will come out without trailing spaces.

    Guarddata-

  • RE: bcp

    Of course, if you have been careful in the creation of the text file, ExCel can read it directly.

    Is DTS an option here?

    Guarddata-

  • RE: Short-life data structure suggestions

    Thanks for the input. Any preferences regarding the lookup tables? I have generally worked on projects where they were in the same database but have had some cases...

  • RE: Returning column names of a Table view

    Perhaps you are looking for something like this:

    SELECT sv.name 'View', svc.name 'Column'

    FROM sysobjects so (NOLOCK)

    INNER JOIN sysdepends sd (NOLOCK) ON sd.depid = so.id

    INNER JOIN syscolumns...

  • RE: Comma Delimited BCP

    I am unaware of a bcp command that will trim the fields. I would recommend using a view that is created like

    CREATE VIEW exportMyTable AS

    SELECT RTRIM( column1 )...

  • RE: Need script to gather db info on multiple servers

    You could try this - I didn't take time to add error checking or anything and just use the same routines as sp_spaceused to get database allocation.

    This procedure should exist...

  • RE: disable xp_sendmail

    ewilson10,

    We have four main tables:

    MessageHeader: Holds subject, priority, "From", Date to Send, Status

    MessageBody: Series of Text fields that combine to complete the message.

    MessageTo: Recipient list (To, CC, BC, etc.)

    MessageAttach:...

Viewing 15 posts - 316 through 330 (of 342 total)