background preloader

Generacion Archivos Planos

Facebook Twitter

How to configure SQL Server 2005 to allow remote connections. When you try to connect to an instance of Microsoft SQL Server 2005 from a remote computer, you might receive an error message.

How to configure SQL Server 2005 to allow remote connections

This problem might occur when you use any program to connect to SQL Server. For example, you receive the following error message when you use the SQLCMD utility to connect to SQL Server: Sqlcmd: Error: Microsoft SQL Native Client: 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. This problem might occur when SQL Server 2005 is not configured to accept remote connections. To configure SQL Server 2005 to allow remote connections, you must complete these steps: Enable remote connections on the instance of SQL Server that you want to connect to from a remote computer.

Extraño error solucionado sp_OACreate. El error que sale es el siguiente.

Extraño error solucionado sp_OACreate

Mens 15281, Nivel 16, Estado 1, Procedimiento sp_OACreate, Línea 1 SQL Server bloqueó el acceso a procedimiento 'sys.sp_OACreate' del componente 'Ole Automation Procedures' porque este componente está desactivado como parte de la configuración de seguridad de este servidor. Un administrador del sistema puede habilitar el uso de 'Ole Automation Procedures' mediante sp_configure. Para obtener más información acerca de cómo habilitar 'Ole Automation Procedures', vea el tema sobre la configuración de área expuesta en los Libros en pantalla de SQL Server. al ejecutar sp_configure 'show advanced options', 1 GO RECONFIGURE GO sp_configure 'Ole Automation Procedures', 1 GO RECONFIGURE GO Funciona bien pero el problema que al hacer un insert se demora 2 minutos, mientra si hago otro insert relacionado con otro registro 1 seg .

Alguien sabe pq sucede esto? Untitled. Bcp (utilidad) Database_name Es el nombre de la base de datos en la que reside la tabla o vista especificada.

bcp (utilidad)

Si no se especifica, es la base de datos predeterminada para el usuario. También puede especificar explícitamente el nombre de la base de datos con -d. owner Es el nombre del propietario de la tabla o vista. Table_name Es el nombre de la tabla de destino cuando se importan datos en SQL Server (in), y la tabla de origen cuando se exportan datos de SQL Server (out). view_name "query" Es una consulta Transact-SQL que devuelve un conjunto de resultados. La consulta puede hacer referencia a un procedimiento almacenado siempre que todas las tablas a las que se haga referencia dentro del procedimiento almacenado existan antes de ejecutar la instrucción bcp.

In | out| queryout | format. SQLCMD Error. Use the sqlcmd Utility. A.

Use the sqlcmd Utility

Running a script by using sqlcmd Start Notepad, and type the following Transact-SQL statements: USE AdventureWorks2012; SELECT TOP (3) BusinessEntityID, FirstName, LastName FROM Person.Person; Create a folder named MyFolder and then save the script as the file MyScript.sql in the folder C:\MyFolder. Sqlcmd -i C:\MyFolder\MyScript.sql -o C:\MyFolder\MyOutput.txt When you view the contents of MyOutput.txt in Notepad, you will see the following: Changed database context to 'AdventureWorks2012'.

BusinessEntityID FirstName LastName 1 Syed Abbas 2 Catherine Abel 3 Kim Abercrombie (3 rows affected) B. In the following example, sqlcmd is used to connect to a server that has a blocking problem by using the dedicated administrator connection (DAC). C:\>sqlcmd -S ServerName -A 1> SELECT blocked FROM sys.dm_exec_requests WHERE blocked <> 0; Here is the result set. spid blocked (1 rows affected) Use sqlcmd to end the blocking process. C. IF OBJECT_ID ( ' dbo.ContactEmailAddress, 'P' ) IS NOT NULL SELECT EmailAddress.

Habilitar xp_cmdshell en sql server 2008. Xp_cmdshell:Mecanismo que crea un shell de comandos de Windows y lo pasa a una cadena para ejecutarlo desde sql.

Habilitar xp_cmdshell en sql server 2008

Los resultados se devuelven como filas de texto Cuando aparece el mensaje SQL Server bloqueó el acceso a procedimiento 'sys.xp_cmdshell' del componente 'xp_cmdshell' esto se debe a que el mismo está desactivado.