Ayuda al instalar una aplicacion en linux >> sql server

15/10/2005 - 14:54 por Miguel | Informe spam
Hola,

No tengo idea de como funciona SQL Server, estoy intentando instalar una
aplicación en linux que requiere un servidor de bbdd y he optado por un sql
server 2000 standard. La aplicación es webcalendar y el archivo que explica
como se instala me indica lo siguiente :
Database Setup
There are three steps in setting up the database:

1.. Creating the database
2.. Creating the user
3.. Creating the required tables
Follow the steps outlined below for the database you are using. When
complete, a single user account will be created with the login "admin" and
password "admin", which you are encouraged to use to create your own
account.

Note: In the examples below, text in bold represents text that you must type
in.

Security: The default values for database, login, and password (intranet,
webcalendar, and webcal01) are for demonstration purposes only and should
never be used in a production environment.

MySQL
The following will create a database named "intranet".

mysqladmin create intranetNext, create the database user account that will
be used to access the database.

mysql --user=root mysql
mysql> GRANT ALL PRIVILEGES ON *.* TO webcalendar@localhost
IDENTIFIED BY 'webcal01' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
mysql> QUITIf you will be accessing MySQL from a different machine than the
one running the web server, repeat the command above and replace 'localhost'
with the hostname of the other machine.

Create the calendar tables using the supplied tables-mysql.sql file:

mysql intranet < tables-mysql.sqlIn the above example, "intranet" is the
name of your database.

Note: If you are using phpMyAdmin to manage your MySQL database, follow the
instructions in Appendix A.

Oracle
The following will create a tablespace named "webcalendar". From the command
line, startup sqlplus and issue the following command:

sqlplus
SQL> CREATE TABLESPACE webcalendar
DATAFILE 'webcalendar.dat' SIZE 10M
AUTOEXTEND ON NEXT 10M MAXSIZE 40M;Next, create the database user account
that will be used to access the database.

sqlplus
SQL> CREATE USER webcalendar IDENTIFIED BY webcal01
DEFAULT TABLESPACE webcalendar;
SQL> GRANT dba TO webcalendar;
SQL> quitCreate the calendar tables using the supplied tables-oracle.sql
file:

sqlplus webcalendar/webcal01
SQL> @tables-oracle;
SQL> quitPostgreSQL
The following will create a database named "webcalendar". From the command
line, startup psql and issue the following command:

create database webcalendar;
\c webcalendar
\i tables-postgres.sql
\qInterbase
The following will create a database named "WEBCAL.gdb". From the command
line, startup usql and issue the following command:

CREATE DATABASE 'WEBCAL.gdb';Create the calendar tables using the supplied
tables-ibase.sql file:

isql
connect /path/WEBCAL.gdb;
input path/table-ibase.sql;ODBC
Setup will depend on which database you are using. When it comes time to
create the tables, the tables-postgres.sql file should work for most
databases.

MSSQL
Create a database, intranet, and add a user, webcalendar, to access this
database. The user should be granted public, db_datareader, and
db_datawriter privileges. Open SQL Query Analyzer then open the file
tables-postgres.sql. Make sure you have identified intranet as the target
database and Execute the contents of the sql file.



alguien me puede ayudar a solucionar mi pobrema e indicarme que
instrucciones en transac sql tengo que realizar

gracias de antemano



Saludos

Miguel

MCSE

Preguntas similare

Leer las respuestas

#1 Maxi \(MVP SQL\)
15/10/2005 - 19:23 | Informe spam
Hola miguel, todo eso lo puedes hacer desde el Admin corporativo


-
MS-MVP SQL SERVER
"Miguel" escribió en el mensaje
news:
Hola,

No tengo idea de como funciona SQL Server, estoy intentando instalar una
aplicación en linux que requiere un servidor de bbdd y he optado por un
sql
server 2000 standard. La aplicación es webcalendar y el archivo que
explica
como se instala me indica lo siguiente :
Database Setup
There are three steps in setting up the database:

1.. Creating the database
2.. Creating the user
3.. Creating the required tables
Follow the steps outlined below for the database you are using. When
complete, a single user account will be created with the login "admin" and
password "admin", which you are encouraged to use to create your own
account.

Note: In the examples below, text in bold represents text that you must
type in.

Security: The default values for database, login, and password (intranet,
webcalendar, and webcal01) are for demonstration purposes only and should
never be used in a production environment.

MySQL
The following will create a database named "intranet".

mysqladmin create intranetNext, create the database user account that will
be used to access the database.

mysql --user=root mysql
mysql> GRANT ALL PRIVILEGES ON *.* TO
IDENTIFIED BY 'webcal01' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
mysql> QUITIf you will be accessing MySQL from a different machine than
the one running the web server, repeat the command above and replace
'localhost' with the hostname of the other machine.

