Forum Replies Created

Viewing 15 posts - 3,151 through 3,165 (of 13,461 total)

  • RE: Can I avoid using cursors

    there's two procedures that make it a bit complicated to convert to a set based operaiton, becaus3e both procs look like they fiddle with one row at a time:

    [dbo].[UpdateFrequencyCheckNote]

    [dbo].[CreateFrequencyCheckNote]

    based on...

  • RE: Partial match & Update

    DBA12345 (7/3/2013)


    Hi Lowell,

    Thanks for your pormpt reply. But i do have 1000 records to macth in both tables. So, we have to put all the thousand values in the way...

  • RE: query

    elee1969 (7/3/2013)


    manikanta1207 (7/3/2013)


    what is the query to select nth highest salary of emp table

    select MAX(Salary) from Employee;

    this really sounds like homework....

    anyway,

    the nth highest , ie the second or third, requires...

  • RE: Partial match & Update

    you are going to have to cleanup the data, it looks to me;

    in your example, using charindex, you only get a single match.

    unless you can guarantee the three letter abbreviations...

  • RE: system sp permission

    i think granting VIEW DEFINITION TO {USER OR ROLE} , in a specific database, will give access to all the system views like sys.tables, etc, but not grant read/update to...

  • RE: A question about replacing a character in a nvarchar

    i also found this old scalar function that uses a Tally Table to find and replace, based on the ASCII code...

    this actually does the replacements of À Á Â...

  • RE: A question about replacing a character in a nvarchar

    ok, i've done something kind of similar,and easily adaptable..

    i'm guessing that, for example, you really want to replace any letters À Á Â Ã Ä Å with A, is that...

  • RE: A question about replacing a character in a nvarchar

    well, nested REPLACE functions are extremely efficient, even if they are wordy and make your eyes cross when nested more than a couple of times.

    format them for readability, but the...

  • RE: Xp_cmdshell

    Jeff Moden (7/3/2013)


    Tara Kizer (7/13/2010)


    If you are using a VB application, then there is no need to use xp_cmdshell for this.

    Since I'm no VB expert but still very curious, how...

  • RE: Get Employee Managers Manger Query

    also, i think you had your joins backwards...

    this seems to show me everything correct:

    /*SuperVisorManager1Manager2

    ramNULLNULL

    surehramNULL

    vimalsurehram

    */

    CREATE TABLE [#Employee](

    [EmpID] [int] NOT NULL,

    [EmpName] [varchar](50) NOT NULL,

    [SupID] [int] NULL)

    GO

    INSERT INTO [#Employee]...

  • RE: Overhead on a NC index if the key fields are not updated during production.

    pretty sure SQLSACT is correct;

    part of the update process is updating the indexes that are affected, so when the transaction is committed, bit the data itself and the indexes...

  • RE: Finding unused fields

    OUCH this is painful to even acknowledge I built this query, after seeing how dog slow it is!

    my thought is the command has to look something like this, for every...

  • RE: Monitoring Your Database with SQL Profiler

    * also the Database Engine Tuning Advisor creates a trace with a NULL path, as well.

  • RE: Monitoring Your Database with SQL Profiler

    also I'm pretty sure a profiler created trace does not have a path: so you can do check sys.traces as a quick sanity check, and that would tell you...

  • RE: Finding unused fields

    As usual Sean's got it covered; about all i can say is null columns or tables with zero rows, is missing / no data often doesn't mean the objects can...

Viewing 15 posts - 3,151 through 3,165 (of 13,461 total)