Forum Replies Created

Viewing 15 posts - 901 through 915 (of 1,109 total)

  • RE: Issue with updating

    You should increase the column lengths in your

    "(CODE nVARCHAR(20),CIPHER nVARCHAR(20))"

    to more

    e.g.:

    (CODE nVARCHAR(1000),CIPHER nVARCHAR(1000))

    so that it can hold the concatenated results,

    Regards,

    Andras

  • RE: Tlog file

    Of course I would not like to stop you deleting the transaction log, but I hope you know that the transaction log is a rather critical file(s) for a database....

  • RE: Transpose

    Here is a version that shows the information you need, you just need to dump the output to your audit table:

    CREATE TRIGGER auditTrigger_my_table ON my_table
        AFTER INSERT
    AS
    ...
  • RE: Issue with updating

    SELECT DISTINCT
            t1.ID
          , STUFF(( SELECT DISTINCT TOP 100 PERCENT
            ...
  • RE: Row value in column wise

    Hi Inesh,

    Pivot can do what you want to achieve. Since you do not know what columns you need to specify for the pivot operator, you need to construct the query...

  • RE: Transpose

    Hi Steve,

    have you looked at the UNPIVOT operator?

    Regards,

    Andras

  • RE: Does Writing to a databse use the ntsf file system

    SQL Server is using the OS for this. But it is highly optimized. It uses both scatter-gather (NT: ReadFileScatter and WriteFileGather) and asynchronous calls.

    Regards,

    Andras

  • RE: What r the new Functions and Tips & tricks in Sql Server 2008

    I'd hope such changes would come to the SQL Standard first . Including the above syntactic sugar in TSQL would probably confuse more than...

  • RE: Tlog file

    What recovery mode is your database in (full, simple, bulk)

    select recovery_model_desc from sys.databases where database_id=db_id()

    If it is in full, you will need to back up the log, then truncate it.

    If...

  • RE: How to show row values in columns wise.

    SELECT DISTINCT
            t1.GroupID
          , STUFF(( SELECT DISTINCT TOP 100 PERCENT
            ...
  • RE: How to set up Auto-Increment in SQL Server 2005

    Yes you can. The column definition accepts identity(seed, increment) specification, but you cannot alter a column to become an identity column, or drop this property while keeping the column. You...

  • RE: Help with Table Update which contains duplicate rows

    In case you do not have a primary key, or any way to identify the row, and have duplicates, you can do something horribly ugly with set rowcount. An example...

  • RE: sp_helpindex doesn''''t tell about covering index !

    A simple example:

    SELECT  sts.name
          , st.name
          , si.name
          , ssc.name
        ...
  • RE: sp_helpindex doesn''''t tell about covering index !

    Unfortunately sp_helpindex does not contain this information. You have to dig this out from the system views. The ones you will need are sys.indexes and sys.index_columns. The later has a...

  • RE: reading through security principles

    There are different types of principals in SQL Server. There are server and database principals. (as in sys.database_principals and sys.server_principals)

    database users are part of the database_principal level.

    Regards,

    Andras

Viewing 15 posts - 901 through 915 (of 1,109 total)