Forum Replies Created

Viewing 15 posts - 301 through 315 (of 608 total)

  • RE: sp_getrecords to get all records from a table

    saravanakumar.G (8/28/2013)


    Hi,

    I have tried and created one sp which will get the table name as input and will return all the records in that table. I will map this...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: View Contents of a Log Backup

    http://www.apexsql.com/sql_tools_log.aspx

    ApexSQL Log

    Order now from $1,499 :w00t:

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: SQL Code to Kill Stale Processes

    This code will kill all processes who do not have an active request, who's last request was more than 24 hours ago and are connecting from management studio. You can...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Can you please help me??

    techmarimuthu (8/26/2013)


    I have some doubts in using of loops in sql server 2005

    can you please anyone help me?

    Thanks in advance

    My general rule of thumb is:

    It's OK to use loops for...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Space taken by Null !

    kapil_kk (8/21/2013)


    Adding some more points to the problem:

    inspite of defining columns as SPARSE it is still taking space in database as I read on some blog that if we specify...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Error while importing to excel

    avdhut.k (8/16/2013)


    Hi,

    I am trying to import sample data into excel,using following code,but it gives me following error,

    Create Table Test

    (

    a Varchar(2),

    b Varchar(2)

    )

    Insert Into test

    values...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: DBCC CHECKDB Error ....

    http://support.microsoft.com/kb/928518

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Case statements advice - query case field?

    Alan.B (8/13/2013)


    Stupid Microsoft :crazy:

    :doze:

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Find Locks and Blocking sessions for a time period

    Profiler is a GUI interface to trace, which does put an extra load on the server. Run the trace server side instead.

    There is a stairway series on server side traces...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: NOT IN vs NOT EXISTS

    peterswe (8/12/2013)


    I found out that this statement

    select *

    from Job_Queue

    where JobQueueID not in

    (SELECT JobQueueID

    from Payment

    where JobQueueID is not null)

    will...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Reg: SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED

    kevin_nikolai (8/2/2013)


    SELECT

    firstname

    ,salary

    FROM dbo.employee e WITH (nolock)

    JOIN salary s WITH (nolock)

    ON s.employeeid = s.employeeid;

    And when your colleagues get short paid because you thought it essential to put...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Looping through table

    ScottPletcher (7/22/2013)


    This is why cursors exist.

    I agree. Sending mails and performing maintenance on a list of database objects are the two areas I use cursors in.

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Stored procedure really slow..Sugestions?

    5) NOLOCK. This hint is very dangerous. Do you understand all the ramifications of this hint? Is duplicate and/or missing information acceptable? Given that some of these queries are hitting...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Indexes

    I suspect the index used by the optimizer is smaller, rather than narrower.

    SELECT

    i.name,

    SUM(ips.page_count) AS page_count,

    MAX(ips.index_depth) AS index_depth

    FROM

    sys.dm_db_index_physical_stats(DB_ID(), OBJECT_ID('BusinessProcesses'), NULL, NULL, 'DETAILED') ips

    INNER JOIN

    sys.indexes i

    ON ips.object_id = i.object_id

    AND ips.index_id = i.index_id

    GROUP...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Accessing MSSQL using a web browser

    Sean Pearce (7/22/2013)


    octavuslimited (7/19/2013)


    I'd be interested to know whether people think this is useful and what issues (licensing, security, traffic etc.) there might be.

    The only issue I have is typing...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

Viewing 15 posts - 301 through 315 (of 608 total)