Preparing SQL Server Express to store XML columns for the BIS workspace (Bathymetry Solution)
ArcSDE XML columns must be enabled on the Bathymetry Information System (BIS) geodatabase for it to work properly in SQL Server Express.
- Start SQL Server Management Studio.
-
In Object Explorer, right-click the database server and click New Query.
The SQL Query Editor window appears.
USE BISDB GO
- Execute the following query to verify the full-text search engine is properly installed.
SELECT fulltextserviceproperty('IsFulltextInstalled'); GO
If the value 1 is returned, the full-text search engine has been installed properly. If another value is returned, you must install or reinstall Full-Text Search; you may need to reinstall SQL Server Express. You cannot successfully create a full-text catalog or an ArcSDE XML column if this query does not return the value 1.
- Check whether the database has been enabled for full-text searching.
SELECT DATABASEPROPERTY('bisdb', 'IsFulltextEnabled'); GO
If the value 1 is returned, the database is already full-text enabled, and you can continue to step 5.
If another value is returned, the database must be enabled for full-text searching using SQL Server Management Studio before you can continue. If this is the case, perform the following substeps.
- In Object Explorer, click the plus sign (+) next to the appropriate SQL Server instance; then click the plus sign (+) next to Databases.
- Right-click the database in which the XML column will be created and click Properties.
- Click Files under Select a Page on the left of the Database Properties dialog box.
- Check the Use full-text indexing check box in the page on the right if it is not already checked.
- Click OK on the Database Properties dialog box.
- Create a full text catalog by performing the following in the SQL Query Editor window.
- Select the database in which the XML column will be created using the drop-down list on the SQL Editor toolbar or by executing the USE command.
USE BISDB; GO
- Create a full-text catalog in the database using the CREATE FULLTEXT CATALOG statement.
CREATE FULLTEXT CATALOG SDE_DEFAULT_CAT AS DEFAULT; GO
- If you provide a name other than SDE_DEFAULT_CAT, you must modify the value of the XML_IDX_FULLTEXT_CAT parameter for the DEFAULTS keyword in the SDE dbtune table.
See Altering the contents of the DBTUNE table for information on changing the values of parameters in the SDE dbtune table.
- You can optionally set other properties of the full-text catalog such as providing a location on disk where the files will be stored and setting the catalog as the default full-text catalog for the database.
- Select the database in which the XML column will be created using the drop-down list on the SQL Editor toolbar or by executing the USE command.
- Grant permission on the full-text catalog.
Grant REFERENCES permission on this full-text catalog to the user who will own the XML column, or grant this permission to the role to which the user belongs.
GRANT REFERENCES ON FULLTEXT CATALOG :: SDE_DEFAULT_CAT TO <domain>\<user login>;
- Modify the value of the XML_IDX_FULLTEXT_CAT parameter to SDE_DEFAULT_CAT for the DEFAULTS keyword in the SDE dbtune table.
USE BISDB GO UPDATE dbo.dbtune SET config_string = 'SDE_DEFAULT_CAT' WHERE keyword = 'DEFAULTS' AND parameter_name = 'XML_IDX_FULLTEXT_CAT'; COMMIT; GO
- Modify the value of the XML_COLUMN_STORAGE parameter to DB_XML for the DEFAULTS keyword in the SDE dbtune table.
USE BISDB GO UPDATE dbo.dbtune SET config_string = 'DB_XML' WHERE keyword = 'DEFAULTS' AND parameter_name = 'XML_COLUMN_STORAGE'; COMMIT; GO
- Verify the XML parameters for the DEFAULTS keyword in the SDE dbtune table.
USE BISDB GO SELECT * FROM dbo.dbtune ORDER BY 1,2; GO SELECT * FROM dbo.dbtune WHERE keyword = 'DEFAULTS' AND parameter_name LIKE 'XML%' ORDER BY 1,2; GO SELECT * FROM dbo.dbtune WHERE keyword = 'DEFAULTS' AND parameter_name = 'XML_IDX_FULLTEXT_CAT' ORDER BY 1,2; GO
Your BIS workspace is now ready to store data and products and be accessed by other users.