Today's teaser is very simple

First create this table

CREATE TABLE #Tran (TranCountDefault int DEFAULT (@@TranCount),TranCountPassedIn int)

 

As you can see that table has two columns, one column has a default of @@TRANCOUNT. Now run this piece of code

DECLARE @trancount int

SELECT @trancount = @@TranCount

INSERT #Tran (TranCountPassedIn) VALUES (@trancount)

We assigned @@TRANCOUNT to the @trancount variable and we passed that in, so TranCountDefault  has the default value and TranCountPassedIn has the value we passed in

Now when you do a select from the table will the 2 columns have the same value?

SELECT * FROM #Tran


Posted by Denis Gobo, filed under Uncategorized. Date: February 26, 2009, 4:15 pm | No Comments »

Hello everyone, Justin Graham here again! We’ve been hard at work here in Redmond on Service Pack 2 (SP2) for Windows Vista and Windows Server 2008. I'm happy to share today the Release Candidate (RC) of SP2 is available to MSDN and TechNet subscribers via the TechNet and MSDN websites! Next week, the RC of SP2 will be made available to the general public via the same web properties next week. I encourage you to download and install the RC build and give us feedback. We want to make sure Windows Server 2008 continues to be the best server operating system for your needs!

The next question is usually "what's in it for me?" We've made some great improvements in SP2, a few are:

· Easier Virtualization: Hyper-V RTM is in the Service Pack. That’s right, you no longer have to download and install it separately

· More Green: increased power efficiency through improved processor power management

· Unified: We will be delivering one package for 32-bit and one package for 64-bit that cover both Windows Vista and Windows Server 2008. Less packages, less testing, easier deployment for IT Administrators

If you want the full list of improvements, please download and read the Notable Changes document

Happy downloading and testing everyone! As you know, changes to our product are based on feedback, so please share your thoughts with us.

Thanks,

Justin Graham

Windows Server Team

Posted by WindowsServer, filed under Uncategorized. Date: February 25, 2009, 2:47 pm | No Comments »

After Paul Nielsen post SQL in the Cloud yesterday I decided to put on my Nostradamus hat and give you my take on this.

What needs to happen before we can move to the cloud?
There are a couple of things, here is a partial list


Performance has to be good
If performance is bad then nobody will move to the cloud. Since the data is external you probably want to have a secure connection and thus you will slow things down

Security has to be implemented
Can you give user A only read access and user B read\write access. What if you don't want certain users to see the salary column?

Bulk uploading of data has to be implemented
The ability to upload a file and specify the target object to load the data into has to be implemented. We get files via ftp all the time, nobody wants to parse the files locally and insert row by row.

The ability to do merge replication with disconnected handheld devices
This is not so much an issue anymore since almost all devise these days are online but if you have some legacy junk this would be nice.

The ability to restore to a point in time
You uploaded some bad or old data and hosed everything. On a SQL box you would just do a point in time restore (if you had backups that were valid of course and the correct recovery model) and you would be done.

Alerts and Notifications
You want to know every time some product level falls below a certain threshold, someone added or modified a table etc etc.

Auditing, SOX, HIPAA, GAAP and all your other favorite acronyms
Unless this stuff is implemented no public company will move to the cloud.

