![]() Where log_date between to_date(&start_date,'yyyy/mm/dd') and to_date(&end_date,'yyyy/mm/dd') The following works in Razor, using the prompt-for feature with the variables when running as SQL statement: -query Where log_date between and employee_id = by (emp_id) My question is this: Can Razor support a script and avoid prompting for variables?ĮDIT: I realize I could use a common table expression for my variables, but it's not real pretty as I have about 20 queries per script, some of which having many table joins.RazorSQL is a database query tool, SQL editor, database browser, and administration tool with built-in connection capabilities for Access, Cassandra, DB2, Derby, DynamoDB, Firebird, FrontBase, Hive, HSQLDB, H2, Informix, Microsoft SQL Server, MongoDB, MySQL, OpenBase, Oracle, PostgreSQL, Redshift, Salesforce, SimpleDB, SQL Anywhere, SQL Azure, SQLite, Sybase, and Teradata.Īny other JDBC or ODBC compliant database is also supported. RazorSQL ships with a built in relational database engine that is up and running out of the box and requires no end user administration. You can then query the tables.It can browse database objects such as schemas, tables, columns, primary and foreign keys, views, indexes, procedures, and functions. Either double-click the JAR file or execute the jar file from the command-line.įill in the connection properties and copy the connection string to the clipboard.Ī typical JDBC URL is the following: jdbc:sql:User=myUser Password=myPassword Database=NorthWind Server=myServer Port=1433 Īfter establishing a connection, the wizard will close and the connection will be available in the connections panel. Database: The name of the database, as seen in the Azure portal on the SQL databases (or SQL warehouses) page.įor assistance in constructing the JDBC URL, use the connection string designer built into the SQL Server JDBC Driver.User: The name of the user authenticating to Azure.You can find this by logging into the Azure portal and navigating to "SQL databases" (or "SQL data warehouses") -> "Select your database" -> "Overview" -> "Server name." You can authenticate to Azure SQL Server or Azure Data Warehouse by setting the following connection properties: Database: The name of the SQL Server database.Ĭonnecting to Azure SQL Server and Azure Data Warehouse. ![]() ![]() Password: The password associated with the authenticating user. ![]()
0 Comments
Leave a Reply. |