Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.48 KB

setcatalog-method-sqlserverconnection.md

File metadata and controls

43 lines (31 loc) · 1.48 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic apilocation apiname apitype
setCatalog Method (SQLServerConnection)
setCatalog Method (SQLServerConnection)
David-Engel
davidengel
01/19/2017
sql
connectivity
reference
sqljdbc.jar
SQLServerConnection.setCatalog
Assembly

setCatalog Method (SQLServerConnection)

[!INCLUDEDriver_JDBC_Download]

Sets the given catalog name to select a subspace of this SQLServerConnection object's database in which to work.

Syntax

  
public void setCatalog(java.lang.String catalog)  

Parameters

catalog

A String that contains the catalog name.

Exceptions

SQLServerException

Remarks

This setCatalog method is specified by the setCatalog method in the java.sql.Connection interface.

The catalog argument is escaped by the [!INCLUDEjdbcNoVersion] automatically. Using this method sets the catalog property for the Connection object. It is not set implicitly in any other way.

See Also

SQLServerConnection Members
SQLServerConnection Class