/* Data operations between different Server databases */-- Create a linked serverExec sp_addrole server 'itsv', '', 'sqloledb', 'remote server name or IP address'Exec sp_add1_srvlogin 'itsv', 'false', null, 'username', 'Password'-- Query
There are many types of ASP. NET database operation code. Today, let's take a look at four typical types of SQL Server code.
DataReader for ASP. NET database operation code
Function: DataReader reading class, which reads data only forward.
Read-only
Basically, SQL injection is used to store data on websites or applications of websites and applications in SQL databases. SQL injection is used to access the database information (or the entire company), destroy the database information, or
Class Database {
var $host = NULL;
var $username = NULL;
var $password = NULL;
var $databaseName = NULL;
var $link = NULL;
var $queries = NULL;
var $errors = NULL;
var $databaseExtras = NULL;
Template mode
The template design pattern creates an abstract object that implements a set of methods that the subclass typically uses as a template for its own design.
Design Scenarios
Typically used for database abstraction classes.
Code Design:
Adding the Java engine to Oracle databases is one of the most exciting features of Oracle8i. Therefore:
1) load the Java class and source code into the database;
2) Call Java code in PL/SQL;
3) Call PL/SQL code in Java;
11.1 Oracle Java
1.
You can call mysqldump, a MySQL tool.
Class cmd to call the CMD command,The Directory of the process to be started is the directory of MySQL's automatic backup and restoration database tool mysqldump and MySQL. Of course, this method can execute
[Essence series] Mysql essence, mysql
What Mysql requires to be remembered and mastered
1./* View operation */Actions 1./* view operation */
Show processlist -- display which threads are running show variables -- View VARIABLES2./* Database
Oracle Database Export and Import
You need to export data from Oracle Database A as A *. dmp file, and then import the *. dmp file to database B.
1. Export Database
Enter the following command in the cmd window:
Export all databases
Exp
Copy codeThe Code is as follows: -- PK
Select * from sys. key_constraints where object_id = OBJECT_ID ('tb ')
-- FK
Select * from sys. foreign_keys where parent_object_id = OBJECT_ID ('tb ')
-- Create a linked server
Exec sp_addrole server 'itsv', ''
SQL Server Remote Login Server Management and query
/* Data operations between databases on different servers */-- create a link to the server exec sp_add+server 'itsv', '', 'sqloledb ', 'remote server name or IP address 'exec
Http://www.uipower.com/bbs/thread-35773-1-1.html
/* Data operations between different Server databases */
-- Create a linked server
Exec sp_addmediaserver 'itsv','',' Sqloledb',' Remote Server name or IP address'
Exec sp_add1_srvlogin 'itsv',
1. Foreword
ADODB is the abbreviation for the Active data Objects data base, which is a functional component of PHP access to the database. Now SFS3 system (Campus free software Exchange Network Learning System) program host Prementrual light
(i) PrefaceThis article explains how to connect to Oracle, MySQL, SQL Server, and execute SQL, get query results, and more.(ii) Db-api Db-api clarifies the criteria for a range of required objects and database access mechanisms.Python Operations
13.4 MySQL User management• Create User:grant all on * * to ' user1 ' identified by ' passwd ';or specify the source ip:grant all on * * to ' user1 ' @ ' IP ' identified by ' passwd ';Mysql> Grant All on * * to ' user1 ' identified by ' 123456 ';
/* Data operations between different server databases */--Create a linked serverexec sp_addlinkedserver ' itsv ', ' ', ' SQLOLEDB ', ' Remote server name or IP address 'exec sp_addlinkedsrvlogin ' itsv ', ' false ', NULL, ' username ', ' password '--
Tag: style ar color using SP for data on logaccessing remote databases with SQL statements1, to establish a linked server:--Delete linked serverif exists (SELECT * from Master.dbo.sysservers where isremote=0 and Srvname= ' ITSV ')exec sp_dropserver '
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.