在asp.net中将数据从一个数据库插入到另一个数据库 [英] insert data from one database to another database in asp.net

查看:89
本文介绍了在asp.net中将数据从一个数据库插入到另一个数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我是asp.net的新手,如果可以帮助我,将非常感谢.
我的计算机中有1个数据库,服务器中有另一个数据库,因为服务器中有sqlserver2000,所以我使用ODBC连接到该数据库.我的问题是如何使用asp.net将数据从ODBC插入到SQL数据库中代码隐藏.
另一个问题是我在查询中使用控制参数,因此如何在sql查询中调用asp参数

Hi everyone
I''m new in asp.net and I will be very appreciate if you can help me.
I have 1 database in my computer and another data base in server,becouse I have sqlserver2000 in server I use ODBC connection to that database.my question is how can I insert data from that ODBC to my SQL data base with asp.net in my codebehind.
another question is i''m using control parameter in my queries so how can I call asp parameter in sql query

推荐答案

有关参数的用法,您可以阅读我的文章 SqlParameters的劣势变成优势 [
for usage of parameters you can read my article Disadvantages of SqlParameters Turned into Advantages[^]

can''t you make a backup of the database and restore on the other machine? Goes a lot faster!


这篇关于在asp.net中将数据从一个数据库插入到另一个数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