PC Review


Reply
Thread Tools Rate Thread

Can't create persistent ## tables with ADP call to a stored procedure(!?)

 
 
Marchand
Guest
Posts: n/a
 
      16th Apr 2009
Environment is SQL Server 2008: Access 2007.
I have a stored procedure which creates a few global temporary tables.
When executed within SQL Server Management Studio it works just fine.
The tables are created and accessible within the tempdp. However, when
I execute the same stored procedure within an ADP file (yeah, I know
it should be an ACCDB but it will be used by both Access 2003 and
Access 2007 users), the call executes just fine, but the tables never
appear within tempdb. The table names are passed as parameters and are
unique (incorporating recursive calls to a GUID function). What's even
more interesting is that I can return the @@ROWCOUNT from within the
stored procedure to the ADP file and it reports that rows do exist.
But the tables don't.
 
Reply With Quote
 
 
 
 
Marchand
Guest
Posts: n/a
 
      16th Apr 2009
Never mind! It was a security issue, now fixed.

= M =


On Apr 15, 7:34*pm, Marchand <mvanw...@gmail.com> wrote:
> Environment is SQL Server 2008: Access 2007.
> I have a stored procedure which creates a few global temporary tables.
> When executed within SQL Server Management Studio it works just fine.
> The tables are created and accessible within the tempdp. However, when
> I execute the same stored procedure within an ADP file (yeah, I know
> it should be an ACCDB *but it will be used by both Access 2003 and
> Access 2007 users), the call executes just fine, but the tables never
> appear within tempdb. The table names are passed as parameters and are
> unique (incorporating recursive calls to a GUID function). What's even
> more interesting is that I can return the @@ROWCOUNT from within the
> stored procedure to the ADP file and it reports that rows do exist.
> But the tables don't.


 
Reply With Quote
 
Sylvain Lafontaine
Guest
Posts: n/a
 
      16th Apr 2009
"Marchand" <(E-Mail Removed)> wrote in message
news:264e5617-a3d3-4311-84f8-(E-Mail Removed)...
> Environment is SQL Server 2008: Access 2007.
> I have a stored procedure which creates a few global temporary tables.
> When executed within SQL Server Management Studio it works just fine.
> The tables are created and accessible within the tempdp. However, when
> I execute the same stored procedure within an ADP file (yeah, I know
> it should be an ACCDB but it will be used by both Access 2003 and
> Access 2007 users)


ADP and ACCDB files are two very different types of file for different types
of work and the version of Access has nothing to do with ADP. Even if you
were to use Access 2007 exclusively, you couldn't replace the ADP project
with an ACCDB database file to do the same thing.

> , the call executes just fine, but the
> tables never
> appear within tempdb. The table names are passed as parameters and are
> unique (incorporating recursive calls to a GUID function). What's even
> more interesting is that I can return the @@ROWCOUNT from within the
> stored procedure to the ADP file and it reports that rows do exist.
> But the tables don't.


--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Email: sylvain2009 sylvainlafontaine com (fill the blanks, no spam please)
Independent consultant and remote programming for Access and SQL-Server
(French)


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How 2 create table and seect records using stored procedure and call it in asp vedavyas.rao@gmail.com Microsoft Dot NET Framework Forms 1 9th Jan 2006 03:51 PM
Call Stored Procedure via ASP.Net (VB) Sam Microsoft ASP .NET 6 11th May 2005 05:06 PM
Best way to call a stored procedure mike Microsoft C# .NET 1 16th Jun 2004 06:10 PM
Can multiple DataSet tables be returned from a single Stored Procedure call to SQL Server? Bill Microsoft ADO .NET 1 9th Apr 2004 03:26 PM
Can multiple DataSet tables be returned on a single Stored Procedure call to SQL Server? Bill Microsoft Dot NET 1 8th Apr 2004 11:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:14 AM.