dbTalk Databases Forums  

Avoid overwritting other's data?

comp.databases.btrieve comp.databases.btrieve


Discuss Avoid overwritting other's data? in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
DaleM@MooreWorks.Net
 
Posts: n/a

Default Avoid overwritting other's data? - 11-06-2005 , 09:17 AM






Hi All,

How do I avoid overwritting other workstations' data in my own
temporary tables? If two workstations are doing the following at the
same time:

SELECT * INTO TempTable1 FROM Table1

Is there some way TempTable1 will only have my data? I've heard that
Microsoft's SQL Server provides support for this using #TempTable1 and
in similar cases ##TempTable1 where #TempTable1 is my own temporary
table. How can I do something similar with Pervasive?

Many thanks,
Dale


Reply With Quote
  #2  
Old   
Bill Bach
 
Posts: n/a

Default Re: Avoid overwritting other's data? - 11-06-2005 , 10:02 PM






You could create the SQL statement to build the temp table into a
unique name, leveraging the user's connection ID or some other unique
value.

PSQLv9 has this feature in it with the EXECUTE statement, if you need
this capability within stored procedures.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Chicago: Pervasive.SQL Service & Support - November, 2005 ***
*** Chicago: Pervasive DataExchange Class - November, 2005 ***

DaleM (AT) MooreWorks (DOT) Net wrote:

Quote:
Hi All,

How do I avoid overwritting other workstations' data in my own
temporary tables? If two workstations are doing the following at the
same time:

SELECT * INTO TempTable1 FROM Table1

Is there some way TempTable1 will only have my data? I've heard that
Microsoft's SQL Server provides support for this using #TempTable1 and
in similar cases ##TempTable1 where #TempTable1 is my own temporary
table. How can I do something similar with Pervasive?

Many thanks,
Dale


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.