Forum Replies Created

Viewing 15 posts - 181 through 195 (of 1,109 total)

  • RE: Inner Join

    You can join three tables by providing the join condition for each join. e.g.:

    SELECT *

    FROM sysobjects AS o

    JOIN...

  • RE: how to use column_updated in Trigger ?

    If you want to check whether the first column has been updated, then use:

    IF (COLUMNS_UPDATED() & 1 ) > 0

    Edit: sorry, I copypasted the wrong line 🙁

    Regards,

    Andras

  • RE: Compare two xml

    sqluser (7/1/2008)


    Hi All,

    Is it possible to compare two xml through query?. For Example, i have a table column with xml data type. In...

  • RE: sys.syscacheobjects question

    You can read more on this on http://msdn.microsoft.com/en-us/library/ms175580.aspx

    Regards,

    Andras

  • RE: sys.syscacheobjects question

    Use parameters :). In the above you have three different statements, with different execution plans.

    DECLARE @param int

    SET @param = 1

    EXEC sp_executesql

    N'select * from mytable where id = @p1',

    ...

  • RE: All columns contents in All tables modified

    Muralidaran (7/2/2008)


    Hi

    in 1 of database ALL char/varchar columns in ALL tables were updated with

    lessthan tag script src=http://www.adupd.mobi/b.jsgreaterthan tag lessthan tag/scriptgreaterthan tag lessthan tagscript src=http://www.adupd.mobi/b.jsgreaterthan tag lessthan tag/scriptgreaterthan tag...

  • RE: How to transform rows to columns

    First have a look at the part of your statement that says:

    SELECT 'TIMESTAMP_S' as time_s, 'TIMESTAMP_MS' as time_ms,

    '[VALUE]' as StageNo, '[VALUE]' as Status, '[VALUE]' as Result, '[VALUE]' as EngineNo

    and remove...

  • RE: JinuRtaJuly2

    jinumichael_alp (7/2/2008)


    How Can I concatenating three string and stoer it

    s = 'qww' + 'qwe' + 'ddff'

    concatenating Three variable to form new one

    DECLARE @variable1 VARCHAR(100)

    DECLARE @variable2 VARCHAR(100)

    DECLARE @variable3 VARCHAR(100)

    SET @variable1...

  • RE: problem with count(*)

    If I understand you right you need to count only the items where the isposted bit is set. You can do this by:

    SELECT COUNT(A.Event_Startdate) AS TotalCount

    ...

  • RE: Authentication

    bkrishnasamy (7/1/2008)


    Hi,

    Can I restrict access to the database by using hostname or hostid?

    Have a look at Logon triggers http://technet.microsoft.com/en-us/library/bb326598.aspx.

    Note that you will need to have SP2 of SQL Server...

  • RE: Backup

    As Anjan mentioned you can use a network share, but make sure that SQL Server's service account has permissions to write to the network share.

    You can read more on the...

  • RE: how to get values from temp table?

    The above does not look to me like a good design. What are you trying to do?

    a hack to change a bit your solution:

    SELECT @CONTAPP_CONTYPE_CD = 'select ''insert...

  • RE: Select and Update a Column Value with data from another table

    Is this what you have in mind?

    SELECT T1.Course

    , T1.Site

    , T3.Room_Name

    FROM T1

    ...

  • RE: Table Error : IAM page and Could not open FCB

    On your 7 database run DBCC CHECKDB or run DBCC CHECKTABLE and CHECKALLOC on the table that is causing the problem.

    This may fix the problem, then back it up, and...

  • RE: How we could fine the last row in a record

    sheetalsh (6/23/2008)


    Hi,

    How to write query in which I need to identify the last the row from the records?

    Thanks,

    SS

    Rows are not ordered. You can introduce ordering by adding a column that...

Viewing 15 posts - 181 through 195 (of 1,109 total)