Forum Replies Created

Viewing 15 posts - 676 through 690 (of 1,409 total)

  • RE: comparision

    karunakar2351 (9/4/2013)


    Hi,

    I have a table with column name is

    proposaldata

    123456

    542213

    and other table column is

    proposaldata

    000123456

    000542213

    so i need to compare to this columns of different table s but 123456 and...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: help me for Find and replace

    This will give you the desired results:

    ;WITH CTE_XML (Detail, DetVal, Data1, Data2, Data3) AS (

    SELECT

    DetTbl.Detail

    , Data.DetVal

    ,DetVal.value('(/keys/Key/KeyID[. = "Data1"]/../KeyVal)[1]', 'varchar(50)') AS [Data1]

    ,DetVal.value('(/keys/Key/KeyID[. = "Data2"]/../KeyVal)[1]', 'varchar(50)') AS [Data2]

    ,DetVal.value('(/keys/Key/KeyID[. = "Data3"]/../KeyVal)[1]', 'varchar(50)') AS...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: What happens when we take SQL Server Full backup

    MSDN, Technet and BOL have very extensive explanation about the backup process.

    Just start reading 😉

    http://msdn.microsoft.com/en-us/library/ms175477(v=sql.90).aspx/css

    http://technet.microsoft.com/en-us/library/ms187048(v=sql.90).aspx

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Query tuning performance

    Double post, please reply only to the following http://www.sqlservercentral.com/Forums/Topic1491178-1550-1.aspx

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: create proc error

    gurbanov.1984 (9/4/2013)


    hi my friends

    create procedure yerde

    @phone decimal(18,0),

    @unvan nvarchar(200),

    @yunvan nvarchar(200),

    @Sentar smalldatetime,

    @naryadN smallint,

    @naryadtar smalldatetime,

    @sebebi nvarchar(200)

    as

    insert yerdeys(

    phone ,

    unvan ,

    yunvan ,

    Sentar ,

    naryadN ,

    naryadtar ,

    sebebi

    )

    select

    @phone,

    (select top 1 *from phone where phone=@phone),

    @yunvan,

    @Sentar,

    @naryadN,

    @naryadtar ,

    @sebebi

    update...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Case statement

    Junglee_George (9/4/2013)


    Please help to write the SQL query in a more cleaner way...

    CASE ISNULL(TCBOV.cboValueName, '') WHEN '' THEN ''

    ELSE TCBOV.cboValueName

    END

    Thanks

    You don't have to use a CASE statement...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Ugly SQL Statement takes to long to run. I need speed up help

    Without the table definition and some sample data it is hard to analyse your query and give you better solutions. But I'll give it a try.

    I noticed you use 8...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Generate script for database Restore

    I'm not familiar with LiteSpeed, so I don't know how much a LiteSpeed restore script differs from a native SQL restore script.

    This is the approach you need to follow: Compare...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Types of Wait do we see.. Query using Paralleism !!!

    Take a llok at this article by Brent Ozar. It will answer most/all of your questions.

    http://www.brentozar.com/archive/2013/08/what-is-the-cxpacket-wait-type-and-how-do-you-reduce-it/

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Please help on these error messages

    You can not give alias names to a column being updated inside an update statement. Remove the text "AS PhaseType", "AS SDAAFV" and "AS TQPIComment" from the update statements.

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Servr patching install

    Yes, only latest SP and optional latest CU.

    Btw: Microsoft recommends to only install CU if you experience issues solved by the CU. Quote: Apply it only to systems that are...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Servr patching install

    From the Microsoft site http://support.microsoft.com/kb/935897:

    Cumulative update (CU)

    •The update can be requested by any customer, regardless of their support offering.

    •The update is released every 2 months.

    •The update contains the following:

    ???All previous...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: ISNULL results

    Ryan Keast (9/3/2013)


    I've cracked it guys.....

    Because you perform a calcultation with the values out of the COALESCE I suggest you set a numeric value as second parameter instead of a...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: ISNULL results

    Put the fileds in the outer query inside CASE statements:

    SELECT ....

    , CASE

    WHEN APP.APPOINT IS NULL

    THEN 0

    ELSE APP.APPOINT

    END AS 'Number of Appointments'

    , CASE

    WHEN CARDED.Carded IS NULL

    THEN 0

    ELSE CARDED.Carded

    END AS...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Table dependencies

    Take a look at the following article: http://technet.microsoft.com/en-us/library/ms345449(v=sql.105).aspx

    Keep in mind that it's possible the reported dependencies are NOT up-to-date. Some objects can be created when the depending object(s) does not...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **

Viewing 15 posts - 676 through 690 (of 1,409 total)