Tuesday, March 27, 2012
Calling SSIS from VB Script
We use a VB Script which create a DTS package, then load it from the database using loadFromSQlServer Method.
DTS moves to SSIS,, hence I need to change code to call this SSIS, but i did not find the objet corresponding to "dts.package2" in SQL Server 2K5.
Can anybody help me?
Thank's in advance.
Following the code to be changed:
Set dtspkg = CreateObejct("dts.package2")
dtspkg.loadFromSqlServer ....
Hi,
since my previous post i got some stange result.
I am now able to load the entry point object for SSIS execution. I got the application object using the folling cline of code:
set app = createObject("MSDTS.Application")
From this objet i now try to load a package (stored as file):
set pkg = app.loadPackage("c:\temp\TaskTest.dtsx", false, nothing)
And the problems begins:
- When i display theGUIDVersion of the object, it does not correspond to any object registered into my registry.
- Several methods/members/properties are not accessible through the object (i need to access to Executables property in order to excecute SSIS task).
Does anybody encounters these problems or has any idea to help me?
Thank's in advance.
Thursday, March 22, 2012
Calling MS Access function from DTS
I'm trying to delete data from an Access database, Compact the database, and load new data. My snag is calling a function in Access to compact the database.
Suggestions?I don't think you can actually call Access code from within DTS, but since DTS effectively is VBA (http://msdn.microsoft.com/vba/), you can write VB code that will do the same thing using ADO (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dtssql/dts_addf_ax_06er.asp) from within DTS.
-PatP|||Sounds like using a nuclear bomb to kill a mosquito...
Maybe a bat file that launches a different access database, then uses autoexec does the work then closes...
I would probably do this is a sproc with bcp as well, and have the job scheduled...
What's the source of the data?
Where do you ski, or is it just a nickname?sql
Calling external webservice using certificate
service.ClientCertificates.Add(X509Certificate.CreateFromCertFile(certFile));
Exception is:
Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Do you have any advices?
MiSu
In order to access the file system, your assembly must be deployed with at least an EXTERNAL_ACCESS permission grant. If you're using VStudio, you can set the target permission level via the project properties. Otherwise, see http://msdn2.microsoft.com/en-us/library/ms189524.aspx for details of the CREATE ASSEMBLY syntax.
Monday, March 19, 2012
Calling a web service from a CLR SQL stored procedure
I am trying to call a remote webservice from within SQl server using CLR.
However, SQL Server gives me an error saying that load(), loadModule() etc
are disabled. Of what I can tell, C# needs to dynamically generate and load
the XML serialization for the web service call. Does anyone know how I can
get around this problem?
Platform: SQL Server 2005 + C# (.net 2.0)Please use the beta newsgroups.
http://www.aspfaq.com/sql2005/show.asp?id=1
--
This is my signature. It is a general reminder.
Please post DDL, sample data and desired results.
See http://www.aspfaq.com/5006 for info.
"Krishna" <Krishna@.discussions.microsoft.com> wrote in message
news:B5643087-4F83-4EB6-AA7E-12D7CF6C6DEF@.microsoft.com...
> Hi,
> I am trying to call a remote webservice from within SQl server using CLR.
> However, SQL Server gives me an error saying that load(), loadModule() etc
> are disabled. Of what I can tell, C# needs to dynamically generate and
> load
> the XML serialization for the web service call. Does anyone know how I can
> get around this problem?
> Platform: SQL Server 2005 + C# (.net 2.0)
Calling a web service from a CLR SQL stored procedure
I am trying to call a remote webservice from within SQl server using CLR.
However, SQL Server gives me an error saying that load(), loadModule() etc
are disabled. Of what I can tell, C# needs to dynamically generate and load
the XML serialization for the web service call. Does anyone know how I can
get around this problem?
Platform: SQL Server 2005 + C# (.net 2.0)Please use the beta newsgroups.
http://www.aspfaq.com/sql2005/show.asp?id=1
This is my signature. It is a general reminder.
Please post DDL, sample data and desired results.
See http://www.aspfaq.com/5006 for info.
"Krishna" <Krishna@.discussions.microsoft.com> wrote in message
news:B5643087-4F83-4EB6-AA7E-12D7CF6C6DEF@.microsoft.com...
> Hi,
> I am trying to call a remote webservice from within SQl server using CLR.
> However, SQL Server gives me an error saying that load(), loadModule() etc
> are disabled. Of what I can tell, C# needs to dynamically generate and
> load
> the XML serialization for the web service call. Does anyone know how I can
> get around this problem?
> Platform: SQL Server 2005 + C# (.net 2.0)
Calling a web service from a CLR SQL stored procedure
I am trying to call a remote webservice from within SQl server using CLR.
However, SQL Server gives me an error saying that load(), loadModule() etc
are disabled. Of what I can tell, C# needs to dynamically generate and load
the XML serialization for the web service call. Does anyone know how I can
get around this problem?
Platform: SQL Server 2005 + C# (.net 2.0)
Please use the beta newsgroups.
http://www.aspfaq.com/sql2005/show.asp?id=1
This is my signature. It is a general reminder.
Please post DDL, sample data and desired results.
See http://www.aspfaq.com/5006 for info.
"Krishna" <Krishna@.discussions.microsoft.com> wrote in message
news:B5643087-4F83-4EB6-AA7E-12D7CF6C6DEF@.microsoft.com...
> Hi,
> I am trying to call a remote webservice from within SQl server using CLR.
> However, SQL Server gives me an error saying that load(), loadModule() etc
> are disabled. Of what I can tell, C# needs to dynamically generate and
> load
> the XML serialization for the web service call. Does anyone know how I can
> get around this problem?
> Platform: SQL Server 2005 + C# (.net 2.0)
Saturday, February 25, 2012
Calendar slow to load
Is anyone else experiencing performance problems with reports that use the calendar control for date parameters? Whenever we load a report that uses a calendar it takes several seconds to fully load the form (you can see something like this in the status bar:"...ReportViewerWebControl.axd?OpType=Calendar..."). This is not a serious problem, but if the user tries to use the control before it fully loads then the page throws javascript errors. I am wondering if this is a issue with the report itself or the server configuration, or if it is just something we have to live with.
The calendar control works by loading a years worth of dates to allow you to browse through the months more quickly. This is not a overly large amount of data and I have not seen it take a significant amount of time myself. The is, however, no way to change the behavior of this control. Things that might cause this behavior are a slow network connection or a slow server, however you would notice everything having longer load times then.
-Daniel
|||I have a new RS2005 server in production and the speed at which the calendar control loads is also painfully slow.
On the initial rounds of testing it was so slow that my Business Analysts / QA person reported *bugs* with the calendar control refreshing the page or displaying blank and so forth.
Is there a way to limit how much date information it pulls down initially or to possibly build a custom control based on the out of the box control and then limit the date range loaded by default?
For my users at least the date range is going to be from minus 3 months to present for about 95% of the runs.
|||Just to add to this, I have the same problem, I thought it was a bug too but there doesnt seem to be a way of fixing this....at least none that I know of.|||We have the same problem with calendar control. I have a filter with a date that should be greater than a value given by the user in the report. If I have a default value on the date the report loads very slow, in about 10 seconds. When I change the value in the report and click view report it still load slow.
On the other hand if I dont give a default value in the filter the report loads within 2 seconds. It also loads within seconds if I change the value in the report?
Any suggestions?
/Stefan
|||I wonder if this isn't related to bugs in the control?
The two behaviors I notice are an incredible amount of sluggishness associated with having a default value and that each time you change the value it makes a server round-trip even though you haven't clicked on the View Report button.
|||Can you file a bug on this issue along with your report definition that makes this happen? When you do so, please include infomration on the SQL Server Reporting Services version you're using and what browser and it's version you're using.
You can file the bug here: http://lab.msdn.microsoft.com/productfeedback/
When you have an expression based default value, we need to do a round trip to the server to determine the new value for the parameter. If the parameter depends on a previous parameter, whenever you change the upstream parameter we'll do a round trip. What I'd like to know is if the slowness persists if you were to substitute a string parameter for your datatime parameter. If it does, it is probably that the server is taking a long time to process your request - is it adequately resourced for the work load? Otherwise it might be specific to the data picker control.
Hope that helps,
-Lukasz
Calendar slow to load
Is anyone else experiencing performance problems with reports that use the calendar control for date parameters? Whenever we load a report that uses a calendar it takes several seconds to fully load the form (you can see something like this in the status bar:"...ReportViewerWebControl.axd?OpType=Calendar..."). This is not a serious problem, but if the user tries to use the control before it fully loads then the page throws javascript errors. I am wondering if this is a issue with the report itself or the server configuration, or if it is just something we have to live with.
The calendar control works by loading a years worth of dates to allow you to browse through the months more quickly. This is not a overly large amount of data and I have not seen it take a significant amount of time myself. The is, however, no way to change the behavior of this control. Things that might cause this behavior are a slow network connection or a slow server, however you would notice everything having longer load times then.
-Daniel
|||I have a new RS2005 server in production and the speed at which the calendar control loads is also painfully slow.
On the initial rounds of testing it was so slow that my Business Analysts / QA person reported *bugs* with the calendar control refreshing the page or displaying blank and so forth.
Is there a way to limit how much date information it pulls down initially or to possibly build a custom control based on the out of the box control and then limit the date range loaded by default?
For my users at least the date range is going to be from minus 3 months to present for about 95% of the runs.
|||Just to add to this, I have the same problem, I thought it was a bug too but there doesnt seem to be a way of fixing this....at least none that I know of.|||We have the same problem with calendar control. I have a filter with a date that should be greater than a value given by the user in the report. If I have a default value on the date the report loads very slow, in about 10 seconds. When I change the value in the report and click view report it still load slow.
On the other hand if I dont give a default value in the filter the report loads within 2 seconds. It also loads within seconds if I change the value in the report?
Any suggestions?
/Stefan
|||I wonder if this isn't related to bugs in the control?
The two behaviors I notice are an incredible amount of sluggishness associated with having a default value and that each time you change the value it makes a server round-trip even though you haven't clicked on the View Report button.
|||Can you file a bug on this issue along with your report definition that makes this happen? When you do so, please include infomration on the SQL Server Reporting Services version you're using and what browser and it's version you're using.
You can file the bug here: http://lab.msdn.microsoft.com/productfeedback/
When you have an expression based default value, we need to do a round trip to the server to determine the new value for the parameter. If the parameter depends on a previous parameter, whenever you change the upstream parameter we'll do a round trip. What I'd like to know is if the slowness persists if you were to substitute a string parameter for your datatime parameter. If it does, it is probably that the server is taking a long time to process your request - is it adequately resourced for the work load? Otherwise it might be specific to the data picker control.
Hope that helps,
-Lukasz
Calendar slow to load
Is anyone else experiencing performance problems with reports that use the calendar control for date parameters? Whenever we load a report that uses a calendar it takes several seconds to fully load the form (you can see something like this in the status bar:"...ReportViewerWebControl.axd?OpType=Calendar..."). This is not a serious problem, but if the user tries to use the control before it fully loads then the page throws javascript errors. I am wondering if this is a issue with the report itself or the server configuration, or if it is just something we have to live with.
The calendar control works by loading a years worth of dates to allow you to browse through the months more quickly. This is not a overly large amount of data and I have not seen it take a significant amount of time myself. The is, however, no way to change the behavior of this control. Things that might cause this behavior are a slow network connection or a slow server, however you would notice everything having longer load times then.
-Daniel
|||I have a new RS2005 server in production and the speed at which the calendar control loads is also painfully slow.
On the initial rounds of testing it was so slow that my Business Analysts / QA person reported *bugs* with the calendar control refreshing the page or displaying blank and so forth.
Is there a way to limit how much date information it pulls down initially or to possibly build a custom control based on the out of the box control and then limit the date range loaded by default?
For my users at least the date range is going to be from minus 3 months to present for about 95% of the runs.
|||Just to add to this, I have the same problem, I thought it was a bug too but there doesnt seem to be a way of fixing this....at least none that I know of.|||We have the same problem with calendar control. I have a filter with a date that should be greater than a value given by the user in the report. If I have a default value on the date the report loads very slow, in about 10 seconds. When I change the value in the report and click view report it still load slow.
On the other hand if I dont give a default value in the filter the report loads within 2 seconds. It also loads within seconds if I change the value in the report?
Any suggestions?
/Stefan
|||I wonder if this isn't related to bugs in the control?
The two behaviors I notice are an incredible amount of sluggishness associated with having a default value and that each time you change the value it makes a server round-trip even though you haven't clicked on the View Report button.
|||Can you file a bug on this issue along with your report definition that makes this happen? When you do so, please include infomration on the SQL Server Reporting Services version you're using and what browser and it's version you're using.
You can file the bug here: http://lab.msdn.microsoft.com/productfeedback/
When you have an expression based default value, we need to do a round trip to the server to determine the new value for the parameter. If the parameter depends on a previous parameter, whenever you change the upstream parameter we'll do a round trip. What I'd like to know is if the slowness persists if you were to substitute a string parameter for your datatime parameter. If it does, it is probably that the server is taking a long time to process your request - is it adequately resourced for the work load? Otherwise it might be specific to the data picker control.
Hope that helps,
-Lukasz
Tuesday, February 14, 2012
calculating load
can someone suggest me something based on the following parameters given
Q1 How many transactions are expected during the peak hour of activity? How
many transactions are expected each business day?
ANS: 300 concurrent users (max) will connect to application server and based
on the activity application server will call stored procedure stored in the
database server (one at a time). Most of the stored procedure (approx 500)
has single SELECT/UPDATE statement but, around 100 procedures has multiple
SELECT/UPDATE statement inside them (max 8 statement), frequency of calling
these procedures are less compared to the other 500.
Q2 How many database connections are required? From Appln to DB
ANS: How can we check that, will SQL profiler be able to give me this info?
Q3 How much storage should be reserved for the database (data and indexes)?
15 GB of database size is expected.
Q4 Can your application support 2 appln servers talking to one db at back en
d?
ANS: Yes"NewTOPROJECT" <NewTOPROJECT@.discussions.microsoft.com> wrote in message
news:3DF1EF15-D256-4961-881E-68427A184A0B@.microsoft.com...
> SEVRER WORKLOAD PARAMETERS:
> can someone suggest me something based on the following parameters given
>
I suggest you test, there's not nearly enough information to accruately size
the hardware. By the way, no matter how detailed your questionare is, you
will still need to test.
That workload does not appear to be too extreme. 15GB is on the large size
for an OLTP application, and a big wildcard is how expensive your SELECT
statements are. With 15GB of data there is ample opportunity to create very
expensive queries. On the other hand, if the data is largly historical and
you don't do historical reporting during peak load times, your workload may
be quite light.
So throw the profiler on it and watch the Reads and the CPU. The most
expensive 10% of queries may use 90% of your resources, so identify and
optimize these.
David
calculating load
can someone suggest me something based on the following parameters given
Q1 How many transactions are expected during the peak hour of activity? How
many transactions are expected each business day?
ANS: 300 concurrent users (max) will connect to application server and based
on the activity application server will call stored procedure stored in the
database server (one at a time). Most of the stored procedure (approx 500)
has single SELECT/UPDATE statement but, around 100 procedures has multiple
SELECT/UPDATE statement inside them (max 8 statement), frequency of calling
these procedures are less compared to the other 500.
Q2 How many database connections are required? From Appln to DB
ANS: How can we check that, will SQL profiler be able to give me this info?
Q3 How much storage should be reserved for the database (data and indexes)?
15 GB of database size is expected.
Q4 Can your application support 2 appln servers talking to one db at back end?
ANS: Yes"NewTOPROJECT" <NewTOPROJECT@.discussions.microsoft.com> wrote in message
news:3DF1EF15-D256-4961-881E-68427A184A0B@.microsoft.com...
> SEVRER WORKLOAD PARAMETERS:
> can someone suggest me something based on the following parameters given
>
I suggest you test, there's not nearly enough information to accruately size
the hardware. By the way, no matter how detailed your questionare is, you
will still need to test.
That workload does not appear to be too extreme. 15GB is on the large size
for an OLTP application, and a big wildcard is how expensive your SELECT
statements are. With 15GB of data there is ample opportunity to create very
expensive queries. On the other hand, if the data is largly historical and
you don't do historical reporting during peak load times, your workload may
be quite light.
So throw the profiler on it and watch the Reads and the CPU. The most
expensive 10% of queries may use 90% of your resources, so identify and
optimize these.
David
calculating load
can someone suggest me something based on the following parameters given
Q1 How many transactions are expected during the peak hour of activity? How
many transactions are expected each business day?
ANS: 300 concurrent users (max) will connect to application server and based
on the activity application server will call stored procedure stored in the
database server (one at a time). Most of the stored procedure (approx 500)
has single SELECT/UPDATE statement but, around 100 procedures has multiple
SELECT/UPDATE statement inside them (max 8 statement), frequency of calling
these procedures are less compared to the other 500.
Q2 How many database connections are required? From Appln to DB
ANS: How can we check that, will SQL profiler be able to give me this info?
Q3 How much storage should be reserved for the database (data and indexes)?
15 GB of database size is expected.
Q4 Can your application support 2 appln servers talking to one db at back end?
ANS: Yes
"NewTOPROJECT" <NewTOPROJECT@.discussions.microsoft.com> wrote in message
news:3DF1EF15-D256-4961-881E-68427A184A0B@.microsoft.com...
> SEVRER WORKLOAD PARAMETERS:
> can someone suggest me something based on the following parameters given
>
I suggest you test, there's not nearly enough information to accruately size
the hardware. By the way, no matter how detailed your questionare is, you
will still need to test.
That workload does not appear to be too extreme. 15GB is on the large size
for an OLTP application, and a big wildcard is how expensive your SELECT
statements are. With 15GB of data there is ample opportunity to create very
expensive queries. On the other hand, if the data is largly historical and
you don't do historical reporting during peak load times, your workload may
be quite light.
So throw the profiler on it and watch the Reads and the CPU. The most
expensive 10% of queries may use 90% of your resources, so identify and
optimize these.
David