November 13, 2009
I’m Enjoying the weekend, with Microsoft SQL Server R2 November CTP and its new features from Database engine features to Analysis Services features, Reporting Service features, etc…
I’ll post a series about those features en shaaa ALLAH in the next days, but let’s begin with Database engine features
#1 connectivity to SQL Azure: what’s SQL Azure? is a cloud-based relational database service built on SQL Server® technologies. To learn more about SQL Azure press here
First you need to have Microsoft SQL Server R2 November CTP, get all about it from here and SQL Azure account (I got it from Microsoft Connect)

Open SSMS, and using your Azure account (Server name, username and password) try to login
Read the rest of this entry »
4 Comments |
SQL Server | Tagged: Azure, SDS, SQL Server 2008 R2 |
Permalink
Posted by Ramy Mahrous
November 4, 2009
hmmm, nice we have SSIS it makes life easier but it usually comes with non-understood problems like
“SQL Server Destination” (2185) failed with error code 0xC0202071 it means when you insert data into table in remote SQL Server don’t use SQL Server Destination component however use OLE DB Destination component, thank you SQL Server Central
Anyway I used OLE DB Destination component and everything went well but I found the trigger which updates something doesn’t fire simply because I do bulk insert and I should tell the BIDS please fire it.
So, right click on OLE DB Destination component then Show Advanced Editor… Component properties FastLoadOptions write FIRE_TRIGGERS
Thank you Piotr Rodak
1 Comment |
Uncategorized | Tagged: BI, SSIS, Tips and Tricks |
Permalink
Posted by Ramy Mahrous
November 3, 2009
Well… we need to assign a server login to has access on a database, let’s say the SQL Server Login we had created programmatically should has access on database “Database1″ and for some reasons we should do that programmatically
Well. Create any C# project type (Windows, Class Library or even Console one), add reference to Microsoft.SqlServer.Smo, and Microsoft.SqlServer.ConnectionInfo
/// <summary>
/// Creates database user
/// </summary>
private void CreateDatabaseUser(Database database, String username)
{
User sqlServerUser = new User(datawarehouseDatabase, username); //initializes new User object and we say to which database it belongs and its name
sqlServerUser .UserType = UserType.SqlLogin; //SqlLogin not anything else
sqlServerUser .Login = “login_name”; //associated the user to login name, login name should be valid login name
sqlServerUser .Create();//here’s we create the user on the database and till now the user don’t have any permission on database objects
sqlServerUser .AddToRole(“db_owner”); //or any role like db_databasereader, db_databasewriter,…
}
P.S: There’s catastrophic mistake in Microsoft documentation of User.Login as they documented it as ReadOnly field although it’s not.
How we can call the above method?
Server sqlInstance = new Server(
new Microsoft.SqlServer.Management.Common.ServerConnection(
new System.Data.SqlClient.SqlConnection(“.”))); //connects to the local server
Database database = sqlInstance.Databases["adventureworks"]; //initialize new object from database adventureworks
CreateDatabaseUser(database, “RamyMahrous”); //creates user RamyMahrous on database adventureworks
1 Comment |
SQL Server | Tagged: C#, SMO |
Permalink
Posted by Ramy Mahrous
October 13, 2009
I really liked this post which talks about how could we make use of Cloud Computing in building Business Intelligence solution to draw the Big Image for the organizations
With Cloud Computing fast becoming the next big thing in IT, the jury is still out on how it can best be matched up with Business Intelligence (BI) to deliver real and sustainable benefits to business.
The focus of BI is the gathering, modelling, transforming and analysis of data (often from disparate systems), in order to provide a “big picture” to a business. Traditionally, BI has lagged behind the business it is meant to support. Reporting and data analysis can take a long time to process, and may run outside of business hours in order to reduce impact on the day-to-day operations. Businesses must wait to understand what is going on, and rely on old information to make decisions.
Enter Cloud Computing. The main benefits include lower cost, multiple redundant sites, and scalable provisioning of resources, which in turn allow for business continuity, disaster recovery and on-demand performance improvements.
More on http://xqrx.com/writing/a_cloud.php
Leave a Comment » |
BI | Tagged: BI, Cloud Computing |
Permalink
Posted by Ramy Mahrous
September 12, 2009
I’ll take in somehow big series about Microsoft Gemini and its features, I found it great very fast while loading big dataset and also I submit bug once it occurs.
I’ll talk in this post about Load & Prepare Data (From Database) in Microsoft Gemini…
First, you should have Microsoft Excel 2010 Technical Preview (until now 12-9-2009) which in Microsoft Office 2010 Technical Preview, don’t you know what’s Gemini check this http://ramymahrous.wordpress.com/2009/05/06/what-you-need-to-know-about-gemini/
First, let’s install Gemini as it’s not by default installed on Excel 2010
If you download it from Microsoft Connect, it comes with two client versions, x64 and x86 choose which fits your processor architecture.
Read the rest of this entry »
Leave a Comment » |
Integration with BI tools | Tagged: Excel, Gemini, Microsoft |
Permalink
Posted by Ramy Mahrous