Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)

  • RE: Bulk insert

    you can use a xp_fileexists function to check whether the file exists or not(EXEC master..xp_fileexist 'c:\boot.ini') , it will return 3 columns , if file exists file exists column returns 1 and...

  • RE: Transaction log Truncated

    you supposed to use NO_TRUNCATE , read on the following options

    NO_LOG | TRUNCATE_ONLY

    Removes the inactive part of the log without making a backup copy of it and truncates the...

  • RE: How to remove all data from all tables in a database?

    use Enterprise Manager

    Select database Server

    select database whis is required to clean

    right click on database

    select all tasks

    click on Generate SQL Script

    create new database using the above script

  • RE: exporting sql query resultset to cvs or xls

    if you can do manually on Query Analyser, right click on results after executing query and save as csv file...

    if you want to do in automation you can use BCP...

  • RE: Nested Transactions..

    It is not legal for the transaction_name parameter of a ROLLBACK TRANSACTION statement to refer to the inner transactions of a set of named nested transactions. transaction_name can refer only...

  • RE: Script which will backup the transaction

    You can write a VBScript which runs back up ( OSQL ) and Delete commands and finally put this script on automation in SQL Agent Job.

  • RE: Multiple connection strings

    I think you could use DISTRIBUTED TRANSACTION

     

    for example

    USE pubsGOBEGIN DISTRIBUTED TRANSACTIONUPDATE authors   SET au_lname = 'McDonald' WHERE au_id = '409-56-7008'EXECUTE remote.pubs.dbo.changeauth_lname '409-56-7008','McDonald'COMMIT TRANGO

Viewing 7 posts - 1 through 7 (of 7 total)