| jose's profileSQL Server 2005 blogsBlogLists | Help |
|
December 28 How does SQL server Updates a recordHow Does SQL Server Updates a Record?
1. Client send a request to update record
6. SQL Server “exclusive lock” on the rows to be updated notes:
1. Page cache are reused many times
2. Currency and consistency are maintained by using locks
3. What is written in the transaction logs are log pages from memory
4. Checkpoint writes what is in the transaction log to the data file
December 20 SQL CLR IntegrationOne of the new feature of SQL server 2005 is the CLR integration. This feature allows the use .NET base classes such as the use of arrays to expand SQL Server functionality. This feature is somewhat similar to extended stored procedures in earlier SQL Server versions.
This feature is supported even by the express edition. To make use of this feature you must first enable it using the SQL server surface area configuration by clicking on start>programs>Microsoft SQL Server 2005>configuration tools>SQL server configuration manager> “Surface area configuration for features”; choose the database server you want to configure; choose CLR integration feature and checking the checkbox to enable this feature.
SQL-CLR Integration Exercise
In this exercise you shall be able to create a simple assembly and deploy it to SQL server database. Software requirements: 1. For advance users you need SQL server 2005 express Steps 1. Open notepad. And type the following codes
2. Create a CLR folder on drive c: and save the file you create in step 1 as “clrtest.vb” 3. Locate your Visual basic compiler(VBC) compiler which is deployed together with the .net framework. It is commonly located in “windows” or “winnt” folder 4. Add the path to your environment in the control panel>system>system properties>advance>environment variables. Click new and type “path” on the “variable name” textbox and type the path to the compiler in the “variable value” in my case its “C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727”
This will load the assembly into the database 10. Create a stored procedure that uses the assembly
11. Execute the stored proc
12. It should return
When and when not to use CLR integration
Security SQL-CLR integration is off by default
December 19 My sql server blogsThese are my official Sql server 2005 blogs.
These are created for the purpose of rapidly learning
Sql server 2005.
thank you for navigating to this site |
|
|