Forum Replies Created

Viewing 15 posts - 991 through 1,005 (of 1,082 total)

  • RE: using Datediff function between Rows

    Hi there,

    Could you give us the structure of your table please.

    thanks

    Chris

  • RE: whats wrong with this script

    HI There,

    You can't "Select * from"  nvarchar.

    You need to use a table or table variable.

    What is it that you are trying to do?

  • RE: Triggers - Very urgent

    HI There,

     

    That is very strange.

    Here is the script I used to replicate the problem.

    The trigger fire 100% every time.

     

    --CERATE TABLES FOR TESTING

    CREATE TABLE log_authors

          (au_id INT );

  • RE: Triggers - Very urgent

    Hi,

     

    Please could you send the logic in your Trigger so that we can see if there is something wrong there.

     

    Thanks

    Chris

  • RE: TRIGGER

    Hi,

     

    Depends what your Procedure is actually doing?

    Are tyou saying that you run a proc that does something on a table and that table has insert/update and delete triggers on it?

    Thanks

    Chris

     

  • RE: Trouble converting varchar to datetime

    Hi Sam,

     

    Try this...

    SELECT

    CONVERT(DATETIME,@latestUpdate,103)

     

    Thanks

    Chris

  • RE: Concatenating fields

    HI Nick,

     

    Make sure that you cast Field2 to a varchar before trying to concatenate the fields.

    If both vars are varchars at the point on concatenating then it will def work.

     

    Thanks

    Chris

  • RE: Slow-running SP

    Hi Mark

    You can put a clustered Primary key on a table variable.

     

    I would suggest testing with both a table variable with indexes and a temp table with indexes.

     

    Let me know...

  • RE: Concatenating fields

    HI Nick,

     

    What are the data types of your fields?

     

    If they are both INT's then if you cast both of them to VARCHAR it should work 100%

     

    Thanks

    Chris

  • RE: Slow-running SP

    Hi Mark,

    Have you tried putting indexes on your tables?

     

    Thanks

    Chris

  • RE: Get date values from a long string

    Hi Jeff,

     

    Wow that is a really good way of doing it.

    I like you code it very nice and neat and easy to ready 🙂

     

    I'll be using this in the future...

  • RE: Performance tuning

    Is this an exam question?

     

    I suggest you create the table and insert that many rows into it and give it a test.

    Thanks

    Chris

     

  • RE: Difference between char,varchar,nvarchar, nchar,varchar2

    ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/a54f7373-b247-4d61-8fb8-7f2ec7a8d0a4.htm

     

  • RE: Get date values from a long string

    Hi Marc,

     

    Not sure if this is the best method.

    It uses what some people call a magic numbers table.

    My example does this for a single string value so if you put...

  • RE: QA results window - how do I remove it?

    HI There,

     

    Another way to work is have the results displyed in there own screen.

     

    Click on the Query file opion -> Query Options -> Results -> on this screen there is...

Viewing 15 posts - 991 through 1,005 (of 1,082 total)