Its very slow to exec an IS package by DTExecUI,because its Package Execution Progress waste too much cpu resource,how to solve this, Thanks
I have found its run faster if using start without debugging in SSISsqlFriday, March 30, 2012
Friday, March 23, 2012
It doesnt execute my assemblies.
I waited for 10 minutes and nothing
using System;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using Microsoft.SqlServer.Server;
public partial class StoredProcedures
{
[Microsoft.SqlServer.Server.SqlProcedure]
public static void getSalesOrdersHeaders()
{
// Put your code here
SqlPipe sp = SqlContext.Pipe;
using (SqlConnection conn = new SqlConnection(@."Data Source=ESTACION15\SQL2005; User Id=pruebas; Password=pruebas;database=AdventureWorks;"))
{
conn.Open();
SqlCommand cmd = new SqlCommand();
cmd.CommandType = CommandType.Text;
cmd.Connection = conn;
cmd.CommandText = "select * from sales.SalesOrderHeader";
SqlDataReader rdr = cmd.ExecuteReader();
sp.Send(rdr);
}
}
};
I tried to run it from visual studio .net and I get A TimeOut errorError 1 Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Pubs|||
How did you run it from Visual Studio?
From server explorer, test scripts or database project script
Thanks,
-Vineet.
SqlConnection conn = new SqlConnection("context connection = true");
will get a reference to the existing one.
more info @. http://codebetter.com/blogs/sahil.malik/archive/2005/07/26/129824.aspx
It doesnt execute my assemblies.
I waited for 10 minutes and nothing
using System;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using Microsoft.SqlServer.Server;
public partial class StoredProcedures
{
[Microsoft.SqlServer.Server.SqlProcedure]
public static void getSalesOrdersHeaders()
{
// Put your code here
SqlPipe sp = SqlContext.Pipe;
using (SqlConnection conn = new SqlConnection(@."Data Source=ESTACION15\SQL2005; User Id=pruebas; Password=pruebas;database=AdventureWorks;"))
{
conn.Open();
SqlCommand cmd = new SqlCommand();
cmd.CommandType = CommandType.Text;
cmd.Connection = conn;
cmd.CommandText = "select * from sales.SalesOrderHeader";
SqlDataReader rdr = cmd.ExecuteReader();
sp.Send(rdr);
}
}
};
I tried to run it from visual studio .net and I get A TimeOut errorError 1 Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Pubs|||
How did you run it from Visual Studio?
From server explorer, test scripts or database project script
Thanks,
-Vineet.
SqlConnection conn = new SqlConnection("context connection = true");
will get a reference to the existing one.
more info @. http://codebetter.com/blogs/sahil.malik/archive/2005/07/26/129824.aspx
Monday, February 20, 2012
Isqlw.exe
This is the code
call isqlw -S scrbbususcnc01 -d master -U jdionne -P ttttttt -Q "Exec xp_sendmail 'eddens, david; dionne, jim', '(scrbbususcnc01) Success - JOC Loaded LineMkt Support Tables', @.subject = '(scrbbususcnc01) Success - JOC Loaded LineMkt Support Tables'" -o \\scrbbususcnc01\Maersk_DW\RKMS\logs\TestIncrement al.log -s "|"
Every time i run this I get a window listing all of the switches for isql and the -Q is not listed. Can someone please send me some insight on this.
JimSounds like you want OSQL, instead of ISQL. ISQLW is Query Analyzer. Bit too graphical a tool, I think to be commandline friendly. You may want to edit out your password, too.|||Originally posted by MCrowley
Sounds like you want OSQL, instead of ISQL. ISQLW is Query Analyzer. Bit too graphical a tool, I think to be commandline friendly. You may want to edit out your password, too.
using isql did the job
Thanx