User

Technical Article

RE: Log Shipping Hell

  • Reply

Gary,For log shipping, the secondary server should be in read-only mode. There is nothing wrong with it. With you having mentioned that all the copy and restore jobs are successfully, i can't think of anything else. Can you verify that the loginhistory table is in the log shipped database ?

You rated this post out of 5. Change rating

2004-09-22

Technical Article

RE: date parameter

  • Reply

If you are looking to return just the items despatched during the last calendar month, try using something like this:where oh.date_despatched between convert(char, dateadd(mm, -1, dateadd(dd, -(day(getdate()) - 1), getdate())), 112) and convert(char, dateadd(dd, -day(getdate()), getdate()), 112)This calculates the 1st day of the preceeding month and the last day of the preceeding month with no […]

You rated this post out of 5. Change rating

2004-03-23

Technical Article

RE: Passing a querystring to a stored procedure?

  • Reply

- keep sql-injection in mind ! Check http://qa.sqlservercentral.com/columnists/chedgate/sqlinjection.asp- just define your variables as sp-parameters and handle your statement in your sp. You will soon discover it's best to work with known predicates.- check http://www.sommarskog.se/dynamic_sql.html and http://www.sommarskog.se/dyn-search.html

You rated this post out of 5. Change rating

2004-03-03

Technical Article

RE: Trigger search for table

  • Reply

If you want the name of the table along with the trigger name: select tbl.name as TABLE_NAME, trg.name as TRIGGER_NAME from sysobjects trg inner join syscomments sc on sc.id = trg.id inner join sysobjects tbl on tbl.id = trg.parent_obj where trg.xtype = 'TR' and sc.text like '%[^A-Z0-9_]sales[^A-Z0-9_]%'

You rated this post out of 5. Change rating

2003-08-31

Blogs

SQL Saturday Boston 2024 Slides

By

Thanks to everyone that came to my talks. Slides are below. Best Practices for...

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...

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