datediff

Technical Article

RE: trace

  • Reply

Okay. Just went through this several weeks ago. This ended up being my solution. Because of the amount of events that I'm tracking I had to create a stored procedure because the set events went beyond the length of the Jobs window. Here is the header for the stored procedure. First step is to output […]

You rated this post out of 5. Change rating

2005-03-30

Technical Article

RE: Using DTS to FTP data to mainframe

  • Reply

"As per my experience, uploading file by natual DTS is so flexible. For example, the file name is not allowed to changed. "The name of the file can be changed by using the Visual Basic Active X Script functionality within DTS. Just send the output of the text file destination icon to the active x icon and […]

You rated this post out of 5. Change rating

2005-03-30

Technical Article

RE: Assigning a select to 1 view to a user make him see all my objects?!!

  • Reply

HelloSQL Authentication, its normal user not belong to any group its a son of SQL server only I've just create it in Logins in EM and assigened it to 1 view only, Acctually he can read the data from that view, but also he can browse the whole other views design, even all DTS logic […]

You rated this post out of 5. Change rating

2005-03-25

Technical Article

RE: Question for SQL Master -- max mean-caller

  • Reply

Lets look at your Question #2 a bit at a time.The datediff("D",CH1.CallDate,getdate()) was used to come up with the "age" of the call.  If that is not what you meant by "age", you will have to clarify further.The CH2.CallDate > dateadd("M",-12,getdate()) clause was used to constrain the results to calls within the last year, as […]

You rated this post out of 5. Change rating

2004-12-03

Technical Article

RE: Dup finding question...

  • Reply

Hmm... I'm not sure I understood the question... are you asking how to mark all entries with duplicity, instead of leaving always one of them unmarked? If so, then try this:UPDATE e SET Dup = Yes FROM Employees e JOIN (SELECT FirstName, LastName, count(EmployeeID)  FROM Employees  GROUP BY FirstName, LastName  HAVING count(EmployeeID) > 1) as […]

You rated this post out of 5. Change rating

2004-08-26

Technical Article

RE: Restoring an SQLServer 2000 database - questions...

  • Reply

THANKS much !!! (Yes, it isn't that large a database when you think about, compared to the others we have on this system it is one of the largest).Obviously I need to do a couple of practice restores on dummy databases to get this down.My big concern was after 3 hours, and having no gauge […]

You rated this post out of 5. Change rating

2004-03-31

Technical Article

RE: unknown number of parameters for sp

  • Reply

There have been a couple of threads recently where a set of values is passed in via a single parameter. The query then does a charindex() in order to "parse" those separate values. That should work and you won't have to worry about extraneous parameters you won't necessarily use. K. Brian Kelley, GSEC http://www.truthsolutions.com/ Author: […]

2003-12-10

1 reads

Technical Article

RE: Finding & removing a space from a string

  • Reply

Now why did the multiple spaces get removed? 'Have___a__Nice_day!' to 'Have_a_nice_day!' When I wrote this originally I was scrubbing some data that had a ton of problems like this. It had been converted by several someone elses before me and they had concatinated a bunch of fields with little to no regard for spacing.

You rated this post out of 5. Change rating

2003-08-21

Blogs

Set a Runtime Variable in an Azure DevOps Pipeline

By

Note: I DO NOT recommend this. Any changes to a pipeline should be in...

A New Word: Symptomania

By

symptomania – n. the fantasy that there’s some elaborate diagnosis out there that neatly...

Query Store Keeps Switching Itself Off, Getting it Moving Again

By

I recently received a complaint that Query Store for a particular database was turned...

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