sqlcmd
Running queries against multiple servers?
I am not sure what the best design pattern for this problem is so any suggestions would be greatly appreciated. I have two SQL Servers A (with DBs P,Q,R) and B (with DBs X,Y,Z).[详细]
2023-04-13 07:03 分类:问答SQLCMD Incorrect syntax near '.'
When executing a stored procedure using SQLCMD with the following parameters: . sqlcmd -S $sql_server -U $sql_usr -P $sql_pwd -d $sql_db -Q \"EXEC $storedProc $dateVariable, $regionType, ALM.10.2.33.[详细]
2023-04-12 09:51 分类:问答concatenation in windows batch file
Here is the code in my batch file set startdate=\"9/1/2011\" set enddate=\"10/31/2011\" sqlcmd -Q \"exec mysp \'%startdate%\', \'%enddate%\'\"[详细]
2023-04-12 02:45 分类:问答Powershell - Invoke-SqlCmd, retrieving PRINT statements asynchronously
I would like to know if it开发者_运维百科s possibly to retrieve PRINT statements from a stored procedure asynchronously?[详细]
2023-04-11 05:10 分类:问答How can I set the maximum number of characters per column using sqlcmd?
While using SQL Server Managemen开发者_StackOverflow社区t Studio, I generally do: Query->Query Options->Advanced->SET NOCOUNT[详细]
2023-04-07 13:49 分类:问答SqlCmd :connect with variables and backslash
When using SqlCmd to try and connect to an active server I have discovered that these both work: :connect myServer\\myInstanceName -U myLogin -P myPassword[详细]
2023-04-04 16:17 分类:问答Pass login name as a variable in a SQL Server script
I have the following script that I want the production guys to execute using sqlcmd开发者_如何学JAVA. I want to pass the name of the APP_POOL_USER as a variable to the script, since they want it that[详细]
2023-04-02 17:21 分类:问答how to query a database using wpf application and get output like SQL Management Studio?
I have one store procedure in my database, it makes many things and print results when i run it on sqlserver management studio (ssms), for example:[详细]
2023-03-28 22:51 分类:问答Database Project and SQLCMD doing a comparison
We currently have a Database Project, which we wrote a WIX Installer for to deploy it, using VSDBCMD means we are able to do a comparison against the current database, and do an update or fresh instal[详细]
2023-03-28 05:11 分类:问答SQLCMD passing in double quote to scripting variable
I am trying to pass in double quote to a scripting variable in SQLCMD. Is there a way to do this? sqlcmd -S %serverName% -E -d MSDB -i MyScript.sql -m 1 -v Parameter=\"\\\"\"MyValueInDoubleQuote\\\"[详细]
2023-03-27 08:24 分类:问答