Restore

Technical Article

RE: A tale of two where clauses...

  • Reply

It always annoys me when I see a newsgroup thread somewhere about a problem I am having, and the conversation stops before the problem is found or the resolution is posted. I will say that I recieved much better support and ideas from this forum than the MSDN Managed discussion groups. Thanks for trying everyone!

You rated this post out of 5. Change rating

2004-08-20

Technical Article

RE: Truncate vs delete

  • Reply

If you want to remove all the data from a table, use TRUNCATE TABLE because its damn fast. The transaction log will just contain the TRUNCATE TABLE command.If you use DELETE FROM then the transaction log contains a record for EVERY ROW in the table, a slower process.

You rated this post out of 5. Change rating

2004-08-20

Technical Article

Merge replication error, foreign keys

  • Topic

I'm running into an issue with merge replication that has just started to crop up.  I wrote a nice process for checking data in/out of a tablet for field work and something was missed in my documenting HOW I set it up.When I go to run a pull merge subscription from the subscriber I am […]

You rated this post out of 5. Change rating

2004-07-21

70 reads

Technical Article

RE: How do we backup and reste to another server

  • Reply

Hi Chami,  You can restore from another server by using the UNC path like:RESTORE DATABASE TestDB FROM DISK = '\\OldServer\backups\TestDB.bak'  Derrik already pointed out the WITH MOVE option for placing the files in another location.  Now you did say the MASTER database, which is another story.  In order to restore the MASTER database, you need […]

You rated this post out of 5. Change rating

2004-06-14

Technical Article

RE: Problems automating a delete statement..

  • Reply

It looks like TIMESTAMP is really a VARCHAR column (since it has parenthesis in it), so try:DELETE FROM mytable WHERE CAST((SUBSTRING(TIMESTAMP,1,10)) AS DATETIME) < GETDATE()-90The SUBSTRING will get just the date portion. Then the CAST will change it to DATETIME (adding default time of 00:00:00.000).-SQLBill

You rated this post out of 5. Change rating

2004-06-09

Technical Article

RE: Unheard of sp_OA error

  • Reply

Thanks for replying Jeet, a) there's nothing in the event viewerb) It fails on the "EXEC @RC = sp_OAMethod @lFolder, 'Size', @lFolderSize OUT" line.c) The path is valid. It is checking (and copying/moving/deleting) thousands of folders and after a while there is this single error repeatedly (other OLE calls are still OK). (can't wait to user […]

You rated this post out of 5. Change rating

2004-06-08

Technical Article

Masking an amount

  • Topic

Hello to all. I have a DTS job that creates a flat text file including an amout field (money) when the column is written into the text file it has to be maked as follows:1. Amonut 25.23 or 485.562. Mask should be: 0000002523 (ten characters with leading zeros and no decimal point)   or 0000048556I did masked […]

You rated this post out of 5. Change rating

2004-06-08

1 reads

Technical Article

RE: User-defined-function

  • Reply

This has added logic to validate after a friday holiday to move to monday.create function fn_NextTrDate(@TrDate datetime) returns datetime as begin  -- knock off the time part.  SET @TrDate = dateadd(d,datediff(d,0,@TrDate),0)        -- advance to next date (not using datepart because of @@datefirst concerns)         set @TrDate = dateadd(dd, case datename(dw, @TrDate)                                     when 'Sunday'   then […]

You rated this post out of 5. Change rating

2004-05-17

Blogs

Small Data SF 2024

By

I can’t remember how I heard about Small Data SF 2024, but it caught...

A New Word: Moledro

By

moledro – n. a feeling of resonant connection with an author or artist you’ll...

Snowflake + Azure blob

By

Let’s go back to data platforms today and I want to talk about a...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers