SQL Server and Poker

September 30, 2008 · Posted in SQL Server · Comments 

I know there are a few poker playing DBA’s out there. Andy, Chris and Peter to name a few. I have uncovered what would be equivalent to unmasking batman.

The mild mannered SQL Server Ambassador,Kevin Kline, is really Daniel Negreanu, the high stakes Vegas hustler.

image  

RE: The SQL Server Experience

September 29, 2008 · Posted in SQL Server · Comments 

It is live and the funnies are here.

Notebook opinions?

September 28, 2008 · Posted in SQL Server · Comments 

 

I am thinking about this for my new laptop since my existing one is out warranty and I want more power. I have looked as Dell, HP and Sonys. The t9400 proc and DDR3 memory is what does it for me. Any other ones I should be looking at?

http://shop.lenovo.com/SEUILibrary/controller/e/web/LenovoPortal/en_US/systemconfig.runtime.workflow:LoadRuntimeTree?sb=:00000025:000019CF:&smid=1BE480ADA7EB421099C1676099E3EA34

 

P.s Anyone want to buy a slightly used 17 inch dv9335nr? Upgraded to Mojave ultimate and 4GB of RAM.

 

ThinkPad T500 – 1 Yr Depot Warranty


 

Processor: Intel Core 2 Duo processor T9400 (2.53GHz 1066MHz 6MBL2)

Operating system : Genuine Windows Vista Business 64

Operating system langu
age : Genuine Windows Vista Business 64 US English

Display type: 15.4" WSXGA+ TFT, w/ CCFL Backlight

System graphics: Intel Graphics Media Accelerator X4500HD

Total memory: 4 GB PC3-8500 DDR3 SDRAM 1067MHz SODIMM Memory (2 DIMM)

Keyboards: Keyboard US English 

Pointing Device: UltraNav (TrackPoint and TouchPad)

style="font-size: 8.5pt; color: black; font-family: "Verdana","sans-serif"; mso-bidi-font-family: arial">

Hard Drive: 160 GB Hard Disk Drive, 7200rpm

Intel® Turbo Memory hard drive cache : Intel Turbo Memory 2GB

Optical device : CD-RW/DVD-ROM Combo 24X/24X/24X/8X Max, Ultrabay Slim (Serial ATA)

System expansion slots : Express Card Slot & PC Card Slot

Wireless card: ThinkPad 11b/g Wireless LAN Mini PCI Express Adapter III

Battery: 6 cell Li-Ion Battery

Country Pack: Country Pack North America with Line cord & 65W AC adapter

Language pack: Language Pack US English

 

Introducing the SQL Server 2008 Experience

September 26, 2008 · Posted in SQL Server · Comments 

Well, not quite yet. It will hit Monday morning. They floated this press release late Friday afternoon so I figured I would scoop the blogosphere give them a plug.

There full release can be found here.

Editor’s note: the Web site referenced below will not be live until 8:00 a.m. PDT, Sept. 29.

REDMOND, Wash. — Sept. 26, 2008

What: On Monday, Sept. 29, Microsoft is launching the SQL Server 2008 Experience online at http://www.SQLServerExperience.com. With more than 500 short videos in 11 different languages, the SQL Server 2008 Experience is a Web site that helps Microsoft’s global customers and partners learn more about SQL Server 2008, Microsoft’s recently released data management and business intelligence platform. SQL Server 2008 provides a trusted, productive and intelligent data platform for business-critical applications. The launch of the SQL Server 2008 Experience kicks off a worldwide readiness outreach that will reach over 350,000 customers, partners and community members through in-person events over the next year.

Visitors to the SQL Server 2008 Experience can expect the following:

• Brief interviews with the SQL Server Engineering team, providing a behind-the-scenes view of the many technologies in SQL Server 2008

• Guidance on a wide range of topics such as business intelligence, compliance, upgrades and application development, including videos from customers showing how SQL Server 2008 is helping them be more successful. Customers that will be featured include Xerox Corp., Baltika Breweries and DriveCam Inc.

• Great deals on SQL Server 2008 books, courses and exams offered by Microsoft Learning

When: Sept. 29, 2008, at 8 a.m. PDT

Where: Online at http://www.SQLServerExperience.com

Capt. Varchar(MAX) and the Pagelatch Posse Vol. 10

September 26, 2008 · Posted in SQL Server · Comments 

SQLOS uses a cooperative scheduler. They actually wrote it from the ground up because it performs better than the Windows preemptive scheduler. KenH(R.I.P.) describes it way better than I can here. It was written for SQL 2000 but is still pretty applicable.

Less Signal Wait. More CPU lovin’

UMS

Maybe I will come up with something funny next week. Happy Friday!

This comic was adapted from Office OFFline.

This Post Needs More Stored Procedures

September 23, 2008 · Posted in SQL Server · Comments 

New in SQL Server 2008 is a server setting called “Optimize for adhoc workloads”. I was happy to see this. You should be too especially if you have ever had arm wrestle an app that causes a bloated proc cache on an x86 box. Ugghh… Adam blogged on it here, Bob blogged on it here and here is the documentation.

I was wondering how this setting would play with the forced parameterization database setting. It looks like forced parameterization trumps the new server wide setting. If my simple tests below are right, it could present an interesting problem. What if your app generates a lot of totally unique adhoc queries that have no benefit from parameterization and you have queries that would benefit from parameterization? Well, the answer is still the same. Write stored procedures. :)

In the real world, sometimes you get a pig and all you can do is put lipstick on it. If you have to choose, “Optimize for Adhoc” would most benefit memoryIO bound servers while “forced parameterization” could help both the CPU and memory usage. However, that is a very general statement. Other things should be considered so it will depend.

 

--So what happens when you turn on "Optimize for adhoc" and forced parameterization exec sp_configure  'show advanced options', 1reconfigure with overridegoexec sp_configure 'optimize', 1reconfigure with override alter database master set parameterization forceddbcc freeproccache 

–Let’s run a query will not generate a trivial plan.

select name, object_id, create_date

from sys.all_objects

where object_id = 3 and create_date = ‘2008-07-09 16:19:59.943′

go

–The CacheObjType is a compiled plan and 57344 bytes

select p.cacheobjtype, p.size_in_bytes ,  s.*

from sys.dm_exec_query_stats s

join sys.dm_exec_cached_plans p

on s.plan_handle = p.plan_handle

cross apply sys.dm_exec_sql_text(sql_handle)

where text like ‘%select name , object_id , create_date from%’

–Now, let’s turn off forced parameterization

alter database master set parameterization simple

dbcc freeproccache

select name, object_id, create_date

from sys.all_objects

where object_id = 3 and create_date = ‘2008-07-09 16:19:59.943′

go 

–The CacheObjType is a Compiled Plan Stub and 320 bytes

select p.cacheobjtype, p.size_in_bytes ,  s.*

from sys.dm_exec_query_stats s

join sys.dm_exec_cached_plans p

on s.plan_handle = p.plan_handle

cross apply sys.dm_exec_sql_text(sql_handle)

where text like ‘%select name , object_id , create_date from%’

The 1st Cumulative for SQL Server 2008 is out

September 23, 2008 · Posted in SQL Server · Comments 

image Time flies. Just by eyeballing the fix list, it looks like the majority of the fixes are for the new features and the BI stack. That is good news if you are thinking about a bleeding edge upgrade of an existing app.

There are two fixes that I find notable:

  • (A data scribbler?) 50003453 – no KB yet – When you programmatically retrieve data from a SQL Server 2008 database, the data in memory may be overwritten
  • 50003224 – 926292 – FIX: When you query through a view that uses the ORDER BY clause in SQL Server 2008, the result is still returned in random order

The second one is a behavior change that could cause some headaches.

SYMPTOMS

You have a view in a database in SQL Server 2005 or SQL Server 2008. In the definition of the view, the SELECT statement meets the following requirements:

• The SELECT statement uses the TOP (100) PERCENT expression.

• The SELECT statement uses the ORDER BY clause.

When you query through the view, the result is returned in random order. However, this behavior is different in Microsoft SQL Server 2000. In SQL Server 2000, the result is returned in the order that is specified in the ORDER BY clause.

Hmm, I thought that worked on SQL 2005. I bet someone had to scream _really loud_ to get that one in.

A SQLCLR Twitter Client

September 21, 2008 · Posted in SQL Server · Comments 

image The product is TweetSQL. It is not out yet but you can see some details here and follow @rhyscampbell. You probably just uttered a profanity at the thought of it on production server. I did when I first heard of it. I even had a day dream moment where I pictured myself going all street fighter on a jr DBA who installed it prod box. Sure, install it on your test box and tweet when you do something cool like write a custom policy with ExecuteSQL() or write a script to only generate indexes. But production? Hell no.

Later, @AlanBarber made a point.

@statisticsio we’re using twitter right now for status and error messages at my company. Surprisingly a nice tool to keep tabs on everything

Hhrmm, I do use twitter to communicate more than the telephone. Maybe not as much email and IM yet but if the bread and butter database fails over, some one better reach out an touch me. More ways the better. Email, SMS, and a phone call from the monitoring already happens. Why not a tweet too? This could be especially important if you do not have SMS capabilities by default. Of course, this is not something you want to go crazy with and pay attention to security. The launch of Yammer whose focus is the enterprise could bring about more usage like this.

I will tell you this… There is not much worse than having your boss call you to tell you there is a major SQL outage. The conversation goes so much better when you call him to let him know there is a problem with the SQL Server and you are on it like a hound dog on a pork chop.

Capt. Varchar(MAX) and the Pagelatch Posse Vol. 9

September 19, 2008 · Posted in SQL Server · Comments 

How many times have you heard “Cursors are evil”? Well, +1.

A cursor vs. set based solution

Set Based

Happy Friday.

This comic was adapted from Office OFFline.

How do you Roll?

September 19, 2008 · Posted in SQL Server · Comments 

 imageOk, one more OT post. The OS war is heating up with Microsoft fighting back.

 

vs.image

 

 

 

 

 

I am not trying to start an eFight. I agree that Mac’s have their place. They are great for n00bs and grandma’s.

Next Page »