Forum Replies Created

Viewing 15 posts - 2,326 through 2,340 (of 3,233 total)

  • RE: Adding date timestamp to a backup file name

    Or, if you want to remove the dashes as well:

    DECLARE @BackupFileName varchar(100)

    SET @BackupFileName = 'C:\temp\TestDB_' + REPLACE(REPLACE(REPLACE(CONVERT(varchar,GETDATE(), 20),'-',''),':',''),' ','') + '.BAK'

    BACKUP DATABASE TestDB

    TO <A href="mailto

    2 questions for you:

    1. You say that the message says that 3000 rows were affected but that the table is not affected.  If you are updating the row to the...

  • RE: How to Single-Thread a stored procedure

    For what it's worth also, the SYSLOCKS table should no longer be used as it has been replaced with SYSLOCKINFO.  In your query, you are joining them both together.  You...

  • RE: Restore DB not completing

    "SQL Server will "feel" confused"

    I've always kind of thought that SQL Server had feelings!  Anyhow, I'd agree with SQL Oracle that it is possible that the file is corrupt or...

  • RE: restoring the database in another instance

    Run RESTORE FILELISTONLY FROM DISK='fully qualified backup path and file name' to get the abc_data and abc_log values for below.  Then restore the DB using a QA session opened up...

  • RE: How to Single-Thread a stored procedure

    Please keep us posted as to an update on how your volume testing goes with this approach.  I will help those who read this thread going forward. 

    Thanks.

  • RE: Saving Trace Definitions

    How can a trace definition be any more re-usable than saving off a template?  Can you explain why this is clunky?  I think we may be missing something here.  Please...

  • RE: How to Single-Thread a stored procedure

    "It has the down side that you have effectively created a temp table name that you now cannot reuse in another procedure."

    Michael, I think what Sergiy was impying here is...

  • RE: Memory Configuration

    "Not a 64-bit guy, just what I read."

    Me either.  Maybe I shouldn't have answered this post!!  Sorry if I caused anyone confusion.....

  • RE: How to Single-Thread a stored procedure

    SQL Server treats an application lock just as it would a lock on any other physical resource such as a table.  I have not played around with it enough to...

  • RE: unziping a file

    Along with what I've said here: http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=357553

    Create an 'Execute Process' task in your package and call the command line command to unzip your file. 

  • RE: Bulk Insert

    I went through and looked at your recent posts and it appears that your file import is more than just a simple bulk insert.  It looks like you have a...

  • RE: How to Single-Thread a stored procedure

    You may also consider writing logic into your stored procedure to take advantage of SQL Server's application locks.  Use BOL to read up on sp_getapplock.  In a nut shell, you'd...

  • RE: Memory Configuration

    If I'm reading you correctly, you want to know how much of the 8GB you should give to SQL Server?  I would recommend giving SQL Server 7GB of the memory...

  • RE: Trigger and deadlocks

    I would definately consider re-designing the process here.  Many database developers will try to code things into triggers simply because the word 'Trigger' makes them think to use triggers to...

Viewing 15 posts - 2,326 through 2,340 (of 3,233 total)