Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Site Related Forums
 Article Discussion
 copying dta from tables of one database to tables

Author  Topic 

adityamadisetty
Starting Member

1 Post

Posted - 2006-05-04 : 00:32:18
Hi'

I want to copy data in tables of one database to tables in another database,like keeping data backup
connections strings for these 2 connections were written in 2 database files
i included them in an asp page with the fallowing data

openConn()
openconn2()

bcpquery = "insert upsselector_backup.dbo.upsselector1 (device,va,deviceType) select (device,va,deviceType) from upssolutions_com_au.dbo.upsselector"

if inAction="backup" then
response.Write bcpquery
if (bcpQuery<>"") then conn2.execute(bcpQuery)
end if%>
</table></td></tr>
<%if inAction="backup" then
'conn.execute(updQuery)%>
<tr><td> <br>Successfully updated the Prices.</td></tr>i used this querry and resulted in an error

Microsoft OLE DB Provider for SQL Server error '80004005'

[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied
   

- Advertisement -