Oops, just caught myself. Be sure and use the SQL server 2005 native client. Change the connection string provider property to say "SQLNCLI" not "SQLNCLI10"
That is unless you like to live dangerously and you're breaking all sorts of rules like we are and someone shoe-horned Vantage onto SQL Server 2008.
Jared
That is unless you like to live dangerously and you're breaking all sorts of rules like we are and someone shoe-horned Vantage onto SQL Server 2008.
Jared
--- In vantage@yahoogroups.com, "k99ja04" <jallmond@...> wrote:
>
> I'm a few days behind reading the daily digest so excuse if this has been answered. An interesting theory on "wide" tables Vic. I do find it odd that Excel chokes, but Access does not, as they should be using the same ODBC driver. This is a just for kicks suggestion, but what about trying the SQL server native client instead of the OLE DB provider? The client is not usually installed by default on most machines, but it's on your SQL server CD or you can find it at download.microsoft.com. To specify native client your Excel VBA connection string goes something like
>
> Dim conn As ADODB.Connection
> Set conn = New ADODB.Connection
> With conn
> .Provider = "SQLNCLI10"
> .ConnectionString = "Server=MyServerName;Database=MfgSys803;Trusted_Connection=Yes;"
> .Open
> End With
>
> You can get around reserved key words by enclosing fields in [] backets. Also, it appears there is a trailing underscore on sysdate_ field (perhaps the problem?). I'm on 8.03.408B SQL. So my SQL select statement would go something like
>
> SELECT [company]
> ,[sysdate_]
> ,[systime]
> ,[trannum]
> ,[partnum]
> ,[etc. etc.]
> FROM [Mfgsys803].[dbo].[parttran]
>
> Jared
> _______________________
> Jared Allmond
> IT Systems Engineer
> Wright Coating Technologies
> jallmond@...
> voice: 269.344.8195
> direct: 269.341.4353
> fax: 269.344.3007
>
> --- In vantage@yahoogroups.com, "Linda Lowney" <llowney@> wrote:
> >
> > Hi Vic,
> >
> >
> >
> > I think SysDate and SysTime might be reserved words in SQL. I think
> > Type is another one that I have problems with that may also be a
> > reserved word.
> >
> >
> >
> > Regards,
> >
> > Linda
>