Tip#3: Try to use CAST instead of CONVERT. CAST is ANSI-92 standard but CONVERT works in MS SQL server only. Also, some CONVERT styles may be deprecated in future MS SQL releases.
|
||||||
|
Tip#3: Try to use CAST instead of CONVERT. CAST is ANSI-92 standard but CONVERT works in MS SQL server only. Also, some CONVERT styles may be deprecated in future MS SQL releases. Sometimes we wish to get rid of all the data in a table. One way of doing this is with DROP TABLE, which we saw in the last section. But what if we wish to simply get rid of the data but not the table itself? For this, we can use the TRUNCATE TABLE command. [...] Microsoft SQL Express 2005 provides enterprise class database performance for free. However it does have some limitations when compared to the full version of SQL Server. But these limitations are not likely to adversely affect most PaperCut NG users. These limitations include 4GB limit on database sizes http://www.sql-server-performance.com/ <script type=”text/javascript”><!– src=”http://pagead2.googlesyndication.com/pagead/show_ads.js” mce_src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”> set nocount on create table #temp insert into #temp CREATE PROCEDURE get_running_number select - backup log DATABSENAME with no_log - shink thik true on top checkbox and set value = 20% set nocount on declare @FirstRec int, @LastRec int CREATE TABLE #TempTable1 INSERT INTO #TempTable1 (Comp_Code, Org_id) SELECT @FirstRec = (@Page – 1) * @RecsPerPage SELECT *,MoreRecords = ( SELECT COUNT(*) FROM #TempTable1 TI WHERE TI.ID [...] CREATE PROCEDURE sp_PagedItems –Create a temporary table – Insert the rows from tblItems into the temp. table |
||||||
|
Copyright © 2010 Private: Code & Script Snippet - All Rights Reserved |
||||||