follow us (wordgeist.com) in http://twitgoo.com/u/wordgeist
Read more »|
|
follow us (wordgeist.com) in twitgoo.com
Category: Programming Tags:
|
|
Using sqlcmd with Scripting Variables
Variables that are used in scripts are called scripting variables. Scripting variables enable one script to be used in multiple scenarios. For example, if you want to run one script against multiple servers, instead of modifying the script for each server, you can use a scripting variable for the server name.
Read more »Category: Programming Tags:
|
|
sqlcmd Utility in SQL Server 2005
Basically using the SQL Server Management Studio gives you a very satisfying feeling there are loads of interesting ways you can access sqlcmd commandline tool. Get to your SQL Server 2005 box and fire an command prompt. Type sqlcmd. This will use windows authentication and log onto the local machine box. You could also use sqlcmd /? to list all the commandline switches available.
Read more »Category: Programming Tags:
|
|
SQL Server 2005 connectivity error messages
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.) (Microsoft SQL Server, Error: 10061)
Read more »Category: Programming Tags:
|
|
SQL Server 2005 Default Port and Services
Some services like SQL Server Browser are shared between all of the instances that you’re running on a server. Other services, like SQL Server (the engine itself), show up with one line running per instance along with the instance name in parenthesis. In the example here, we have an instance called CASEINSENSITIVE, and an instance called MSSQLSERVER (which is actually the default instance.)
Read more »Category: Programming Tags:
|
|
Get Directory Path of an executing Batch file
Most people probably know that can use the variable %0 in a batch file to get the name of the executing batch file. However if you use that in conjunction with some batch parameter modifiers you can easily split that into a drive, directory or filename. Therefore to get the location of an executing batch file from within that batch file you can use the variable %~dp0.
Read more »Category: Programming Tags:
