Forum Replies Created

Viewing 15 posts - 541 through 555 (of 13,445 total)

  • RE: SSIS Package runs fast through SQL Agent first time only

    Probably not enough information...what, specifically, is the package doing?
    i would be looking at performance in the database first and foremost, assuming the package is doing something in the database....

  • RE: Script for below requests

    i'll help with the slightly more difficult one(#2)
    for number 1, sys.databases has a create_date column.

    for #2, i put this together, and it returns serveruptime, vs service uptime.

  • RE: identity insert

    SGT_squeequal - Thursday, April 6, 2017 12:55 PM

    unfortunately i cant, i must be missing something, if i create 2 new tables and...

  • RE: identity insert

    SGT_squeequal - Thursday, April 6, 2017 12:40 PM

    Cheers Guys,

    Lowell, 
    i am executing my script exactly in the way you explain however, i...

  • RE: identity insert

    sgmunson - Thursday, April 6, 2017 12:32 PM

    Lowell,

    Is there a simple query to determine what table has that property turned on ?

    i...

  • RE: identity insert

    youll need basically three commands for each identity insert, because you have to toggle the setting off on one table, before you set it ON for the next.

  • RE: Issue with OUT Param

    i could not tell you; the logic looks strange.
    if rows get inserted, that is considered an error? IF ( @Count <> 0 ) INSERT INTO dbo.Log(Error....

    designwise, the procedure itself...

  • RE: Issue with OUT Param

    CREATE PROCEDURE outputParamTest(@Count int OUTPUT)
    AS
    BEGIN
    --do something that affects some number of rows.
    SELECT * INTO #temp FROM sys.tables
    SELECT @Count = @@ROWCOUNT

    END

  • RE: Filtering data based on sum

    most likely you are looking for the HAVING function.

    so something like this:
    SELECT cust_id,sum(orderAmount) As TheSum
    From SomeTable
    Group by cust_id
    HAVING sum(orderAmount) > 1000

  • RE: Getting max(date) and relevant unique GUID

    maybe using row_number will get what you are after?
    With LatestGUIDBasedOnCompDate
    AS
    (
    SELECT Row_number() OVER(Partition BY ID ORDER BY ISNULL(CompDate,'1900-01-01') DESC) AS RW,
    ID,
    CUST_ID,
    CompDate
    FROM...

  • RE: SQL Server DBA Certification

    I went through the effort to get the MCSA for SQL 2012/2014. That let me take a single test to get the MCSA for 2016 So I've got TWO MCSAs....

  • RE: ssrs configuration manager

    i believe what the error is saying is in the operating system on the machine that hosts SSRS, you have to be a local admin on the box...typically you'd add...

  • RE: concatenate three fields with one date field

    you have to convert all your fields to the same explicit data type.
    here's a full example, based on your copy/paste:
    note my CTE, which represents your data, has three...

  • RE: A severe error occurred on the current command. The results, if any, should be discarded

    That Msg 0/State 0/Line 0 is upsetting; i expect better error reporting than that.

    it might be a known issue, that requires updating to the latest patches for 2005;...

  • RE: How to add datetime stamp to a file being exported using bcp

    bcp , because it is actually a command line utility,, only takes static strings, and not variables for parameters.
    there's a few ways to do this.
    you could always write...

Viewing 15 posts - 541 through 555 (of 13,445 total)