Bandwidth cost has to be low
There are tons of FoxPro, Access Applications Excel sheets and in house developed applications that connect directly to SQL Server, get a ton of data and then do something with that. When this is all in your office you don't have bandwidth cost. If your data lives in the cloud this could add up.
I will give you another example, we all compress our content before it is pushed to the client from our websites right(rhetorical don't answer)? Guess what? Amazon doesn't do compression because they get paid for bandwidth, compressing would lower their revenue.

You need to have the ability to profile
There has to a way to profile and performance tune your cloud database, after all that is the most fun part of a database developer, you can’t take away instant gratification


What will go in the cloud first?
The first thing that will ascend into the clouds are your typical internet applications, this will also include RIA (or as I call them Chubby Clients) that are built on Adobe AIR, JavaFX and Silverlight. Ever heard of TweetDeck? It is a twitter client written in Adobe AIR, stuff like that is perfect because you don't care where the data is stored; you just want to call a RESTful API and get your data. Websites that don’t store (or don’t care) about sensitive information are going to store their stuff in the cloud, now we have real C2C (Cloud to Cloud) since websites live in the cloud to begin with.


What will not go in the cloud any time soon?
Any app that is directly connected to a database server and does some crazy manipulation/calculation of data, the bandwidth cost might just be too high
Departmental (Small business edition) database servers or SQL Server Express edition, this stuff is cheap enough that I can’t imagine there being an incentive to move to the cloud. Shops like this usually have one person to manage all the hardware to begin with so they would not save anything.
I am also having a hard time seeing those lovely Excel sheets that are connected to SSAS cubes connecting to the cloud instead.

 
 
We cannot really predict anything unless we have some pricing. I aslo think virtualization of databases will be mainstream sooner than the cloud, one huge box 20 SQL Servers on it...only one box to manage
 
If you want you can vote (you need to register), right now it is mostly no cloud 
 
 
So what is your opinion on this, The Cloud is it vaporware or inevitable?


Posted by Denis Gobo, filed under Uncategorized. Date: February 25, 2009, 10:47 am | No Comments »

You may have heard that earlier today Steve Ballmer referenced we are working on an addition to the Windows server Family named Foundation Server.

 

While we don’t have any details to share now, we are very excited about the opportunity this entry-level server will bring to our customers and partners. 

 

Look for more information coming in the next few months!   

 

 

Posted by WindowsServer, filed under Uncategorized. Date: February 24, 2009, 4:19 pm | No Comments »

Save US$200 when you register now! Explore with 9,000 of your peers current and soon to release Microsoft technologies including Virtualization and Windows Server 2008 R2.

Posted by TechNet Announcements for Week of 9/28/2009, filed under Uncategorized. Date: February 23, 2009, 7:17 pm | No Comments »

We all know that CURRENT_TIMESTAMP is ANSI and carries the Celko stamp of approval while GETDATE() is proprietary. So now run the following line of code

 

CREATE TABLE duh2(id DATETIME CONSTRAINT df_duh DEFAULT CURRENT_TIMESTAMP)

No problem right? Let's take a look at what is actually created, run the query below

 

 SELECT object_definition(id) FROM sysobjects WHERE name = 'df_duh'

Interesting, the object definition for the constraint shows getdate() not current_timestamp.

Let's verify that by using sp_help, run the query below and scroll all the way down, look at the constraint_keys column

SP_HELP 'duh2'
 
Same thing,it shows getdate()
 
What happens when you script out the table?
 
/****** Object:  Table [dbo].[duh2]    Script Date: 02/22/2009 20:58:41 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[duh2](
    [id] [DATETIME] NULL CONSTRAINT [df_duh]  DEFAULT (GETDATE())
) ON [PRIMARY]'
 
 
As you can see SQL Server changes CURRENT_TIMESTAMP to GETDATE().
 
Is this a bug/feature or something else? What if you use the same table on more than one RDBMS and want to quickly script the table from SQL Server so that you can create it on somewhere else?

 

 


Posted by Denis Gobo, filed under Uncategorized. Date: February 22, 2009, 8:52 pm | No Comments »

Cross your fingers.  Rub your lucky rabbit’s foot.  Pray to the server gods.  It won’t happen to you, right? 

 

But what if it does happen?  And the servers are down... 

 

Maybe you can help save your company from some of the heartache and costs of downtime.

 

Failover Clustering has been around a long time now (since Wolfpack, for those who remember), and, well... maybe it had a reputation for being a bit arcane to set up and configure.  But that’s really ancient history at this point.  With Windows Server 2008 Enterprise (or R2) and a couple of servers you're just seven clicks away from a cluster. 

 

Don’t worry – you will still have the control of your cluster you expect and require.  We’ve just simplified and automated setup and management – improving the interfaces you can focus on managing your applications, not your cluster.

 

Certification and support of your cluster are simpler now, too.  Do the hardware components of the cluster have the Certified for Windows Server logo?  (Most server hardware does.)  If so, just run the included validate tool – if it passes, you’re supported.  Or use its extensive reporting to help identify and correct potential problems.

 

Want to know before you buy that you’ll end up with a supported cluster that works?  You can easily identify pre-tested and certified server configurations on vendor websites through the Failover Clustering Configuration Program

 

Clustering isn’t just for large corporations, high-end servers, or specialists – not any more.  IT professionals in organizations of all sizes who want to avoid the pain of a service disruption can potentially benefit from failover clustering. 

 

So while you might try the other techniques in this article's title, I'd suggest exploring Windows Server Failover Clustering.

 

-Dan Reger

Sr. Product Manager

 

P.S.  Failover clustering is available in the Enterprise, Datacenter, and for Itanium-Based Systems editions of Windows Server 2008 (and, of course, in the R2 beta available now).  To learn more click here.  Looking for introductory technical information?  Try here.  For the cluster team’s blog and more details on clustering features in Windows Server 2008 R2 click here .

 

Posted by WindowsServer, filed under Uncategorized. Date: February 20, 2009, 3:23 pm | No Comments »

You read that right. All MIX09 attendees will receive a fully functional copy (the real deal) of Windows Web Server 2008 at no cost. That’s nearly a $500 value!

 

Windows Web Server 2008 is a robust and reliable foundation on which to develop, deliver, and manage rich user experiences and applications. Designed to be used as an Internet-facing Web server, Windows Web Server 2008 is a great choice for hosting the Microsoft Web Platform and you can be up and running in no time with the latest version of the Web Platform Installer.

 

Featuring Internet Information Services (IIS) 7.0, Windows Web Server 2008 delivers a modular and extensible Web server for developers and designers of innovative Web sites. IIS Extensions bring additional functionality to Windows Web Server 2008 and the Microsoft Web Platform by offering new and more powerful ways to develop, deploy, and manage your Web applications, including ASP.NET and PHP.

 

Eric Rezabek

Senior Product Manager

IIS/Web

 

Posted by WindowsServer, filed under Uncategorized. Date: February 18, 2009, 7:22 pm | No Comments »

This video shows how to use Business Intelligence Development Studio (BIDS) to create an data cube for SQL Server Analysis Server 2008. This demo shows how to: use BIDS to create a data model project, create Data Sources, Data Views, Dimenions, and Cubes and how to Deploy the project to SSAS 2208.

Posted by TechNet How-to Videos, filed under Uncategorized. Date: February 17, 2009, 7:37 pm | No Comments »

Employees' losing mobile devices is a concern for any IT Pro, but with Exchange 2007 and Windows Mobile 6, you remote wipe a lost device and know that the data has been removed. In this video, Gordon Ryan shows you how to do this using Outlook Web Access and the Exchange graphical and Powershell administration tools.

Posted by TechNet How-to Videos, filed under Uncategorized. Date: February 17, 2009, 7:29 pm | No Comments »

« Previous Entries


Search Engine Optimization and SEO Tools