Q: How does SQL server access the table of the sybase database?
A: The specific method is as follows:
1: Install the Sybase Client
Version requirements:
Sybase client 11.9.2 for NT
1.1: After the installation is complete, start running->Program-> Sybase-> dsedit
Q: How should SQL Server access the tables of the Sybase database?
Answer: The specific method is as follows:
1: Install Sybase client
Requirements for version:
Sybase Client 11.9.2 for NT
1.1: After the installation completes, runs starts-> the program->sybase->dsedit
1.2: Select Menu ' Server Object ',-> ' Add
A segment (Segment) is a logical combination of disk space on a database device and can be viewed as a label that points to one or more database devices. Segments can be used to control the location of database objects, the database objects can be categorized into different segments.
The relationship between the device and the segment: Many-to-many relationships. Multiple segments can be created on one device, and one segment can also overwrite multiple devices.
1. Advantages of using segments
,dbusername--Create DATABASE user LoginName and dbusername can be the sameSp_helpuser username--Viewing user informationSp_dropuser username--Deleting a database user----------------------------------------------------Test Cases1>sp_addlogin abc,zxcvbnm,testdb,us_english2>Gopassword correctlySet. Account unlocked. New Login created. (returnStatus =0)1>sp_adduser abc,abc2>gonew user added. (returnStatus =0)1>sp_adduser abc,abc2>gonew user added. (retur
copied. This can also be done without a table.
Here, Sybase and sqlserver are the same. Because in a way, Sybase is the prototype of SQL.
Next is MySQL. The syntax is slightly different.
-- The database does not contain table B.
Create
% of total_pages total-Abnormal state and taking measures:Sp_helpsegment logsegment--or under SA permissionsDBCC CHECKTABLE (syslogs)-----DBCC CHECKTBALE command can only be used for log segments that have separate data devices, if data segments and logs are mixed with data devices only-----using the sp_helpsegment logsegment command, it is recommended that you use DBCC CHECKTBALE results to be more intuitive----Remove the segment (segment to exist) end name Database name Device name (if the seg
objective of this article: to guide the project side personnel to meet such change requirements, you can refer to the changes themselves. Requirement: Sybase database, normal table T_jingyu modified to partition table by day partition. 1.sp_help View T_jingyu table structure, index and other information?
Tags: sybase create user Sybase Create multiple users under the same databaseSybase a database can be built multiple users, the objects between multiple users do not interfere with each other, you can achieve the needs of multiple users for multiple environments.System default system administrator account and password:
Current requirement: there is a table A in the database, and table A has four columns: C1 C2 C3 C4; three fields of C1, C2, and C3 for all records in, sort by C1 C2 and export it to the data file.
Specific analysis: Because the SQL statement cannot be added after the BCP in Sybase, you cannot use the BCP out select C1, C2, C4 from a order by C1, C2Method.
Solutio
Label:Company leaders want me to lead a file to the Sybase IQ database in a table, the load table statement is as follows:Load table Kyfx_ci_loc (City_name ', ', county_id ci_name ', ', ci_section ', ', ci_id ', ', Ci_longtitude_gps ', ', Ci_latitu De_gps ', ', Ci_longtitude_baidu ', ', Ci_latitude_baidu 0x0a) using fi
During this period, we studied the Sybase MDA monitoring table. During installation, the system always prompts that the loopback service connection is incorrect! Later I found that the loopback service was not provided in the dsedit tool.
After creating the loopback interface, you must execute the statement in iSQL.
First, set the CIS parameter to 1, indicating
Sp_configure
'
Enable CIS
'
,
Tags: Sybase SQL anywhere table information SQLIn Sybase central tools, we can often see the following pages:650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/89/67/wKiom1gRyE_zM-JyAABH3iPUDEM213.png "title=" Sybasecentral001.png "style=" border:1px solid #000000; "alt=" Wkiom1grye_zm-jyaabh3ipudem213.png "/>There was a client who had to export such a
Tags: roc share ACL isnull where SQL _id Simple Object After many times I have verified. Finally, we found a way to query the database structure in Sybase. Before that, I was very puzzled about how this Sybase database is not as easy as Oracle and MySQL. DESC table name; After the online query, get a result. sp_help table
Tags: mobile com option upd file BFC content name file pathUsage of load table in SybaseWith Sybase IQ as the storage of data warehouse, it does have its unique characteristics and advantages, but in the data ETL, if the use of INSERT, update mode, the speed is too slow, about 2 seconds or so a piece of data. Fortunately, IQ provides a load statement to solve this problem. format of the LOAD statement:[Code
Sybase ASE comes with a command-line tool that exports an object structure: DdlgenFor more detailed usage, refer to: Extracting the definition syntax for an object from an ASE database using DdlgenIf the object structure contains Chinese, use the parameter:-jcp936A more practical use is as follows:1. Export the table structure (including indexes) of all tables in the database tpchdb:ddlgen-usa-psybase123456
Tags: row Data history nbsp Work ASE mod his BSP createTriggers can be automatically manipulated. The trigger works as long as the data is modified (whether it's data entry or action by the application). Triggers are designed for one or more data modification operations (update, insert, and delete) and are executed once for each SQL statement.The following creates a trigger for a history_record_bak tableCreate TRIGGER T1On History_record_bakFor INSERT, UPDATE, deleteAsPrint "Now modify the Histo
tables.step three: in SQL Server 2005 Create a database manually (or you can create a library with SQL, PD can convert our table design to SQL)You need to manually create your data in SQL SERVER 2005! such as: "Students", this process omitted ...Fourth step: In the data source ODBC Configure user data sources inFifth
Use dB;
-- List all tables in the current database
Show tables;
Show tables like's % ';
Create Table Name
(
Column name type modification constraints,
Sid int (3) unsigned zerofill primary key auto_increment
Sgender Enum ('male', 'female ', 'confidential') default 'male'
) Engine = MyISAM default charset = utf8;
-- Create a
Label:1 CREATE TABLE A like BThis way, when you copy table B to a, the complete field structure and index of table B is copied to table A.2. CREATE TABLE A as SELECT * from BThis method
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.