Skip to main content

Posts

Showing posts from July, 2009

Puzzle

Print from 1 to 100 sequentially with out using cursor, while or any other iterative loop. Ans: We can achieve this by using Common Table Expression (CTE). CTE, are a new construct introduced in Microsoft SQL Server 2005 that offer a more readable form of the derived table that can be declared once and referenced multiple times in a query. Moreover, CTEs can be recursively defined, allowing a recursive entity to be enumerated without the need for recursive stored procedures. We can achieve the above using recursive CTE: Please execute the below statements: WITH Series (Number) AS ( SELECT 1 UNION ALL SELECT Number +1 FROM Series WHERE Number 100 ) Select * from Series And see the result

Learn How to Extend Visual Studio

Millions of developers in both small and large enterprises use Visual Studio to more easily use the latest platform technology to revolutionize the way they build, maintain, and deploy today’s complex business applications. Visual Studio supports a rich, diverse ecosystem of developers who ship thousands of Visual Studio integrated products to make it easy for Visual Studio users to use their favorite tool their way. And if someone else hasn’t created it, you can -- the Visual Studio SDK is freely available to the developer community and contains everything you need to extend Visual Studio. With Visual Studio, you’ll find new opportunities to build extensions for specific development needs. These include the Visual Studio Shell, a foundational IDE for custom tools and programming languages, Domain-Specific Language (DSL) tools, a set of tools to help you create graphical models that generate code, and support for Visual Basic within the Visual Studio SDK. Released on a quarterly basis,...