Cheers !!
I was being an arse and copying DSN connection string where I really
needed the database parameter
All fixed, thansk for that
Shaun
shaunsizen@msn.com (Shaun) wrote in message news:<4a2f9143.0504260420.2822a4dd@posting.google. com>...[color=blue]
> Hi all,
> I'm convertinmg an Access 2002 application to SQL Server with many
> differant locations, each needs their own instance of the database on
> the same physical server so I have created an INI file to provide the
> server name (i.e. SQL1) and DSN (i.e UK Marketing)
> It works fine for linking the tables BUT when I run the sprocs it will
> only work if the generic and shared user name I use has its default
> database set to the datbase I want to execute against. The connection
> string is
>
> strConnect = "Server=SQL1;DSN=UK Marketing;DRIVER=SQL
> Server;UID=User;PWD=xyz"
>
> This won't then allow me to change the DSN to say 'France Marketing'
> and keep the user the same. Do I need users for each market? Bit of a
> pain if I do as I only need it to access the sprocs on each of the
> database on the server. I did try the InitialCatalog options but that
> did not help either
>
> Ideas?
>
> Cheers
> shaun[/color]