Group:  Microsoft Access ยป microsoft.public.access.adp.sqlserver
Thread: adding a new field to sql backend with VB

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

adding a new field to sql backend with VB
LadyCES 29.11.2005 21:01:08
I have a client with an access 2002 frontend linked to a sql backend. I need
to add a new field to the sql backend from access. I'm new to sql backends
and work offsite so I don't have access to their sql server. I am tring to
set up a wrkodbc.connection but am not sure of the commands to then add a new
boolean field. Thanks,

Christine
Re: adding a new field to sql backend with VB
"Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)> 30.11.2005 04:30:11
Hi, this newsgroup is about ADP project and not about MDB files with linked
tables to a SQL-Server; so perhaps this is not the best place to ask a
question about WrkODBC.Connection.

However, the easiest way to alter a table would be to create from Access a
new ADP project linked to the SQL-Server and use the design tools of ADP to
make your alterations.

You can do it from DAO or ADO by running something like the following SQL
command:

ALTER TABLE [dbo].[Table1] ADD
[aa] [int] NULL CONSTRAINT [DF_Table1_aa] DEFAULT (0),
[bb] [int] NOT NULL CONSTRAINT [DF_Table5_bb] DEFAULT (0), ...

However, I don't remember how to do this with DAO.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: http://cerbermail.com/?QugbLEWINF


"LadyCES" <LadyCES[ at ]discussions.microsoft.com> wrote in message
news:8B9DF326-3BE7-460D-8AC7-451434D96A8B[ at ]microsoft.com...
[Quoted Text]
>I have a client with an access 2002 frontend linked to a sql backend. I
>need
> to add a new field to the sql backend from access. I'm new to sql
> backends
> and work offsite so I don't have access to their sql server. I am tring
> to
> set up a wrkodbc.connection but am not sure of the commands to then add a
> new
> boolean field. Thanks,
>
> Christine


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net