Forum Replies Created

Viewing 15 posts - 316 through 330 (of 684 total)

  • RE: Primary Key/Unique Key (or) Unique Clustered Index

    Hi.

    A primary key uniquely identifies a row within a table and as such you are only allowed one primary key. In relational theory there can only be one key...

  • RE: How can we see all database tables name and sizes

    If you're not on the latest service pack then the reports are viewable from the summary tab in ssms. Select the summary tab, select a database and then the...

  • RE: CASE on Joined TBLS - Then Query On Result Set

    Gerald,

    You seem to be along the right track.

    Looking at the innner query (the one with the case statement) that looks spot on except for the syntax at the beginning, where...

  • RE: Tables with alternating year info in columns

    Todd Biggins (3/18/2008)


    Oh my gosh, that's embarassing. I didn't even think about just pre-processing the columns before hitting the report. I really appreciate your response--it will help tremendously.

    No...

  • RE: How can we see all database tables name and sizes

    I should point out that my method will not return correct results for tables with XML indexes or full text indexes, whereas Adam's method will return correct results. But...

  • RE: How can we see all database tables name and sizes

    jagpalsingh4 (3/18/2008)


    Hi,

    How can we see all tables names and size of tables in (mb ) from database with query .

    thaxxx

    regards

    jagpal singh

    Try this - results are in kb:

    select...

  • RE: Tables with alternating year info in columns

    Hi Todd,

    I do it pretty much through SQL can't say that that's the best method though but it works for me. I create a couple of temp tables in...

  • RE: DBCC INDEXDEFRAG fill

    Edward,

    Unfortunately you cannot specify a new fill factor for an index during a defrag operation. You'd need to to a rebuild for that.

  • RE: Querying an indexed table

    Hi Dan,

    It doesn't make a difference which order the where clause is written in. So as long as it's logically the same you're ok.

  • RE: Truncating Log file of Replicated Database

    Balakrishnan K (3/18/2008)


    Hi all,

    Gladly welcome your advices / suggestion to have in mind before truncating log file of a Replicated database running under Merge replication. I need to truncate the...

  • RE: Performance issue for a query with order by clause in SQL 2005 SP2

    Did you update statistics when you upgraded to SQL 2005?

    Check out the execution plans on both servers and see if they're different (assuming you have access to the SQL 2000...

  • RE: Problem ! Buffer cache hit Ratio <=67%

    nitin.b.gupta (3/5/2008)


    Hi,

    One of our application uses huge amount of memory for retrieval of data from database for application use only and perform lot of manipulation on it at that time...

  • RE: Date parameters

    When you run it in query mode, what are you typing in for the date? Also, make sure you don't put quotes (single or double) around the date you...

  • RE: Terribly performing query!

    I think this might work better (at first glance anyway):

    SELECT AD_NAME,AD_Image AS AD_HH_IMAGE

    FROM TBL_AD_MASTER AS ADM

    INNER JOIN TBL_WORK_ORDER_DETAIL AS WODTL ON WODTL.Ad_Key=ADM.Ad_Key

    INNER JOIN TBL_WORK_ORDER_HEADER AS WOHDR ON WOHDR.WO_Hdr_Key=WODTL.WO_Hdr_Key

    WHERE WODTL.TASK_SURR_KEY...

  • RE: Help with variable in a Trigger

    you could do this:

    declare @subject nvarchar(510)

    set @subject = @NewUserFN + ' ' + @NewUserSN + ' has registered on the website'

    Then, when you call xp_sendmail you do this:

    EXEC master..xp_sendmail

    ...

Viewing 15 posts - 316 through 330 (of 684 total)