Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 21st, 2004, 11:58 PM
Authorized User
 
Join Date: Jun 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to create table in Ms Access (TSQL)

Hi,

   How to create table in Ms Access 2k from SQL server through
T-SQL ?

   Thanks,



Stay Beautiful,
Abdul Salam
__________________
Stay Beautiful,
Abdul Salam
 
Old July 28th, 2004, 08:29 AM
Authorized User
 
Join Date: Jul 2004
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Set up a linked server to the Access DB. You can then execute SQL statements against it. See the following link.


http://www.databasejournal.com/featu...le.php/3085211
 
Old July 30th, 2004, 02:06 AM
Authorized User
 
Join Date: Jun 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Quote:
quote:
Set up a linked server to the Access DB. You can then execute SQL statements against it. See the following link.

http://www.conyc.com/galleryg/out.php
   Yes, It's nice ..but how i can update or write trigger on tables (linked server tabls)... Is there any solution ?

  Thanks,



Stay Beautiful,
Abdul Salam
 
Old July 30th, 2004, 10:02 AM
Authorized User
 
Join Date: Jul 2004
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you cannot write a trigger against a "linked" table. You would have to write the trigger in the souce database engine.

to do an update to a linked server it would be like this...
the "OPENQUERY(LinkedSever, 'SELECT Field1 FROM Table1') " basically replaces the table name you would use in a regualr SQL statement.


UPDATE OPENQUERY(LinkedSever, 'SELECT Field1 FROM Table1')
SET Field1 = Value1
WHERE field2= x


Is there a reason you don't convert the data directly into SQL? The you can write as many trigger etc as you wish. Cannot the application be changed to point to the newer database?
 
Old July 31st, 2004, 01:54 AM
Authorized User
 
Join Date: Jun 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi & Thanks Dhay1999 ...

   Using ROWSET functions are good but it mean creating such whole db..





Stay Beautiful,
Abdul Salam





Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW TO: create stored procedure in Ms access Kaustav Access 5 December 19th, 2014 01:14 PM
Create Trigger,Procedure, Function in MS-Access.? navneet_chauhan10 SQL Language 1 December 27th, 2007 09:33 AM
Create a reference to a .net dll from MS Access waltkrueger Pro VB.NET 2002/2003 1 November 20th, 2006 05:46 PM
How create system catalog for ms access db method Access VBA 1 March 20th, 2005 08:02 AM
Use DTS to create new MS Access DB? anya SQL Server DTS 2 February 25th, 2005 10:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.