Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 13th, 2005, 10:28 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 198
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to itHighway
Default Sql Server Temporary Tables

Hello!


This is the first time I am working on Sql Server stored procedures and Temporary Tables. My question is regarding Temporary Tables.

My database consist of 10000+ records, Visitor comes and search different articles in it. Now suppose a visitor comes and searches "Fishing flies and dries". All the results from database will be stored in Temporary Table.
Now at the same time second visitor comes and searches "Cities of Australia". The results from this search will also save in Temporary Table.

What I want to know is will the search by second Visitor will effect the search results of first Visitor?

Actually, what I have in my mind is the search results of second visitor will replace the search results of first visitor in temporary table. Is this Correct?


Thanks!
Zeeshan Ahmed


 
Old July 14th, 2005, 12:33 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

No it will not replace the first visitor's results. Although the temp table name is the same in the SP (Ex #temp1), behind the scenes, SQL Server gives the table name a unique value(Ex: #temp1_XyoudfE34242). It concatinates some string based on some criteia to make iu unique.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Temporary Tables Challenge! PCNHSL PHP How-To 1 November 8th, 2007 09:42 AM
creating temporary tables instead of queries clwk Access VBA 4 March 12th, 2007 02:50 PM
Crystal Report 8.0 - Working with Temporary Tables deebeedee VB How-To 0 July 27th, 2006 07:30 AM
Temporary tables eadred ADO.NET 4 August 8th, 2005 12:49 AM
Urgent Help : XML to Sql temporary tables Milan XML 2 November 6th, 2004 07:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.