Forum Replies Created

Viewing 15 posts - 1,966 through 1,980 (of 2,268 total)

  • RE: Duplication of Id's

    Check the strored procs and front-end code that you use to insert data for a bug that may be causing this.

    If you are not allowed to have duplicates of IDs...

  • RE: new instance question

    You will need to run through the setup process again to create an instance, if you have access to the SQL server install disks then run through these again.

  • RE: Updating a field

    you are using the text data type so you will need to cast to varchar to convert

    UPDATE tbl1847

    SET ...

  • RE: Updating a field

    try this code to update

    Update tbl1847

    Set YourFieldName = '00' + YourFieldName

    I was unsure what your field name was, so subititue it in..

  • RE: Quick Access Query

    this should get you the latest value based on time-stamp

    SELECT top 1 *

    FROM YourTable

    ORDER BY timestamp DESC;

  • RE: Performance Tuning for the stored procedure

    do you have any indexes for data1 and data2?

    how many rows are in the table?

  • RE: regd small query

    if there are no rows in your table for def----failure and ghi---succes then it will not be able to cout these at all.

    do you have a master table that...

  • RE: 14 minutes to return only 20% of rows in table of ~6M

    How big is the table?

    What indexes do you have defined?

  • RE: What Software do I need to purchase to Create and Distribute a Database Program.

    clive.norman (8/13/2008)


    I have just thought of hopefully one last question

    If all I need is SQL Server why do I need C#? AS alot of books seem to indicate.

    Look forward to...

  • RE: Queries

    try casting the weeks to integers

    Select Property_Name, Sum(cast(week_1 as int) + cast(week_2 as int) + cast(week_3 as int) + cast(week_4 as int))

    from Profit_Records

    where Type_Property = 'CASTLE'

    Group by Property_Name

  • RE: Queries

    I think this is what you want

    Select Property_Name, Sum(week_1 + week_2 + week_3 + week_4)

    from Profit_Records

    where Type_Property = 'CASTLE'

    Group by Property_Name

  • RE: Removing punctuation from a string

    I have done something similar using PATINDEX and a while loop, try this code.

    DECLARE @i int

    DECLARE @String varchar(100)

    SET @string ='Starsky & Hutch Ltd.'

    SET @i = (SELECT PATINDEX('%[^a-z^0-9 ]%', @String))

    WHILE...

  • RE: Relationships

    It looks like it is an issue with the data that is currently in the tables, are you able to clear out the tables then create the relationship?

  • RE: Quey Tunning

    ISNULL requires two arguments;

    ISNULL ( check_expression , replacement_value )

    so to replace the value ISNULL as 0 use

    ISNULL([T_ICPAudit.Amount],0)

  • RE: SQL Server does not allow remote connections.".

    Enable SQL browser on the SQL server..

Viewing 15 posts - 1,966 through 1,980 (of 2,268 total)