Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

if i need to do a make table query

Status
Not open for further replies.

csunsun

Technical User
Apr 29, 2003
41
US
if i need to do a make table query to a destination table in an outside database that is password protected, how do i tell the query what the password is so the table can be made?

thanks!!!
 
You can not do that !
Create a linked server to the target SQL database server. Search SQL Books Online for "sp_addlinkedserver".

One that is done, use the following DDL according to your need:

create table linkedservername.targetdatabasename.dbo.test(
id int,name char(20)) .....

________________________________________________________________________________
If you do not like change, get out of the IT business...
 
Also, it sounds like you are using Access? If so, you should post this question in the relevant Access forum.

--James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top