Create the calendar tables using the supplied tables-mysql.sql file:

mysql intranet < tables-mysql.sqlIn the above example, "intranet" is the
name of your database.

Note: If you are using phpMyAdmin to manage your MySQL database, follow
the instructions in Appendix A.

Oracle
The following will create a tablespace named "webcalendar". From the
command line, startup sqlplus and issue the following command:

sqlplus
SQL> CREATE TABLESPACE webcalendar
DATAFILE 'webcalendar.dat' SIZE 10M
AUTOEXTEND ON NEXT 10M MAXSIZE 40M;Next, create the database user account
that will be used to access the database.

sqlplus
SQL> CREATE USER webcalendar IDENTIFIED BY webcal01
DEFAULT TABLESPACE webcalendar;
SQL> GRANT dba TO webcalendar;
SQL> quitCreate the calendar tables using the supplied tables-oracle.sql
file:

sqlplus webcalendar/webcal01
SQL> @tables-oracle;
SQL> quitPostgreSQL
The following will create a database named "webcalendar". From the command
line, startup psql and issue the following command:

create database webcalendar;
\c webcalendar
\i tables-postgres.sql
\qInterbase
The following will create a database named "WEBCAL.gdb". From the command
line, startup usql and issue the following command:

CREATE DATABASE 'WEBCAL.gdb';Create the calendar tables using the supplied
tables-ibase.sql file:

isql
connect /path/WEBCAL.gdb;
input path/table-ibase.sql;ODBC
Setup will depend on which database you are using. When it comes time to
create the tables, the tables-postgres.sql file should work for most
databases.

MSSQL
Create a database, intranet, and add a user, webcalendar, to access this
database. The user should be granted public, db_datareader, and
db_datawriter privileges. Open SQL Query Analyzer then open the file
tables-postgres.sql. Make sure you have identified intranet as the target
database and Execute the contents of the sql file.



alguien me puede ayudar a solucionar mi pobrema e indicarme que
instrucciones en transac sql tengo que realizar

gracias de antemano



Saludos

Miguel

MCSE

Respuesta Responder a este mensaje
#2 Gustavo Larriera [MVP]
15/10/2005 - 23:53 | Informe spam
Hola Miguel,

"Miguel" wrote in message
news:
Database Setup
There are three steps in setting up the database:

1.. Creating the database
2.. Creating the user
3.. Creating the required tables

MSSQL
Create a database, intranet, and add a user, webcalendar, to access this
database. The user should be granted public, db_datareader, and
db_datawriter privileges. Open SQL Query Analyzer then open the file
tables-postgres.sql. Make sure you have identified intranet as the target
database and Execute the contents of the sql file.




Usa el Query Analyzer de SQL Server 2000 y ejecuta:

CREATE DATABASE intranet
GO

EXEC sp_addlogin 'webcalendar', 'EstoEsLaPassword', 'intranet'

USE intranet
GO
EXEC sp_grantdbaccess 'webcalendar'
EXEC sp_addrolemember 'db_datareader', 'webcalendar'EXEC sp_addrolemember
'db_datawriter', 'webcalendar'

En este punto debes abrir el archivo tables-postgres.sql y ejecutarlo.

USE intranet
GO

Saludos
~gux
Respuesta Responder a este mensaje
#3 Miguel
16/10/2005 - 21:18 | Informe spam
muchas gracias Gustavo


Saludos

Miguel

MCSE
"Gustavo Larriera [MVP]" escribió en el mensaje
news:O%
Hola Miguel,

"Miguel" wrote in message
news:
Database Setup
There are three steps in setting up the database:

1.. Creating the database
2.. Creating the user
3.. Creating the required tables

MSSQL
Create a database, intranet, and add a user, webcalendar, to access this
database. The user should be granted public, db_datareader, and
db_datawriter privileges. Open SQL Query Analyzer then open the file
tables-postgres.sql. Make sure you have identified intranet as the target
database and Execute the contents of the sql file.




Usa el Query Analyzer de SQL Server 2000 y ejecuta:

CREATE DATABASE intranet
GO

EXEC sp_addlogin 'webcalendar', 'EstoEsLaPassword', 'intranet'

USE intranet
GO
EXEC sp_grantdbaccess 'webcalendar'
EXEC sp_addrolemember 'db_datareader', 'webcalendar'EXEC sp_addrolemember
'db_datawriter', 'webcalendar'

En este punto debes abrir el archivo tables-postgres.sql y ejecutarlo.

USE intranet
GO

Saludos
~gux



email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida