Forum Replies Created

Viewing 15 posts - 421 through 435 (of 521 total)

  • RE: DEFINITION of XACT_ABORT

    In BOL Index tab, type the key word "SET XACT_ABORT".

    From BOL:

    "When SET XACT_ABORT is ON, if a Transact-SQL statement raises a run-time error, the entire transaction is terminated and rolled...

  • RE: Transactions in SP

    In a nested transaction, the rollback command in any nested SP will rollback the whole transaction and the @@TRANCOUNT will jump to 0. This is the expected behaviour of SQL...

  • RE: Linked Server Transaction Problems

    Here is the contradiction. For linked server, th SP needs to set XACT_ABORT ON. It means the SP will rollback and termidate immediately if run time errors happen. The application...

  • RE: How can I execute a query stored in a text field

    Ok. I don't know xp_cmdshell is disallowed in your environment.

    If the query in th text field is >4000chars, sp_execsql does not work. However, you can concatenate multiple 8000bytes string and...

  • RE: To wait or not to wait 2k5??

    Both VS and SQL server 2k5 have beta version released. What about download from MS site now instead of waiting?

     

  • RE: When is it time to turn off HT

    When turing HT on, I experienced performance degradation in w2000 with SQL 2000 enterprise edition. So my suggestion is on W2000, turn it OFF.

    On W2003, windows has better support for...

  • RE: SQL Server on a domain controller

    Lots of reasons, such as security, server load, differeent administration tasks etc.

    It's not recommended to do this. But in a small organization with 10 PCs, why not? Budget has the last...

  • RE: Index Defrag

    It depends on lots of factors, such as down time, server load, table size etc.

    Defrag is online operation has samll impact on other transactions. Reindex one table is one big transaction and...

  • RE: 1.5 mil recs and a web based UI

    Firstly, if country, State, City, ... hierarchy is not avaible, you can has a list of buttons of letters "A", "B", "C", "D",...."Z".

    Second, it's better to implement paging in the server...

  • RE: Creating realtionship between tables not in the same DB

    It's true. Every technology or solution has its pros and cons.

    If you use this feature in Sybase, it means you need to manage related dbs as a group.

     

    A gun...

  • RE: Linked Server Transaction Problems

    Check @@error first after you make the call.

    If no error and @@TRANCOUNT>0, commit it and you can get the value of @return.

    If @@error<>0 and @@TRANCOUNT>0, roll it back. In this...

  • RE: All the wonders of Collation

    If the new server only hosts your db, the simplest way is to reinstall SQL server and resttach ur db.

     

     

  • RE: How can I execute a query stored in a text field

    Anotther solution is query the text field to a file and then run it in my previous suggested way.

    To query the result to a file:

     DECLARE @Command nvarchar(255)

     DECLARE @ServerName nvarchar(255)

     SELECT @ServerName=CAST(SERVERPROPERTY('servername')...

  • RE: How can I execute a query stored in a text field

    Sorry, I read the question as query stored in text file instead of text field. The above mentioned solution does not work for text field.

    If you know the possible maximum...

  • RE: How can I execute a query stored in a text field

    If you do not care about the context, you can pass the file name as a parameter in your SP and call isql to run it.

    CREATE PROCEDURE dbo.usp_RunScript @ScriptFile nvarchar(255)

    AS

     DECLARE...

Viewing 15 posts - 421 through 435 (of 521 total)