# DStream::setEngineName {#DStream_setEngineName}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`DStream::setEngineName(name)`

## Arguments {#arguments}

**name** is a string representing the name of the streaming egine. You can provide either the fully qualified name \(FQN\), such as "catalog\_name.orca\_engine.engine\_name", or just the engine name, like "engine\_name". If only the name is given, the system will automatically complete it using the current catalog.

## Details {#details}

Sets a name for the current streaming engine. If an engine with the same name already exists, an exception will be thrown.

**Return value**: A streaming engine object.

