Forum Replies Created

Viewing 15 posts - 6,706 through 6,720 (of 7,164 total)

  • RE: System DSN with an "OLE DB Connection"

    Thanks for the response. That's not exactly what I was asking. I know how to get data out of a database using an OLE DB source into a variable or...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: How often do you really need dynamic t-SQL?

    Here too is an article from Kim Tripp on the topic: http://www.sqlmag.com/blogs/sql-server-questions-answered/sql-server-questions-answered/entryid/76182/dynamic-sql-vs-option-recompile

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: User Defined Functions returning variable length strings

    trevor.howe (4/7/2011)


    Hi

    I have been trawling the web to find out if there is a way to create a simple string manipulation udf that returns a variable length string after the...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: SQL Naming Convention

    To rename login someone to someone_else:

    ALTER LOGIN [someone] WITH NAME = [someone_else];

    To rename database user someone to someone_else in database some_database:

    USE [some_database]

    GO

    ALTER USER [someone] WITH NAME = [someone_else] ;

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: How really works TRUNCATE TABLE?

    misiekbest (4/7/2011)


    Hi.

    Question is simple. What does sqlsrv engine do with table after truncate command?

    Someone told me, that it just rename that table (internally?), create new one and drop renamed...

    Well,...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Is there a more effecient way to look up records in downstream dataflow.

    It sounds like CTEs might help you avoid staging tables and allow you to get results with one pass over the data...but it's hard to tell. I am sure it's...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Creating Delimited Strings

    The aggregate I posted will not prevent duplicates from entering the concatenated string. You can however provide the DISTINCT keyword. The example in my attachment has this query:

    SELECT DocID,

    ...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Creating Delimited Strings

    Not surprising given the usual finds on the internets but the CLR code would not compile out the box...however after some polishing the little nugget works.

    Mark, sorting is a can...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Creating Delimited Strings

    I hear ya Jeff...I am planning on addressing Mark's question and testing the CLR method for performance...it would be cool to have this as a drop-in but I must admit...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Is it possible to format Excel/CSV file into fmt/XML file via BCP

    Your original post references a file with a .csv extension...did you switch to using a real Excel Workbook file?

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Output Clause and Identity_Insert

    gregory.anderson (4/7/2011)


    Yep, even adding the Identity_Insert stuff it still throws the error "cannot insert unless specifying Indentity_isnert....."

    David is going to get you there...but you completely missed that I added a...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Creating Delimited Strings

    Brandie Tarvin (4/7/2011)


    Wow. I wonder if they had permissions to reprint that article. I found it yesterday at Simple Talk.

    Or maybe it was the guy at Simple Talk who...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Is it possible to format Excel/CSV file into fmt/XML file via BCP

    Great, I am happy you found a solution. Would you mind posting what you did so others who find this post from a search engine can benefit as well?

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Daily upload from A2007

    Nope...I think you;re good...misunderstood what you were doing. You can open the package you saved out of the I/E Wizard in Visual Studio and continue to build it out using...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Daily upload from A2007

    JimS-Indy (4/6/2011)


    @ninja -- I'm an old guy. Be nice to me.

    My issue is with scope. I lose the SS variables when the query is executed. What's the strategy for...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 15 posts - 6,706 through 6,720 (of 7,164 total)