Forum Replies Created

Viewing 15 posts - 1,006 through 1,020 (of 1,347 total)

  • RE: What is the difference in Unique Nonclustered Index Creation methods?

    The constraint is declarative and is portable to other ANSI compliant database platforms.

    The index is a physical implementation which may or may not be portable to other RDBMS's.

  • RE: Reasons Against Clustered Index

    Reasons against a clustered index:

    - Fragmentation. If the indexed column(s) are subject to updates this can cause page splits & fragmentation.

    - Size of non-clustered indexes. Every key value in the clustered index...

  • RE: Why?

    >>To a user, they don't want to see the word NULL!

    Of course not ! That's why it's called the 'presentation' layer.

    The value is unknown/indeterminate, so you you 'present' it to the...

  • RE: Slow running query

    Is this on a busy server, with other processes using tempdb at the same time as this query ? Consider creating the #temp table, then inserting into it, instead of...

  • RE: Slow running query

    Difficult to answer without seeing the offending query(s).

    What does QA tell you when you analyse the query ? Is it table scanning this table ? are statistics up to date...

  • RE: Update Query involving tables in two Databases

    Sql Server has different syntax than MS-Access.

    Try:

    UPDATE Table1

    SET Saved = 1

    FROM Table1

    INNER JOIN table2 ON Table1.PrimaryKey = Table2.PrimaryKey;

    You can only update 1 table at a time, so you'll need...

  • RE: Why?

    >>ISNULL(CI.InsuranceStartDate, '00-00-00') AS 'InsuranceStartDate'

    '00-00-00' is not a valid date. You have 2 choices:

    1) Return the column as a varchar in the result set

    ISNULL(Cast(CI.InsuranceStartDate As varchar), '00-00-00') AS 'InsuranceStartDate'

    2) Choose a...

  • RE: "Cancelled by user" error

    I have also run across this and gave up on fixing it. There are articles out there that explain what causes it - can't recall, but it can happen if...

  • RE: SQL Performance Q''''s

    Also ...

    >>it shows that the non sql server page faults are average 1321 a second!! 

    What switches are in effect in your server's BOOT.INI file ? Looking for info on...

  • RE: MID Function SQL

    Given the complexity of the expression, you might consider creating a UDF for it. In a UDF, you can assign results of the 1st CHARINDEX() to a locally scoped variable,...

  • RE: MID Function SQL

    SUBSTRING() function is equivalent to Mid()

  • RE: Problem with variables in dynamic SQL statement.

     AND         order_date BETWEEN ' + @startDate + ' AND ' + @endDate + '

     You aren't single-quoting your dates.

    Anytime you have a problem with dynamic SQL, PRINT it instead of EXECuting it...

  • RE: Multi Threaded application calling stored procedures

    >>What is the proper way to use a prepared statement across multiple threads?

    What are you using for data access. Since it's Java, can we assume JDBC ? If so, are...

  • RE: String Concatenation with Nulls and Spaces

    You could continue concatenating as now, and wrap the completed string in a coutple of calls to REPLACE() that replace any occurrence of 2 spaces with 1 space. The number...

  • RE: urgent sql assignment

    Personally, I'd be asking for a refund of tuition fees. Any Sql Server class that doesn't start by showing your where to find & how to use the online documentation...

Viewing 15 posts - 1,006 through 1,020 (of 1,347 total)