UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Pass Through Quires    
 
   
mgw1138
post Dec 16 2005, 12:58 PM
Post #1

UtterAccess Member
Posts: 36



Can I use a pass through to execute a stored procedure?
How can I retrieve a resultant set from that stored procedure and put it in a make table?

Thanks
Michael
Go to the top of the page
 
+
mgw1138
post Dec 16 2005, 12:59 PM
Post #2

UtterAccess Member
Posts: 36



I'm looking at a remote SQL Server database and the processing is extensive. I just want the resultant for
further "What if" analysis.

Michael
Go to the top of the page
 
+
truittb
post Dec 16 2005, 01:07 PM
Post #3

Retired Moderator
Posts: 13,544
From: Texas (Is there anywhere else?)



To execute a sp:
Create a pass thru with something like this

Exec p_yourStoredProc

To use a pass thru to creat make table:
Use the pass thru as the source for the the make table
Go to the top of the page
 
+
mgw1138
post Dec 16 2005, 03:12 PM
Post #4

UtterAccess Member
Posts: 36



Exec TQS_RepClaims 'Met', '11/1/2005', '11/30/2005'

I have the above in query Q1 - it has return row = yes.

When I use make table Q2 (Q1 as source) and try to execute, I get the window 'Select Data Source ODBC' Screen.

If I manually select DSN CL_DevClaims I get the make table I want.

Let the query know where to look for TQS_Repclaims?

I have tried [CL_Devclaims].[TQS_RepClaims] and [CL_Devclaims].dbo.[TQS_RepClaims]

with out success.

Thanks,
Go to the top of the page
 
+
truittb
post Dec 16 2005, 04:35 PM
Post #5

Retired Moderator
Posts: 13,544
From: Texas (Is there anywhere else?)



Are you wanting to make the table on the local mdb or on the SQL Server?

Is the connection string stored with the query?
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 22nd May 2013 - 02:21 AM