SQL server2000
2. The problem of design database
In mobile phones, for example, has a price, brand, model, etc., is to create a table, or creating multiple tables,
CodePudding user response:
Reading, don't waste space of BBS,CodePudding user response:
1. Your reading! This is the most basic!2. As long as your data structure that can express the business logic, how much do you want to build how many table table was built!
3. To the source.
CodePudding user response:
What is a dynamic link database, is a login system links database? Then you can write directly link the database in the login screen script,In SQL server, for example:
The SQLCA. DBMS='OLE DB'
SQLCA. LogPass=link database password
SQLCA. LogId=link database user name
='SQLOLEDB' SQLCA. DBParm="PROVIDER and DATASOURCE='" + is_servername +"', PROVIDERSTRING='database="+ is_dbname +"', DBTextLimit='9999' "
The SQLCA. The AutoCommit=False
Connect using the sqlca;
Among them: is_servername database server, can be IP address, or service name
Is_dbname database name,
Connect using the sqlca; Began to link is the use of the above parameters database, if the return value is zero, then the database connection,
These statements, but also can be used in other parts of the application interface, for example, you want to link to other database (of course have to define a transaction object, the sqlca is the system default),
Design table that depends on your application for the purpose, management of pass in and out of the commodities, if as that, of course, have to build more than one table, for example, to build a basic information table, put certain goods are common in this table, while the characteristics of things in another table, then the number of goods to build another table to store, with the goods identification to correlate between them...
CodePudding user response:
SQLCA. DBMS="MSS Microsoft SQL Server" - the database typeSQLCA. ServerName=". "//the server name
The SQLCA. Database="factory"//Database name
The SQLCA. LogId="sa"//login account
The SQLCA. LogPass=& lt; * * & gt;//account password
The SQLCA. The AutoCommit=False
CONNECT USING the SQLCA;
If the SQLCA. SQLCode=1 then
MessageBox (" prompt ", "connect to database failure! Please check whether the parameter is correct, ")
End the if
As for the table, can learn to see yourself demand budweiser 9000 or kingdee K3
CodePudding user response:
Should know what questions to answer, what problem does not need to answer,,,,,,,CodePudding user response:
The best way, when reading a book like this small problem don't sent aboveCodePudding user response:
By the topCodePudding user response:
Spot bamboo is a soft touch!CodePudding user response:
Top new elder brother!CodePudding user response:
According to their own needs to build oneCodePudding user response:
Pass by, this kind of problem will not be answerCodePudding user response:
A lot of onlineCodePudding user response:
Sqlca. DBMS="MSS Microsoft SQL Server" - the database typeThe sqlca. Database="dbName"//Database name
The sqlca. Logid="Logid"//login account
The sqlca. Logpass=& lt; * * & gt;//account password
Sqlca. ServerName=". "//the server name
The sqlca. UserID="dbUserId"//database user name
The sqlca. DBPass="DBPass"//database password
The SQLCA. The AutoCommit=true
CONNECT USING the SQLCA;
If the SQLCA. SQLCode=1 then
MessageBox (" prompt ", "connect to database failure! Please check whether the parameter is correct, ")
End the if
CodePudding user response: