Run .sql Script

This is a discussion on Run .sql Script within the ADO DAO RDO RDS forums in Framework and Interface Programming category; Does anyone know how I can run a .sql script from access? (copying the sql code just wont do what i need as access limits the number of fields where my sql script does the 300+ fields i have)...

Go Back   Application Development Forum > Framework and Interface Programming > ADO DAO RDO RDS

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-08-2008, 12:24 AM
Mark
Guest
 
Default Run .sql Script

Does anyone know how I can run a .sql script from access?
(copying the sql code just wont do what i need as access limits the number
of fields where my sql script does the 300+ fields i have)
Reply With Quote
  #2  
Old 09-08-2008, 02:10 AM
John W. Vinson
Guest
 
Default Re: Run .sql Script

On Sun, 7 Sep 2008 21:24:03 -0700, Mark <Mark@discussions.microsoft.com>
wrote:

>Does anyone know how I can run a .sql script from access?
>(copying the sql code just wont do what i need as access limits the number
>of fields where my sql script does the 300+ fields i have)


If it's a script in SQL/Server T-SQL, store the SQL text as a query and set
its Passthrough property to True. If you're operating against Access JET (now
known as ACE) tables, the tables and queries based on the tables are limited
to 255 fields.
--

John W. Vinson [MVP]
Reply With Quote
  #3  
Old 09-08-2008, 09:44 AM
Tom van Stiphout
Guest
 
Default Re: Run .sql Script

On Sun, 7 Sep 2008 21:24:03 -0700, Mark
<Mark@discussions.microsoft.com> wrote:

Do you want to run this script against a SQLServer? If so, use the
osql.exe program.

-Tom.
Microsoft Access MVP


>Does anyone know how I can run a .sql script from access?
>(copying the sql code just wont do what i need as access limits the number
>of fields where my sql script does the 300+ fields i have)

Reply With Quote
  #4  
Old 09-09-2008, 03:57 AM
Mark
Guest
 
Default Re: Run .sql Script

Thanks John. However It is more than 255 Fields so i have to use this sql
script.access just doesnt do the job.despite thyat the sql script is way
quicker.

Tom, yes I want to run this .sql script against an SQL server(Using Ms SQL
serverman Studio Express)
I found OSQL.exe file but cannot run it.It flashes up as a commandline then
disappears just as quick. How do I use it?
Thanks
Mark

"Tom van Stiphout" wrote:

> On Sun, 7 Sep 2008 21:24:03 -0700, Mark
> <Mark@discussions.microsoft.com> wrote:
>
> Do you want to run this script against a SQLServer? If so, use the
> osql.exe program.
>
> -Tom.
> Microsoft Access MVP
>
>
> >Does anyone know how I can run a .sql script from access?
> >(copying the sql code just wont do what i need as access limits the number
> >of fields where my sql script does the 300+ fields i have)

>

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 05:11 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.