Forum Replies Created

Viewing 15 posts - 3,076 through 3,090 (of 8,731 total)

  • RE: A more elegant way of creating 3 sets of columns from one column set table.

    This code is meant to be run in SSMS, then you can transform it into VB code. I would suggest to convert it to a Stored Procedure and call the...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: how to combine results of these two queries?

    More like this:

    WITH Query1 AS(

    select scholarship_category , COUNT(s.scholarship_id) as [No of applicants]

    from Students s

    join Students_Scholarships_junction j...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Divide by Zero

    shaneoneillis (4/11/2016)


    Hi bjaricha,

    You may want to let us know how you got your variables as it could help with the answers to this.

    Also with this

    Need your help thanks

    do...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: How to convert this procedure as dynamic SQL

    Wild idea:

    Instead of using dynamic SQL, use synonyms for the cross-database calls.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: What is the difference between Left Outer join and Left Outer join restricted- Interview question

    It depends on the interpretation. A restricted outer join, could be the simple use of a WHERE clause (which shouldn't change the outer join into an inner join) or additional...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Today's Random Word!

    crookj (4/8/2016)


    Ed Wagner (4/8/2016)


    TomThomson (4/8/2016)


    Ed Wagner (4/8/2016)


    Pork Chop

    Karate Pig

    Kung Fu Panda

    Splinter (Kung Fu Rat)

    TMNT

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Today's Random Word!

    Ed Wagner (4/7/2016)


    Manic Star (4/7/2016)


    Grumpy DBA (4/7/2016)


    ThomasRushton (4/7/2016)


    span

    Denard

    Obfuscation

    Hide

    Seek

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Any idea how to over come this error ?

    mw112009 (4/7/2016)


    While running an ssis package , I get this error..

    [Execute SQL Task] Error: Executing the query

    "exec [dbo].[sp_visits_modified_for_execution] @Run..." failed

    with the following error: "Could not allocate space for...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: String Manipulations

    Is this what you're looking for?

    DECLARE @tbl_MediumResults TABLE(

    Answer VARCHAR(8000)

    );

    INSERT INTO @tbl_MediumResults

    SELECT '{"Sunday:"[3,4,5,]},{"Monday:"[1,6,]},{"Tuesday:"[5,6,7,]},{"Wednesday:"[6,7,]},{"Thurday:"[5,6,]},{"Friday:"[5,6,]},{"Saturday:"[1,6,7,]},'

    UNION ALL

    Select '2,3,4,5,6'

    SELECT Answer,

    CASE

    ...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Asian characters when moving from Varchar to Nvarchar

    Maybe the package is using an incorrect code page for your varchar column.

    This is weird as it's changing the values completely.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Creating dynamic master insert proc with identity column needing to be omited

    Lynn Pettis (4/7/2016)


    This:

    INSERT into [JP_CDM].[case]

    SELECT

    *

    --ucn,

    --lcn,

    --court_id,

    --case_initiation_date,

    --case_restriction_flag,

    --county,

    --date_disposed,

    --recurrent_flag,

    --intestate_testate_flag,

    --case_referred_to_mediation_flag,

    --contested_flag,

    --jury_trial_flag,

    --outstanding_warsumcap_flag,

    --pro_se_flag,

    --record_source,

    --record_state,

    --create_user,

    --create_date,

    --maint_user,

    --maint_date

    FROM

    #case_tmpTable;

    select * from #case_tmpTable

    Is not going to work as there are not an equal number of columns between...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Help me find this constraint and remove it ? - Syntax Help

    EXECUTE sp_help 'MEMBER_IN'

    Or view dependencies.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Msforeachtable

    ram302 (4/7/2016)


    I know this is an old post, but how does this work? I have tried the following:

    EXECUTE sp_MSforeachtable

    'EXECUTE master.dbo.xp_cmdshell ''osql -E -S "MYSQLSERVER" -d "MyDB" -q "sp_help ''?''" '...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Where to start?

    maylar (4/7/2016)


    So far the online docs have been worthless. I don't need to learn about databases, I just need to understand how to navigate within this admin tool. I've worked...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Duplpicate rows appearing

    As I figured, you're employees and products are unrelated, but somehow you want them both on the same data set. As you're trying to describe projects, maybe a single row...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2

Viewing 15 posts - 3,076 through 3,090 (of 8,731 total)