Top "Sql-scripts" questions

SQL Scripts are lists of SQL sentences written in a single file, meant to be executed sequentially.

How to switch database context to newly created database?

I wrote a script to create a database: 1: USE master; 2: IF (db_id('myDB') is null) 3: CREATE DATABASE myDB; 4: USE …

sql sql-server database ssms sql-scripts
SQL Server 2012 : How to script all database stored procedures into separate .sql files?

I want to script all the stored procedures from SQL Server 2012 to Visual Studio 2012 as .sql files (in a different …

sql sql-server visual-studio-2012 sql-scripts generate-scripts
HANA - Passing string variable into WHERE IN() clause in SQL script

Lets suppose I have some SQL script in a scripted calculation view that takes a single value input parameter and …

hana sql-scripts hana-sql-script
Execute Stored Procedure for List of Parameters in SQL

I have an Stored Procedure that have an argument named Id: CREATE PROCEDURE [TargetSp]( @Id [bigint] ) AS BEGIN Update [ATable] …

sql sql-server sql-server-2008 tsql sql-scripts
Any easy way to generate a build script from an H2 database?

let's image that one creates an H2 database with table, indexes, etc... Is there an easy way to extract a …

database-replication h2 sql-scripts
Oracle: How to round and update all numbers in a table?

I have a table with several columns, with DATA_TYPE FLOAT, NUMBER. There are whole numbers and decimal digits with …

sql database oracle oracle-sqldeveloper sql-scripts
Script all views/functions/procedures in a Sql Server database in dependency order

Sql Server 2008 (and probably most other versions): Management Studio has a 'generate scripts' option that can in theory script a …

sql-server sql-server-2008 ssms sql-scripts
What is the equivalent of T-SQL ISNUMERIC function in HANA Sqlscript?

I have a requirement where I need to convert all SQL Server stored procedures into HANA stored procedures. I have …

sql sql-scripts hana
Execute a .SQL file in Powershell without having SQL Server installed?

I need to provide a powershell script that runs a bunch of steps to install a custom solution. One of …

sql-server database powershell sql-server-2012 sql-scripts
How to execute sql-script file using hibernate?

I gonna write several intergration tests which will test interatcion with db. For each test I need to have a …

unit-testing hibernate import sql-scripts