Forum Replies Created

Viewing 15 posts - 286 through 300 (of 7,164 total)

  • RE: I need help with a scalar function.

    ChrisM@Work (2/10/2016)


    If it's only one, then the original scalar function returning the result to a variable would have been just fine - and it would have met Gail's precautionary restrictions...

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

  • RE: Trouble in exporting data from database to excel with multiple tab

    I do not use OPENDATASOURCE but the syntax to reference different Worksheets (i.e. "Tabs") is in the FROM clause. So, change [Sheet1$] to [Sheet2$] and see what happens.

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

  • RE: I need help with a scalar function.

    NineIron (2/9/2016)


    k

    Like this:

    CREATE FUNCTION dbo.fnPressGaneyDownload()

    RETURNS TABLE AS

    RETURN (

    SELECT CAST(

    ...

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

  • RE: Go back to previous year on specific dates

    What day does your standard week begin on, Saturday, Sunday, Monday,...?

    As an aside, this is the kind of stuff I would put into my calendar table. So, if you do...

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

  • RE: Hi Folks

    Reminds me of this...

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

  • RE: Delete with Case

    I think you have been provided good explanations of CASE and IF, and when you can use each. When you go further into what you are trying to do you...

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

  • RE: Convert date to MMDDYYYY

    The performance of FORMAT is very poor when used over large sets of data which is unfortunate because the syntax is more readable than any of the other methods available...

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

  • RE: Linked Server issue- query is inserting nulls but inserts text values

    Seems my reference was not applicable since it was for splitting up a string longer than the allowable 8000 SQL Server supports but still not unbounded like a MAX type.

    Clearly...

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

  • RE: Why is CAST using an Index Seek??

    MadAdmin (2/9/2016)


    Apparently there is a compatibility matrix which lets the engine know if the cast preserves the order of the data between the 2 data types.

    So Cast ( intcol as...

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

  • RE: One-click export to PDF

    Any reason why they cannot just use the standard Export dropdown available in the ReportViewer to get the PDF version?

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

  • RE: One-click export to PDF

    I have done this using the ReportViewer control by spinning up an alternate Windows Identity in the background that has access to the SSRS Web Services (report server directly) but...

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

  • RE: Why is CAST using an Index Seek??

    I get different plans but indeed see an index seek on both. One item to be careful of with your recommendation regarding the logic:

    -- What you should suggest

    SELECT SomeID,

    ...

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

  • RE: Linked Server issue- query is inserting nulls but inserts text values

    Check out my blog post on this topic.

    I had the best luck with SSIS (Attempt 4):

    https://thesqldev.wordpress.com/2014/07/02/importing-data-in-a-mysql-database-into-a-sql-server-database/

    For your case, if you have to stay in T-SQL, see attempt 3. Items...

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

  • RE: about @identitiy(1,1)

    Ed Wagner (2/7/2016)


    This was solved over at http://www.sqlservercentral.com/Forums/Topic1759103-3077-1.aspx.

    I get an error navving to the link...

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

  • RE: Linked Server issue- query is inserting nulls but inserts text values

    Please provide the driver version being used for GODADDY Linked Server.

    PS going from ascii-255 to UTF-8 may be the issue. Try casting customer to NTEXT or NVARCHAR(MAX) in your SELECT.

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

Viewing 15 posts - 286 through 300 (of 7,164 total)