Viewing 15 posts - 1,441 through 1,455 (of 14,953 total)
My standard for documentation, in the code (comments) or in the project (ticketing system discussion thread), is that you have to document WHY some piece of code is the way...
May 23, 2012 at 9:42 am
michael vessey (5/23/2012)
Steve Jones - SSC Editor (5/23/2012)
Mr or Mrs or Miss or Ms 500
Too long, and to be honest, didn't think about it. Plus, could you get...
May 23, 2012 at 9:35 am
SQLKnowItAll (5/23/2012)
May 23, 2012 at 9:33 am
Weird double-post removed.
May 23, 2012 at 9:32 am
I'm not clear on what you're trying to do with this:
case
when CAST(Data1 AS Int) < 0
then -1
else Sum(CAST(Data1 AS Int))
Are you trying to turn all...
May 23, 2012 at 7:12 am
I've got different solutions for different users.
I have a co-worker in one department who's competent enough with T-SQL queries to give her read-only access to the tables she needs to...
May 23, 2012 at 6:57 am
Log shipping is pretty easy to set up, in my experience. My first DR plan, when I had been a DBA for about 2 months, was log shipping, because...
May 23, 2012 at 6:44 am
Can you ask the customer about their rules on that? If not, you're crippled and will be working on "best guess" at best.
If it's mixed alphanumeric, you'll want to...
May 23, 2012 at 6:39 am
Oliiii (5/23/2012)
Lynn Pettis (5/10/2012)
Oliiii (10/15/2010)
Anyone tuning the query by not looking at IO and Time statistics and query plan would immediately fail.
Guess I'd fail here. First things I look...
May 23, 2012 at 6:25 am
You're using the sa login. Have you confirmed that the login still has full sys admin rights?
May 22, 2012 at 11:30 am
You don't currently have to terminate statements with a semicolon. However, you will have to at an as-yet-undetermined future date.
I don't know a tool that will automate adding them...
May 22, 2012 at 11:21 am
I can't test this, because I don't have your tables, but it should look something like:
case when SUM(CASE WHEN [departmentnumber] IN(091111,011111,181101,131111) THEN Chargeamount ELSE '' END) > 0 THEN 1...
May 22, 2012 at 11:13 am
Have you looked at Pivot and Unpivot on MSDN? It's in the From clause documentation: http://msdn.microsoft.com/en-us/library/ms177634.aspx
It looks to me like those will do what you need.
May 22, 2012 at 11:06 am
Here's what I'd do in this instance:
Set up an audit trigger on table 1 to track all inserts, updates, into it. Insert the data from the trigger into Table...
May 19, 2012 at 11:41 pm
guerillaunit (5/18/2012)
Is there a way to change the default setting so that you wouldn't have to do this for each thread you participate in?
It will keep your most recent option...
May 19, 2012 at 11:37 pm
Viewing 15 posts - 1,441 through 1,455 (of 14,953 total)