Forum Replies Created

Viewing 15 posts - 16 through 30 (of 52 total)

  • RE: Deleting rows from multiple tables using join

    Or ...

    DECLARE @Docs TABLE (DocId Int)

    INSERT INTO @Docs(docId)

    SELECT d.docId

    from [document] as d

    where d.containerID = '12345'

    DELETE d

    FROM [document] as d

    INNER JOIN @Docs del

    ON d.docId =...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Update multiple nodes in a xml column by using one update statment

    You could approach it from slightly different angle, instead of having two UPDATEs, you could have 1xSELECT and 1xUPDATE

    DECLARE @temp XML

    SET @temp = (SELECT Column_name FORM Table_name WHERE AuthId =...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: HELP WITH CODE PLEASE

    Hi,

    Review list of possible scenarios you should check that maybe causing this error, with executing sqlcmd command.

    http://msdn.microsoft.com/en-us/library/ms190181.aspx

    Just to name few:

    * Server name was typed incorrectly.

    * The SQL Server service on...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Retrieve XML from Text Column

    There is no simple way of doing it in SQL2k, except passing ntext field from external application as parameter to stored procedure and then parsing it using OPENXML.

    If that is...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: SQL Connection requires port number

    When troubleshooting connectivity issues with SQL2k5, SQL2k8 I would recommend checking following MSDN article:

    SQL2k5 - Troubleshooting: Timeout expired

    http://msdn.microsoft.com/en-us/library/ms190181(SQL.90).aspx

    SQL2k8 - Troubleshooting: Timeout expired

    http://msdn.microsoft.com/en-us/library/ms190181.aspx

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Defragmentation of Indexes on SQL 2005 Sharepoint Database

    Increasing FILLFACTOR may degrade performance of Inserts/Updates on these tables. It's better to test it before it will go to PROD enviroment.

    In official white paper from Microsoft commited by...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: SQL Connection requires port number

    Does 'SQL Server Browser' service is running on your remote server?

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Filegroups vs PRIMARY

    Hi Art,

    I would recommend to check James Luetkehoelter post on 'Filegroups Part II: Separating objects' and see other benefits than performance that you could gain from creating few file...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Filegroups vs PRIMARY

    For moving objects between filegroups you can check following article: http://www.mssqltips.com/tip.asp?tip=1112.

    Large database could benefit from splitting into filegroups between number of physical devices. Optimizing IO with file groups you...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: When should I use distributed queries?

    If you would go with the Linked Servers scenario, what if one of the 50 servers is currently down or some maintenance is being performed on it?

    You've got large tables...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: How to manage mdf and lfd files 4 performance

    You can go even further with splitting the data files between physical drives according to their usage patterns (Read, Read\Write, LOB), but it has better explained in the webcast 'A...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Generate a report to check the total number of concurrent users logged to the SQL Server system

    You can also check out sp_who2

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Partitioning - moving range

    From MSDN on ALTER PARTITION ...MERGE , http://msdn.microsoft.com/en-us/library/ms186307(SQL.90).aspx

    The filegroup that originally held boundary_value is removed from the partition scheme unless it is used by a remaining partition, or is marked...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Help with Optimizing intermittent long-running query

    I understand that you are running the query with the same parameters, as I remeber having performance problems with different values being passed for the query, and having different execution...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Help with a many to many query

    What about using temp table to store criteria IDs, of course you can replace UNION ALL statement with function that will transform coma delimited string with criteria IDs to rowset:

    DECLARE...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]

Viewing 15 posts - 16 through 30 (of 52 total)