Forum Replies Created

Viewing 15 posts - 9,751 through 9,765 (of 13,461 total)

  • RE: Intermitent Primary key violation in Nightly jobs

    Alex i think i can see a couple of issues here.

    I'm not trying to bash you, just hoping to help you make your process better.

    first, it's clear that you are...

  • RE: How to order by

    maybe something like this?

    Ex if coolumn ALPA as B,C,D,E,R,T ,Z then i have to display according to report

    Coloumn ALPA as z ,E,B,R,C,T

    ORDER BY

    CASE

    WHEN ALPA IN...

  • RE: Passing Variable in SQL script

    there's two ways to do it Paul; the best way is to parameterize the integers:

    declare @extract varchar(10),@Start int,@length int

    set @Start =2,@length =4

    select SUBSTRING('Hello Paul', @Start ,@length )

    to do it the...

  • RE: Insert Footer for a Word Doc from T-SQL

    you'd need to use Word Automation, where you open the word document programatically, change the header and footer, and save it.

    TSQL is the wrong tool for that, like cutting boards...

  • RE: Anyone know how to obtain the SQL code which caused a trigger to fire?

    i've tried two methoids so far to get the current/last issued? command from inside the trigger: in the above example. both get the same info, just from two different ways....but...

  • RE: Anyone know how to obtain the SQL code which caused a trigger to fire?

    it is certainly possible; all i can do is give you a generic working example for you to use as a model.

    in this case, the important piece is the inserting...

  • RE: Counting results

    SELECT

    SUM(CASE WHEN answer=1 THEN 1 ELSE 0 END) As YES_Answers,

    SUM(CASE WHEN answer=0 THEN 1 ELSE 0 END) As NO_Answers,

    FROM answers

    WHERE questionaire_id = @id

  • RE: Drop all connections

    ok just to be sure, you did uncomment this line like i said you needed to,right?

    --EXEC SP_EXECUTESQL @STR

    i didn't want other readers running that on...

  • RE: Delete / Replace Blobs

    jtetler (3/31/2010)


    What I actually need is sample code on how to either delete the selected rows or preferably how to delete the images in those rows.

    Thanks,

    Jim

    here's some code; i...

  • RE: Trying to JOIN

    Norm this is just a guess based on adapting your posted query;

    does this get you close to what you were after?

    SELECT

    c.ClassName,

    c.EnrollLimit,

    p.RegType,

    p.RegStatus,

    ...

  • RE: Identifying System Generated Constraint Names

    because the underscore has a special meaning in a LIKE statement, i think you need to do something like this instead to find two underscores back to back:

    where ...

  • RE: Profiler Setting !!!!

    Bhuvnesh first, create a server side trace; it's actually a very low impact on the server, but can provide you with exactly what you are looking for, as well as...

  • RE: Encrypting the entire database.

    dang; i followed the fine article cos_ta393 posted; at the very end, i found out only enterprise or developer supports TDE; my 2008 Standard doesn't support that feature.

    That's something to...

  • RE: SSMS Server Registration Issue

    the devil is in the details: what does "resolve remote server name" mean;

    if it's over the internet, is there a DNS of YourRemoteSQLServer.SomeDomainName.Com, or are you talking about a machine...

  • RE: query

    this is syntactically incorrect, whether a select or an update....paste it in SSMS and see for your self.

    Sasidhar Pulivarthi (3/30/2010)


    if U want to use if statement in the query...

Viewing 15 posts - 9,751 through 9,765 (of 13,461 total)