Forum Replies Created

Viewing 15 posts - 1,216 through 1,230 (of 1,347 total)

  • RE: Row Count and Number of Records differ in Query Analyzer

    Check your client system's memory usage when running this qury - the grid display in QA may be consuming a large amount of memory for such a large resultset, and...

  • RE: Can i call a SP Automatically as soon as we receive a file to upload???

    What are the requirements, regarding latency ? Is it really necessary to load the file almost instantaneously, or is a delay of several seconds acceptable ?

    The requirements drive the solution...

  • RE: syntax error in t-sql stored procedure

    Also, reconsider the stored proc name, in particular the sp_ prefix.

    See: http://www.sql-server-performance.com/vk_sql_best_practices.asp

    Do not prefix your stored procedure names with "sp_". The prefix sp_ is reserved for system stored procedure...
  • RE: optimize a population of a table

    How many indexes are on dbo.Sales ? Can you drop them and recreate them before & after the Insert ?

    Does the table being joined to ([Item Group Template] have an appropriate...

  • RE: Extracting correct week from getdate()

    This is a known Sql Server issue - it doesn't implement an ISO week (i.e. week 1 = 1st week with at least 4 days in it).

    BOL provides an example...

  • RE: insert command issue

    >>Doing a SELECT INTO #TempTables can cause blocking in tempdb.

    In which version of SqlServer ? sys* tables in tempdb are row-locked in Sql2K.

  • RE: How to do this ?

    What if the wholesale price goes above $255 and you can't Char() it ?

    I'm sure I won't be the 1st to ask "Why?" nor will I be the first to...

  • RE: Adding space to middle of string

    I don't think this will be possible with a case-insensitive collation, even if you do use ASCII char values.

    Example - uppercase D is ASCII 68. Try this, to place a...

  • RE: insert command issue

    >>This i know

    It would assist others, then, if you asked a specific question, so as not to waste other's time answering questions you don't need answered.

    A "Select Into" creates the table,...

  • RE: insert command issue

    Insert into requires a table to exist already (and gives an error if the table does not exist).

    Select Into creates the table (and gives an error if the table already...

  • RE: Need to seperate string in two columns using T-SQL

    See the CHARINDEX() and SUBSTRING() functions in BOL.

    Part1: Substring(YourColumn, 1, CharIndex(' - ', YourColumn) - 1)

    Part2: SubstringYourColumn, CharIndex(' - ', YourColumn) + 3, 80)

     

  • RE: CASE in WHERE Clause?

    What you are attempting is really dynamic SQL and it can't be done via a CASE in a where clause.

    You can have:

    Where Table.SomeColumn = (CASE ... END)

    You can't have:

    Where (Dynamic...

  • RE: Update trigger to track only certain changes in the column values.

    You'd use UDPATE(ColumnName) to first determine if the column changed. Then a correlated query between the inserted & deleted tables to compare curr/prev values

    If Update(YourColumn)

    Begin

      If Exists (

         Select *...

  • RE: TSQL bug ?

    Post the DDL for both tables ...

  • RE: TSQL bug ?

    An "In () " subquery is not correlated, therefore there is no requirement for the column name in the outer query to match the column name of the subquery resultset....

Viewing 15 posts - 1,216 through 1,230 (of 1,347 total)