window functions

Technical Article

RE: Naming a File and E-mailing Using DTS

  • Reply

Try this one:declare @outfile varchar(255) declare @cmdshell varchar(255) declare @msgsubject varchar(255)set @outfile = 'd:\path\QryResult_' + convert(varchar(6), getdate(), 12) + '.asc' set @cmdshell = 'rename d:\path\yourfile.asc ' + @outfile exec xp_cmdshell @cmdshellset @msgsubject = 'This is the Query result for ' + convert(varchar(10), Getdate() , 102) exec xp_sendmail @recipients = 'a@company.com; b@company.com',      @copy_recipients = 'c@company.com', […]

2004-03-17

Technical Article

RE: Log Shipping - Do we still do Full Backups

  • Reply

Always back up your databases daily no matter what else you do. Say for example Monday morning you notice the log ship server had a problem with log shipping over the weekend and no trans logs have been applied, and due to the fact that they are older than your max retention period they have […]

You rated this post out of 5. Change rating

2004-03-10

Technical Article

RE: Question of the Day for 02 Mar 2004

  • Reply

Sure, I can. I do this kind of explanation each evening to my son when it's time to go to bed. - Start BOL (You should see 'Getting started...Microsoft SQL Server 2000...) The title bar should now state ...(Updated) - There should be a link to 'What's new in SQL Server Books Online'. - Following […]

2004-03-02

Technical Article

Dynamically Generate Table Name in Stored Procedure

  • Topic

I have a stored procedure in which I test for the existence of a certain table and then drop it, if it exists.  I then recreate the same table.The problem is that this same table would potentially be dropped and recreated by many users, thereby deleting the result set that a given user had placed […]

2004-01-28

2 reads

Technical Article

RE: Wild card join

  • Reply

That is probably a good idea, but I still have to use chars as my datatype, because the codes are alpha numeric. Most of the time they are just numbers, but there is always at least one or two partially or totally alpha codes. Thanks for the suggestion. I will research implementing Nulls instead of […]

You rated this post out of 5. Change rating

2003-11-24

Blogs

Our Contributions Towards a Stronger Open Source Future

By

Whether you’re a developer at an agency or an aspiring creator, you can trust...

Rebuilding a SQL Server Database Transaction Log

By

“Could you help me, we deleted the database’s transaction log file and now that...

Copying Content from One Databricks Unity Catalog Catalog to Another

By

I had a couple of clients who were moving content from development catalogs to...

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