Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 21st, 2004, 11:58 PM
Authorized User
 
Join Date: Jun 2004
Location: Islamabad, Sindh, Pakistan.
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
Reply With Quote
  #2 (permalink)  
Old July 28th, 2004, 08:29 AM
Authorized User
 
Join Date: Jul 2004
Location: cleveland, oh, USA.
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
Reply With Quote
  #3 (permalink)  
Old July 30th, 2004, 02:06 AM
Authorized User
 
Join Date: Jun 2004
Location: Islamabad, Sindh, Pakistan.
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
Reply With Quote
  #4 (permalink)  
Old July 30th, 2004, 10:02 AM
Authorized User
 
Join Date: Jul 2004
Location: cleveland, oh, USA.
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?
Reply With Quote
  #5 (permalink)  
Old July 31st, 2004, 01:54 AM
Authorized User
 
Join Date: Jun 2004
Location: Islamabad, Sindh, Pakistan.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:09 AM.


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