Forum Replies Created

Viewing 15 posts - 91 through 105 (of 683 total)

  • RE: Date issue

    Try this:

    select convert(datetime, '01/09/2008 05:37', 103)

    The style 103 indicates that you want to read the string you're passing through as if it was in the british datetime format.

    Hope that helps.

    Looks...

  • RE: How to move SQL Server Servers from existing data center to new data Center?

    If you were using SQL Server 2005 I'd recommend setting up mirroring between the two sites and then manually failover to the second site.

    As you're not using SQL 2005 then...

  • RE: Replication using Log Shipping - Questions

    Muralidharan Venkatraman (10/30/2008)


    yes, i did see the jobs complete successful but the table was not shipped to standby

    Just because the jobs completed successfully doesn't necessarily mean that the log backups...

  • RE: Replication using Log Shipping - Questions

    Muralidharan Venkatraman (10/30/2008)


    1. In the standby side, my understanding is that when the restore happens, no user

    should be logged in. If so, it fails. Also, i...

  • RE: Error in using Dynamic parameter

    The code you posted works fine for me. I just copied and pasted it in a query window in Management Studio and it works.

  • RE: How to delete...

    In that case Gail's suggestion will work for you.

  • RE: How to delete...

    GilaMonster (10/29/2008)


    If all you want to do is remove the P character from the columns, then this will work

    UPDATE SomeTable

    SET SomeColumn = REPLACE(SomeColumn,'P','')

    WHERE SomeColumn...

  • RE: Insert..Set form of insert statement..need help

    Pooja_prasad (10/29/2008)


    thnkz.

    I know the above syntax but I got to know that there is an insert...set form also. Or is it that it is present only in MySQL and not...

  • RE: Insert..Set form of insert statement..need help

    Try this instead:

    insert into contactinfo (FullName, Source, CreatedDate, ModifiedDate)

    values ('XYZ', 'ABC', '2008-09-09 00:00:00.000', '2008-09-09 00:00:00.000')

  • RE: Error in using Dynamic parameter

    Try this:

    SELECT top 1 @a = name FROM SYS.parameters WHERE OBJECT_ID = OBJECT_ID('MQA.tsp_GetSubject')

  • RE: How to increment numbers on data insert?

    Create the target table with an identity column for ProductId.... like so....

    create table my_table

    (

    ProductId[int] identity(1,1),

    ProducerId[int],

    ProductName[varchar](50)

    );

    go

    --and then to insert into it:

    insert into my_table(ProducerId, ProductName)

    select ProducerId, ProductName from my_view;

    go

    Hope that helps.

  • RE: awe

    Taken from the following article: http://www.microsoft.com/whdc/system/platform/server/PAE/PAEmem.mspx

    "When the physical RAM in the system exceeds 16 GB and the /3GB switch is used, the operating system will ignore the additional RAM until...

  • RE: Updating in a cursor

    Garth Michel (10/28/2008)


    Isn't me setting the SELECT to READ ONLY pretty much the same as setting the mode to repeatable read and would this mode be sufficient for what I...

  • RE: Updating in a cursor

    Garth Michel (10/28/2008)


    SQLZ (10/28/2008)


    Have you tried setting the transaction isolation level?

    SET TRANSACTION ISOLATION LEVEL SERIALIZABLE

    Do this inside the body of the stored proc, before you declare the cursor.

    I did read...

  • RE: Collation Error

    The problem is probably related to the tables in the inner join having different collations. Or at least on the columns that you are joining.

    Do an sp_help on the...

Viewing 15 posts - 91 through 105 (of 683 total)