
28-Jul-2006, 08:01 AM
|  | Guest | | | | | | | | | | SQL Server thread issue and long running query We have a SELECT INTO query that runs in Access utilizing SQL Server Tables
and ODBC. We changed the Access query so that it is Appending into a Table.
When we rip this query out of Access and run it in Query Analyzer, it returns
7,000+ rows in 30 seconds. However, when we run this query in Access, it is Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/9334-sql-server-thread-issue-long-running.htmlReference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9334
taking 10 minutes.
We have checked the Tamp folders and all is clean.
Can anyone help here???
Thanks in advance!
wnfisba *
Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh! | 
28-Jul-2006, 08:01 AM
|  | Guest | | | | | | | | | | RE: SQL Server thread issue and long running query The data you are appending in the table, do you filter this table? and the
7000 records are the resault of the filter.
In that case you can create a PassThrough query to return the records from
the SQL, and then create the insert query using the OutPut of the Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9334Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9334
PassThrough query.
--
Good Luck
BS"D
"wnfisba" wrote:
> We have a SELECT INTO query that runs in Access utilizing SQL Server Tables
> and ODBC. We changed the Access query so that it is Appending into a Table.
> When we rip this query out of Access and run it in Query Analyzer, it returns
> 7,000+ rows in 30 seconds. However, when we run this query in Access, it is
> taking 10 minutes.
>
> We have checked the Tamp folders and all is clean.
>
> Can anyone help here???
>
> Thanks in advance!
>
> wnfisba | 
28-Jul-2006, 08:01 AM
|  | Guest | | | | | | | | | | RE: SQL Server thread issue and long running query How would I go about creating a "PassThrough" query??? Is that done in
Access???
"Ofer Cohen" wrote:
> The data you are appending in the table, do you filter this table? and the
> 7000 records are the resault of the filter.
>
> In that case you can create a PassThrough query to return the records from
> the SQL, and then create the insert query using the OutPut of the
> PassThrough query.
>
>
> --
> Good Luck
> BS"D
>
>
> "wnfisba" wrote:
>
> > We have a SELECT INTO query that runs in Access utilizing SQL Server Tables
> > and ODBC. We changed the Access query so that it is Appending into a Table.
> > When we rip this query out of Access and run it in Query Analyzer, it returns Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9334
> > 7,000+ rows in 30 seconds. However, when we run this query in Access, it is Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9334
> > taking 10 minutes.
> >
> > We have checked the Tamp folders and all is clean.
> >
> > Can anyone help here???
> >
> > Thanks in advance!
> >
> > wnfisba | 
28-Jul-2006, 08:02 AM
|  | Guest | | | | | | | | | | RE: SQL Server thread issue and long running query Yes, It's done in Access. Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9334
You create it in the MDB, a query, but it execute on the server, and it
return only the desired records.
Open a new query, from the MenuBar select Query > SQL sepecific >
PassThrough query.
Type the SQL the same as you typed in the Query Analayser, remember that it
runs on the server so some things that you can use in Access you can't use on
the SQL server (such as: IIf , you use CASE instead).
Also the table must be located on the server, you can't use the SQL with
local tables in the MDB.
--
Good Luck
BS"D
"wnfisba" wrote:
> How would I go about creating a "PassThrough" query??? Is that done in
> Access???
>
> "Ofer Cohen" wrote:
>
> > The data you are appending in the table, do you filter this table? and the
> > 7000 records are the resault of the filter.
> >
> > In that case you can create a PassThrough query to return the records from
> > the SQL, and then create the insert query using the OutPut of the
> > PassThrough query.
> >
> >
> > --
> > Good Luck
> > BS"D
> >
> >
> > "wnfisba" wrote:
> >
> > > We have a SELECT INTO query that runs in Access utilizing SQL Server Tables
> > > and ODBC. We changed the Access query so that it is Appending into a Table.
> > > When we rip this query out of Access and run it in Query Analyzer, it returns
> > > 7,000+ rows in 30 seconds. However, when we run this query in Access, it is
> > > taking 10 minutes.
> > >
> > > We have checked the Tamp folders and all is clean. Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9334
> > >
> > > Can anyone help here???
> > >
> > > Thanks in advance!
> > >
> > > wnfisba | 
Support Us! Become a Promoter! | | Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh! | (View-All)
Members who have read this thread : 0
| | There are no names to display. | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Tools | Search | | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is On | | | | » Gurbani Jukebox | Listen to Gurbani while surfing SPN! | » Active Discussions | | | | | | | ਨਾਮਾ Today 06:37 AM 2 Replies, 53 Views | | | | | | | | | | | | | | | | | | | | | | | » Books You Should Read... | | | |