Forum Replies Created

Viewing 15 posts - 631 through 645 (of 790 total)

  • RE: Output from dynamic sql

    Here's an example:

    declare @sqlstring nvarchar(1000), @table_name varchar(25)
    
    declare @result int

    set @table_name = 'pubs.dbo.authors'
    set @sqlstring = 'select @c = count(*) from ' + @table_name

    exec sp_executesql @sqlstring, N'@c...
  • RE: Sorting a date column

    I can't see why they would be displayed in dd/mm/yyyy format, order from earliest to latest. Can you post an example of out of sequence dates?

  • RE: Sorting a date column

    Your query looks ok. When you say you're not getting the desired results, what do you mean? Not the required ordering? Not getting the required output formats?

    ...

  • RE: SQL Server Considerations

    quote:


    1) Can I host all the SQL Servers on one powerful machine under windows 2000?


  • RE: Select 2 lines into 1

    You must also note the SQL does not guarantee the order in which results are returned if you have no ORDER BY clause. Even though you may currently be...

  • RE: weekly and monthly rollups in 7.0

    I might be misunderstanding the question. COMPUTE BY is available in SQL 7.0. Can you post the SQL2000 query?

  • RE: Collation SQL Challenge

    Following on from Nigel's post, your first SELECT could be coded as:

     
    
    SELECT CAST(THE_ID AS VARCHAR(8)) + THE_VALUE COLLATE DATABASE_DEFAULT FROM @table_a
    UNION
    SELECT CAST(THE_ID AS...
  • RE: Table Variable question

    B) SQL_Latin1_General_CP1_CI_AS

  • RE: Backup from Standby

    My guess is that replication will put a much higher load on your production server than just a plain backup will. Replication can also have administrative overheads. IMHO...

  • RE: the update() function in a trigger

    No, I was saying that the INSERT INTO command will return true for update() for all columns, regardless of whether NULLS or empty strings are assigned.

    The following will return false...

  • RE: Error 997 GetProxyAccount

    Here's the URL from hell . I hope it posts ok and navigates ok for you. It shows a discussion and resolution for similar symptoms....

  • RE: regarding stored procedure looping

    Hard to tell without you posting the actual code. Where does SP3 come into play?

    Have you tried a series of PRINT, SELECT or RAISERROR...NOWAIT statements to track values of...

  • RE: How do I make a stored proc ingore an error?

    SQL Server is checking compliance with constraints before your code checks @@error. It will not allow duplicates in the primary key and so throws the error regardless of how...

  • RE: Role script

    You may have to generate a script larger than intended and then extract the bit you want.

    In EM, right click on DB name, All Tasks, Generate SQL Script, General tab...

  • RE: the update() function in a trigger

    When you UPDATE the row but not SET that particular column to any value

Viewing 15 posts - 631 through 645 (of 790 total)