About 215 results
Open links in new tab
  1. Insert data from #temp table to #temp table

    Jan 3, 2013 · I am using following query to insert data from #temp table to #table with Pivot. But after inserting data into #Final table, when i select #Final table, it does not exist.

  2. Insert Into #temp select very slow - social.msdn.microsoft.com

    Mar 30, 2015 · I found that insert into select statement was taking ages to run. Below is an example. Drop Table #temp if exists Create Table #temp (table definition) INSERT INTO …

  3. MS SQL 2008: Insert into temporary table from Remote Stored …

    Jul 5, 2011 · I can't seem to be able to insert data into a temporary table from a remote stored procedure.

  4. Need Subquery to do same as Temp table

    Feb 23, 2010 · Here is an example that shows you that the subquery will perform better than the Temp Table (I know this is a small amount of data). The SELECT * INTO is BULK Insert and it …

  5. How to insert one SP execution result to a temp table?

    Jan 19, 2010 · As the message says, you can't use a table variable. You can use a temporary table, but the table must exists with the same design as the result of the stored procedure. A …

  6. read Excel file to SQL temporary table, how to?

    Oct 1, 2012 · to transfert to SQL Server in my Temp table, i use OLE DB Destination.. i get no data. What i must check to ensure the Excel Source send data to my SQL Table? By the way, …

  7. Referencing an alias column - social.msdn.microsoft.com

    Nov 24, 2008 · There are two ways to do it Code Snippet --Derived table way select * from ( SELECT customer, 'a' as cus FROM dbo. tbl_customer) A where A. cus = 'a' Code Snippet - …

  8. Can I INSERT INTO a temp tbl twice in one stored procedure

    Oct 7, 2021 · In my stored procedure I need to select some data columns and insert them into a #temp tbl and then select the same data columns again using a different from and put them …

  9. How to make an insert table lock - social.msdn.microsoft.com

    Apr 3, 2007 · The server determines the locks used based on the statement. In your case, it is locking the table, because it has no idea how many inserts will be done or where they will be …

  10. insert and delete at same time? - social.msdn.microsoft.com

    Oct 7, 2021 · The T-SQL has now MERGE command with the newest version SQL Server 2008. Using Merge, you can INSERT,DELETE or UPDATE data in a table at the same time in a …