Unleash the power of your data—on-premises, in the cloud, or at the edge—and reveal insights to transform your business.
Triggers when a new column is added to a table. See the documentation
Triggers when a new row is added or an existing row is updated. See the documentation
Executes a SQL query and returns the results. See the documentation
Add or update a single record in your Pipedream Data Store.
Add or update multiple records to your Pipedream Data Store.
With the Microsoft SQL Server API on Pipedream, you can automate your database operations and create powerful integrations. This API allows you to execute queries, manage databases, and trigger actions based on data changes. Implementing workflows that react to database events, manipulate data, or synchronize SQL Server data with other services, becomes effortless with Pipedream's serverless platform.
import sql from "mssql"
export default defineComponent({
props: {
microsoft_sql_server: {
type: "app",
app: "microsoft_sql_server",
}
},
async run({steps, $}) {
const { host, username, password, port, database, encrypt,trustServerCertificate } = this.microsoft_sql_server.$auth
const conn_str = `Server=${host},${port};Database=${database};User Id=${username};Password=${password};Encrypt=${encrypt};TrustServerCertificate=${trustServerCertificate}`;
await sql.connect(conn_str);
return await sql.query`SELECT GETDATE()`
},
})
Data Stores are a key-value store that allow you to persist state and share data across workflows. You can perform CRUD operations, enabling dynamic data management within your serverless architecture. Use it to save results from API calls, user inputs, or interim data; then read, update, or enrich this data in subsequent steps or workflows. Data Stores simplify stateful logic and cross-workflow communication, making them ideal for tracking process statuses, aggregating metrics, or serving as a simple configuration store.
export default defineComponent({
props: {
myDataStore: {
type: "data_store",
},
},
async run({ steps, $ }) {
await this.myDataStore.set("key_here","Any serializable JSON as the value")
return await this.myDataStore.get("key_here")
},
})