Showing posts with label guys. Show all posts
Showing posts with label guys. Show all posts

Thursday, March 29, 2012

Error when trying to start Management Studio

Hello Guys,

I am getting the following error when I try to start SQL 2005 Management Studio to manage my SQL Server :

Cannot load the DLL xpstar.dll, or one of the DLLs it references. Reason: 126(The specified module could not be found.).

Any ideas ?

Thanks,

Hello

I have managed to sort it by reinstalling SQL over the current installation.

Thanks

|||

Hello,

Do you have a good idea instead of reinstall MS-SQL?

I've a lot of data in DB and always serve to customer. Can't reinstall as your suggess.

Regards,

XNOIE.

|||

Did you ever get this error fix.

I did a search for that dll and i found it, the only weird things is its not located in the same directory as my database.

Error when trying to start Management Studio

Hello Guys,

I am getting the following error when I try to start SQL 2005 Management Studio to manage my SQL Server :

Cannot load the DLL xpstar.dll, or one of the DLLs it references. Reason: 126(The specified module could not be found.).

Any ideas ?

Thanks,

Hello

I have managed to sort it by reinstalling SQL over the current installation.

Thanks

|||

Hello,

Do you have a good idea instead of reinstall MS-SQL?

I've a lot of data in DB and always serve to customer. Can't reinstall as your suggess.

Regards,

XNOIE.

|||

Did you ever get this error fix.

I did a search for that dll and i found it, the only weird things is its not located in the same directory as my database.

Error when trying to start Management Studio

Hello Guys,

I am getting the following error when I try to start SQL 2005 Management Studio to manage my SQL Server :

Cannot load the DLL xpstar.dll, or one of the DLLs it references. Reason: 126(The specified module could not be found.).

Any ideas ?

Thanks,

Hello

I have managed to sort it by reinstalling SQL over the current installation.

Thanks

|||

Hello,

Do you have a good idea instead of reinstall MS-SQL?

I've a lot of data in DB and always serve to customer. Can't reinstall as your suggess.

Regards,

XNOIE.

|||

Did you ever get this error fix.

I did a search for that dll and i found it, the only weird things is its not located in the same directory as my database.

Monday, March 19, 2012

Error when Deploying Cube

Hey guys,

Have a really strange error, I have a AS Cube designed and ready to go. Have been deploying it previosly and was erroring out due to attributes not being found in the tables. So ive worked on fixing all of them and now, i have an error message occuring and all it says is:

Server: The Operation has been cancelled.

I havnt cancelled anything, it doesnt show any more details for the error either.. Is there a log file somewhere that i can look further into?


Or has anyone had this message before? I am stumpped and now its annoying me as i was so close to having my first cube up and deployed...

Thanks in advance

Scotty

If you have made some changes in the source DB, you can try re creating the Data source and data source view and processing the dimensions and the cube after that.

|||

Are you receiving the error when you build and deploy the cube? Or does the error happenwhen you process the cube *after* deploying. If you have the Processing Options set to "default", then your cube will automatically process after each deployment.

If Processing Options are set to "default", then first set this to "do not process" (Right click on Project name to find this).

Then go into the Data Source View tab and right click anywhere in the diagram pane and select "Refresh...." This will perform some comparisons between your DSV and your relational database.

At this point, you can start processing your cube. What I would do at this point is select all the dimensions and process them first. If you see any errors, look at the error messages and backtrack until they are all corrected. Keep in mind that because your dimensions are being processed in parallel any error will cause any dimensions that are still being processed to stop and they will display a "canceled" message.

One you get the dimensions processed then start processing the partitions.

This is somewhere tedius, but if you haven't been keeping the relational database and your cube structure in synch, you'll have to take the time to do it now.

Hope this helps,

Pam

|||

Thanks Pam, I am receiving the error when i am deploying the cube. Building the cube works fine.

I will go through your instructions and see if it works. i am thinking you are right as i have been changing one particular table,. keeping all the columns names the same, but the problem started happening after i did this..

Ill let you know how i go in a couple of minutes..

Once again,,thanks.. this place in invaluable for advice!!

|||

Pam,

I went through and did what you suggested. Everything processed correctly to i go to the partition and tried to process that. This is where i got the message : Server: The Operation has Been Cancelled.

Any ideas on this? Should i try to create a new partition? if so, can i base if of the old one? I havnt done much with partitions yet as im pretty new to SSAS but im willing to read up on it if need be..

Thanks


Scotty

|||

hi guys,

Even i have error while deploying the cube

Error is as follows:

Error 1 The project could not be deployed to the "Server name" server because of the following connectivity problems : A connection cannot be made. Ensure that the server is running. To verify or update the name of the target server, right-click on the project in Solution Explorer, select Project Properties, click on the Deployment tab, and then enter the name of the server.

but the server was working fine..

i didnt get what excatly was the error

could any help me out

lalitha

|||

Hi
I am getting the same error while running the MDX. The query uses subcube. Query runs ok when there is less data BUT it gives me error "Server: The operation has been cancelled." there is large amount of data.
Thanks in advance!
Rakesh

|||Looks like its a perfomance issue. long-running queries can lock the system as a whole. |||When I highlight a few partitions and start processing, the process occasionally stops with a message that operation has been canceled, like this:

Response 3
Server: the operation has been cancelled.
Response 4

Server: the operation has been cancelled.

Response 5
Server: the operation has been cancelled.

..etc...

(no further error message details are provided)
SQL profiler shows that batch was completed (but rowcount shown in process progress log is too small).
Analysis Services profiler shows no messages at that time at all. It just shows messages when it started, and when I restarted the processing.

This is an occasional error and sometime occurs within 15-20 minutes from starting to process. It could fail on 1st partition in the process list , or on some partition in the middle. Some partitions might run for a few hours and not error out, but sometimes it fails quickly.

Also looks like the profiler (engine and ssas) are not working correctly - they are skipping messages (not capturing or not showing). I do not have any filters on the Profiler.

Error when Deploying Cube

Hey guys,

Have a really strange error, I have a AS Cube designed and ready to go. Have been deploying it previosly and was erroring out due to attributes not being found in the tables. So ive worked on fixing all of them and now, i have an error message occuring and all it says is:

Server: The Operation has been cancelled.

I havnt cancelled anything, it doesnt show any more details for the error either.. Is there a log file somewhere that i can look further into?


Or has anyone had this message before? I am stumpped and now its annoying me as i was so close to having my first cube up and deployed...

Thanks in advance

Scotty

If you have made some changes in the source DB, you can try re creating the Data source and data source view and processing the dimensions and the cube after that.

|||

Are you receiving the error when you build and deploy the cube? Or does the error happenwhen you process the cube *after* deploying. If you have the Processing Options set to "default", then your cube will automatically process after each deployment.

If Processing Options are set to "default", then first set this to "do not process" (Right click on Project name to find this).

Then go into the Data Source View tab and right click anywhere in the diagram pane and select "Refresh...." This will perform some comparisons between your DSV and your relational database.

At this point, you can start processing your cube. What I would do at this point is select all the dimensions and process them first. If you see any errors, look at the error messages and backtrack until they are all corrected. Keep in mind that because your dimensions are being processed in parallel any error will cause any dimensions that are still being processed to stop and they will display a "canceled" message.

One you get the dimensions processed then start processing the partitions.

This is somewhere tedius, but if you haven't been keeping the relational database and your cube structure in synch, you'll have to take the time to do it now.

Hope this helps,

Pam

|||

Thanks Pam, I am receiving the error when i am deploying the cube. Building the cube works fine.

I will go through your instructions and see if it works. i am thinking you are right as i have been changing one particular table,. keeping all the columns names the same, but the problem started happening after i did this..

Ill let you know how i go in a couple of minutes..

Once again,,thanks.. this place in invaluable for advice!!

|||

Pam,

I went through and did what you suggested. Everything processed correctly to i go to the partition and tried to process that. This is where i got the message : Server: The Operation has Been Cancelled.

Any ideas on this? Should i try to create a new partition? if so, can i base if of the old one? I havnt done much with partitions yet as im pretty new to SSAS but im willing to read up on it if need be..

Thanks


Scotty

|||

hi guys,

Even i have error while deploying the cube

Error is as follows:

Error 1 The project could not be deployed to the "Server name" server because of the following connectivity problems : A connection cannot be made. Ensure that the server is running. To verify or update the name of the target server, right-click on the project in Solution Explorer, select Project Properties, click on the Deployment tab, and then enter the name of the server.

but the server was working fine..

i didnt get what excatly was the error

could any help me out

lalitha

|||

Hi
I am getting the same error while running the MDX. The query uses subcube. Query runs ok when there is less data BUT it gives me error "Server: The operation has been cancelled." there is large amount of data.
Thanks in advance!
Rakesh

|||Looks like its a perfomance issue. long-running queries can lock the system as a whole. |||When I highlight a few partitions and start processing, the process occasionally stops with a message that operation has been canceled, like this:

Response 3
Server: the operation has been cancelled.
Response 4

Server: the operation has been cancelled.

Response 5
Server: the operation has been cancelled.

..etc...

(no further error message details are provided)
SQL profiler shows that batch was completed (but rowcount shown in process progress log is too small).
Analysis Services profiler shows no messages at that time at all. It just shows messages when it started, and when I restarted the processing.

This is an occasional error and sometime occurs within 15-20 minutes from starting to process. It could fail on 1st partition in the process list , or on some partition in the middle. Some partitions might run for a few hours and not error out, but sometimes it fails quickly.

Also looks like the profiler (engine and ssas) are not working correctly - they are skipping messages (not capturing or not showing). I do not have any filters on the Profiler.

Error when Deploying Cube

Hey guys,

Have a really strange error, I have a AS Cube designed and ready to go. Have been deploying it previosly and was erroring out due to attributes not being found in the tables. So ive worked on fixing all of them and now, i have an error message occuring and all it says is:

Server: The Operation has been cancelled.

I havnt cancelled anything, it doesnt show any more details for the error either.. Is there a log file somewhere that i can look further into?


Or has anyone had this message before? I am stumpped and now its annoying me as i was so close to having my first cube up and deployed...

Thanks in advance

Scotty

If you have made some changes in the source DB, you can try re creating the Data source and data source view and processing the dimensions and the cube after that.

|||

Are you receiving the error when you build and deploy the cube? Or does the error happenwhen you process the cube *after* deploying. If you have the Processing Options set to "default", then your cube will automatically process after each deployment.

If Processing Options are set to "default", then first set this to "do not process" (Right click on Project name to find this).

Then go into the Data Source View tab and right click anywhere in the diagram pane and select "Refresh...." This will perform some comparisons between your DSV and your relational database.

At this point, you can start processing your cube. What I would do at this point is select all the dimensions and process them first. If you see any errors, look at the error messages and backtrack until they are all corrected. Keep in mind that because your dimensions are being processed in parallel any error will cause any dimensions that are still being processed to stop and they will display a "canceled" message.

One you get the dimensions processed then start processing the partitions.

This is somewhere tedius, but if you haven't been keeping the relational database and your cube structure in synch, you'll have to take the time to do it now.

Hope this helps,

Pam

|||

Thanks Pam, I am receiving the error when i am deploying the cube. Building the cube works fine.

I will go through your instructions and see if it works. i am thinking you are right as i have been changing one particular table,. keeping all the columns names the same, but the problem started happening after i did this..

Ill let you know how i go in a couple of minutes..

Once again,,thanks.. this place in invaluable for advice!!

|||

Pam,

I went through and did what you suggested. Everything processed correctly to i go to the partition and tried to process that. This is where i got the message : Server: The Operation has Been Cancelled.

Any ideas on this? Should i try to create a new partition? if so, can i base if of the old one? I havnt done much with partitions yet as im pretty new to SSAS but im willing to read up on it if need be..

Thanks


Scotty

|||

hi guys,

Even i have error while deploying the cube

Error is as follows:

Error 1 The project could not be deployed to the "Server name" server because of the following connectivity problems : A connection cannot be made. Ensure that the server is running. To verify or update the name of the target server, right-click on the project in Solution Explorer, select Project Properties, click on the Deployment tab, and then enter the name of the server.

but the server was working fine..

i didnt get what excatly was the error

could any help me out

lalitha

|||

Hi
I am getting the same error while running the MDX. The query uses subcube. Query runs ok when there is less data BUT it gives me error "Server: The operation has been cancelled." there is large amount of data.
Thanks in advance!
Rakesh

|||Looks like its a perfomance issue. long-running queries can lock the system as a whole. |||When I highlight a few partitions and start processing, the process occasionally stops with a message that operation has been canceled, like this:

Response 3
Server: the operation has been cancelled.
Response 4

Server: the operation has been cancelled.

Response 5
Server: the operation has been cancelled.

..etc...

(no further error message details are provided)
SQL profiler shows that batch was completed (but rowcount shown in process progress log is too small).
Analysis Services profiler shows no messages at that time at all. It just shows messages when it started, and when I restarted the processing.

This is an occasional error and sometime occurs within 15-20 minutes from starting to process. It could fail on 1st partition in the process list , or on some partition in the middle. Some partitions might run for a few hours and not error out, but sometimes it fails quickly.

Also looks like the profiler (engine and ssas) are not working correctly - they are skipping messages (not capturing or not showing). I do not have any filters on the Profiler.

Monday, March 12, 2012

Error when browsing data

Hi Guys,
I am novice to AS. I install the Analysis Services to my Windows 2000 Professional. But in the places where to display or browsing data, it always encounters an Unspecific Error. For example:
a) In a cube - HR, if i select Browsing Data menu, the error 'Unspecific Error' displayed.
b) In a Dimensions, select Brows Dimensions Data, the error message in the windows said: Unable to brows the Dimension '*******', Unspecific Error.

Please help me to fix this problem
Thanks
PatrickMore info.:
The error happens at first time on clicking the data tab, the error message said:
'Provider cannot be found. It may not be properly installed'
I am not sure which Provider should i install?
Thanks|||Bug Fixed by installing the SQL Service SP

error when backup transaction log

hi guys,


I'm using sql 2000 and I got this error when I run backup transaction log in maintenence plan.
"The job failed. The Job was invoked by Schedule 38 (Schedule 1). The last step to run was step 1 (Step 1)."

but even it return an error the backup file is created.

please advice.

thanks

There has to be a more detailed error, if you did not choose to log the job execution, try to do this, as this. Otherwiese you will only get this common exception which does not really help very much.

HTH, Jens Suessmeyer.

http://www.sqlserver2005.de|||

hi jens,

after I try to backup just 1 database. it went ok.

maybe it because I backup master and msdb also. but I wonder why is my transaction log file is keep on growing ?

should it get truncated everytime the backup is successfull ? either full backup or transaction log backup right

regards,

-dedys

Friday, March 9, 2012

Error Validating Any Check Constraint

Hey Guys,

I just this day started using SQL sever 2005. I created a database and

then created a table. Then I started adding some fields. I wanted to

add a check constraint to one of the fields called state but I keep

getting the same error. I right click on the field while editing the

table and select check constraint. I then click add on the check

constraint dialogue and in the expression caption I input the

following:

<code>

@.State In('CA', 'AZ', 'UT', 'CO')

</code>

I am using a book and have straight copied the above example from

the book. However when I input the check constraint I get the following

error;

"Error validating constraint 'ck_myfirstdatabase'

I have tried this with other fields and other types of check

constraints and I still get the same error. I have tried to delete the

database and recreate it. I have tried everything I can think of and I

cannot seem to get check constraints to work. I have no idea why I keep

getting this message. I have checked the

examples a

thousand times, the syntax is definately correct. This is getting

extremely annoying as I cannot continue unless I do this. I'm all out

of ideas. Can anyone please tell me

why it could not be working? Any ideas would be greatly appreciated.

hi,

i think this

@.State In('CA', 'AZ', 'UT', 'CO')

should be like this

State In('CA', 'AZ', 'UT', 'CO')

@.state is a varaible and constraints dont use it.

Anyway the best way to learn constraint is to use TSQL scripts and here's an example

create table mytable
(
chardate char(10),
charfloat char(5)
)
GO

ALTER TABLE MYTABLE
ADD
CONSTRAINT column_chardate_chk
CHECK
(
chardate like '[0-1][0-9]/[3-9][0-9]/[0-9][0-9][0-9][0-9]'
)
GO
ALTER TABLE MYTABLE
ADD
CONSTRAINT column_int_chk CHECK
(
charfloat like '[0-9][0-9].[0-9][0-9]'
)
GO

INSERT MYTABLE VALUES('01/01/2005','01.20') this will insert

GO
INSERT MYTABLE VALUES('01/01/2005','001.20') this will fail

SELECT * FROM MYTABLE

Wednesday, March 7, 2012

ERROR using GROUP BY

Hi guys,

The code below works fine if I take the "GROUP BY" Sentence out.

Without the group by, I am getting something that looks like:

Proj Nr Proj Name Proj Nr & Name

001 Proj 1 001 - Proj 1

001 Proj 1 001 - Proj 1

001 Proj 1 001 - Proj 1

002 Proj 2 002 - Proj 2

002 Proj 2 002 - Proj 2

002 Proj 2 002 - Proj 2

And I need only one line for each Proj, like:

001 Proj 1 001 - Proj 1

002 Proj 2 002 - Proj 2

(It is not because of the tables. It is because the Nr "001" is only a substring of the data)

I thought I can use GROUP BY in order to get only one line for each Proj.

This is the code I am trying:

SELECT

CAST(SUBSTRING(Accounts.ACCOUNTKEY, 1, 3) as char(3))

+ ' - ' +

CAST(Proj_Name.NOTE as char(15)) AS 'Proj Nr & Name',

Proj_Name.NOTE AS 'Proj Name',

SUBSTRING (Accounts.ACCOUNTKEY, 1, 3) AS 'Proj Nr'

FROM myCompany.dbo.ACCOUNTS Accounts

LEFT OUTER JOIN myCompany.dbo.EXTRANOTES Proj_Name ON Accounts.ACCOUNTKEY = Proj_Name.KEF AND Proj_Name.NOTEID In (17)

WHERE (Accounts.SORTGROUP Between 0 And 379 AND Proj_Name.NOTEID In (17))

ORDER BY SUBSTRING(Accounts.ACCOUNTKEY, 1, 3)

GROUP BY SUBSTRING(Accounts.ACCOUNTKEY, 1, 3)

Any help will be appreciatted.

Aldo.order by comes after group by|||Still getting ERROR...

SELECT

CAST(SUBSTRING(Accounts.ACCOUNTKEY, 1, 3) as char(3))

+ ' - ' +

CAST(Proj_Name.NOTE as char(15)) AS 'Proj Nr & Name',

Proj_Name.NOTE AS 'Proj Name',

SUBSTRING(Accounts.ACCOUNTKEY, 1, 3) AS 'Proj Nr'

FROM myCompany.dbo.ACCOUNTS Accounts

LEFT OUTER JOIN myCompany.dbo.EXTRANOTES Proj_Name

ON Accounts.ACCOUNTKEY = Proj_Name.KEF

AND Proj_Name.NOTEID In (17)

WHERE (Accounts.SORTGROUP Between 0 And 379

AND Proj_Name.NOTEID In (17))

GROUP BY SUBSTRING(Accounts.ACCOUNTKEY, 1, 3)

ORDER BY SUBSTRING(Accounts.ACCOUNTKEY, 1, 3)|||

wats the error...?

also include all non aggregate items - used in select - in the group by list...

|||It works right wihtout the Group By, but it shows the same line several times, like:

001 Proj1

001 Proj1

001 Proj1

instead of showing the data only once, like:

001 Proj1

Aldo.|||

i think just a distinct will work here for u...

select distinct....

as group by is used when u want to use aggregates etc, grouping by some columns....

--btw i was askin wats the error it gives when u use Group By...

|||SQL Syntax Error|||

SELECT

CAST(SUBSTRING(Accounts.ACCOUNTKEY, 1, 3) as char(3))

+ ' - ' +

CAST(Proj_Name.NOTE as char(15)) AS 'Proj Nr & Name',

Proj_Name.NOTE AS 'Proj Name',

SUBSTRING (Accounts.ACCOUNTKEY, 1, 3) AS 'Proj Nr'

FROM

ACCOUNTS Accounts

LEFT OUTER JOIN

EXTRANOTES Proj_Name

ON

Accounts.ACCOUNTKEY = Proj_Name.KEF AND Proj_Name.NOTEID In (17)

WHERE

(Accounts.SORTGROUP Between 0 And 379 AND Proj_Name.NOTEID In (17))

GROUP BY

SUBSTRING(Accounts.ACCOUNTKEY, 1, 3),note

ORDER BY

SUBSTRING(Accounts.ACCOUNTKEY, 1, 3)

|||Thanks man, I tried that but it doesn't work.|||

Please post the schema for the two tables.

Rich

www.richreeves.com

|||Guys, this is a simple one!

You're referring to other fields in your query, which are neither aggregates nor part of the 'group by' clause.

When you group by various elements, those elements become the only non-aggregated fields you can refer to in the select statement. So perhaps you need to include the NOTE field as well in the group by clause, like this:

GROUP BY SUBSTRING(Accounts.ACCOUNTKEY, 1, 3), Proj_Name.NOTE

This might still give an error because you're trying to group by only the first three characters of AccountKey, and then doing some more to it. So if you get an error when you try just changing the group by statement, then perhaps try changing the query a little more like this:

select
CAST([Proj Nr] as char(3))

+ ' - ' +

CAST([Proj Name] as char(15)) AS 'Proj Nr & Name',
*
FROM

(
SELECT
Proj_Name.NOTE AS 'Proj Name',
SUBSTRING (Accounts.ACCOUNTKEY, 1, 3) AS 'Proj Nr'
FROM myCompany.dbo.ACCOUNTS Accounts
LEFT OUTER JOIN myCompany.dbo.EXTRANOTES Proj_Name ON Accounts.ACCOUNTKEY = Proj_Name.KEF AND Proj_Name.NOTEID In (17)
WHERE (Accounts.SORTGROUP Between 0 And 379 AND Proj_Name.NOTEID In (17))
GROUP BY SUBSTRING(Accounts.ACCOUNTKEY, 1, 3), Proj_Name.NOTE
) p
ORDER BY [Proj Nr]

All I've done here is to simplify the bit where the GROUP BY applies, and then wrapped it up in a table expression (which I've aliased 'p'). You can then refer to the other fields more easily in the SELECT and ORDER BY clauses.

See how you go though. By all means post what's wrong with this one. :)

Rob|||select
CAST([Proj Nr] as char(3))

+ ' - ' +

CAST([Proj Name] as char(15)) AS 'Proj Nr & Name',
*
FROM

(
SELECT
Proj_Name.NOTE AS 'Proj Name',
SUBSTRING (Accounts.ACCOUNTKEY, 1, 3) AS 'Proj Nr'
FROM myCompany.dbo.ACCOUNTS Accounts
LEFT OUTER JOIN myCompany.dbo.EXTRANOTES Proj_Name ON Accounts.ACCOUNTKEY = Proj_Name.KEF AND Proj_Name.NOTEID In (17)
WHERE
( Accounts.SORTGROUP Between 0 And 379
-- a bit redundant isn't it ?
-- AND Proj_Name.NOTEID In (17)
)
GROUP BY SUBSTRING(Accounts.ACCOUNTKEY, 1, 3), Proj_Name.NOTE
) p
ORDER BY [Proj Nr]|||Yeah, sure... but I was just using the original query, not trying to change the logic of it.|||Hi Guys,

It works just Great, THANKS A LOT!

Aldo.

Error using Datareader Destination

Hi guys,
I'm in dire straits here - really hoping someone can help me.

I'm using a datareader destination and consuming it in a C# app. When I fire ExecuteReader on my DTSCommand object to return some data I get the error:

"Could not obtain a datareader object from the specified data flow component"

So we don't have a clue why this isn't working. Although...I'm intrigued by the line about "specified data-flow component". In the C# app you don't actually specify which data-flow component contains the data reader that you want (do you?) so how does it know where to find the datareader? I'm speculating as to whether this is something to do with the error we're getting or not but it'd help to understand anyway.

ANY help at all much appreciated. We're up against it here.

-JamieWell, the CommandText is the NAME of the DataReader Destination in the package, so your app does in fact specify the data flow component...

-Doug
|||The BOL topic on this subject, at least for the 1st Web refresh, is "Loading Data Flow Results into a Client Application." I updated it again just this week with a bit of information on using DtsDataParameter.

Unfortunately the results of attempting to copy and paste a BOL topic are never pretty...but I can try, if you'd like, or simply email you a more recent copy of the SSIS programming hxs file to drop into your BOL folder and give you the latest content (with disclaimer about editing and tech review not completed).

-Doug
|||Hi Doug,
Yeah that's the BOL topic we're using so I fear the problems may be more deep seated than that. We're definately specifying the datareader destination correctly so its not that (I guess by not specifying the data-flow the only requirement is that you don't have 2 datareader destinations with the same name in the same package).

If you could send me an updated version of that doc though that would be fantastic. I think you have my email address don't you?

Very much appreciated.

If anyone out there has some war stories of using the data-flow destination then I'm all ears.

Thanks
Jamie|||Any chance the DataReader is timing out before your app attempts to grab it?

Do you have the hex code or symbolic name (DTS_E_*) for the error that you're seeing?

-Doug
|||

DouglasL wrote:

Any chance the DataReader is timing out before your app attempts to grab it?

Do you have the hex code or symbolic name (DTS_E_*) for the error that you're seeing?

-Doug

I doubt its the timeout cos I set it to 10 seconds (I think) but I'll check it tomorrow.

The error is occurring in the C# app. To all intents and purposes the SSIS package is executing fine so I'm not going to get any DTS_E_* error(s). I'll dig around tomorrow morning though and see what I can find.

-Jamie|||As far as I can determine, the error message that you originally reported is returned ONLY when the DataReader returned to the DtsClient component by the DataReader destination (that is, the instance of System.Data.IDataReader that you expect to contain your data) is null.

At this point, DtsClient has already (1) located the component with the name that you specified in the CommandText and (2) confirmed that it is in fact a DataReader Destination component.

Hope this helps to narrow things down.

-Doug
|||Right,
The package is still failing HOWEVER I have 3 near identical packages which run fine. The calling code is exactly the same, the only difference being the connection string of my DTSConnection object and the name of the datareader.

So, there's obviously something wrong in my package (even though it runs successfully from DTExec) so I delved into the .dtsx file for each package and found the <component>...</component> section for the datareader destination. Apart from the differences in the <inputColumn> elements (cos they're different pipelines) they seem exactly the same so I can't find any problem there.

Hope this makes sense.

So, any further advice on where to search and what to search for?

-Jamie|||Jamie,

I might be shooting in the dark (I don't have access to your code and package).

Here is what I'd like to know:
1. Did that package pass if running in BI development studio? (I'm confused that in the beginning you said it fail but you also said it runs successfully from DTExec.)

2. How do you call ExecuteReader? Something similar to the following?

conn = new DtsConnection() as IDbConnection;

conn.ConnectionString = dtexeCmd; -- '-f C:\pkg.dtsx'

conn.Open();

command = conn.CreateCommand();

command.CommandText = dataReaderName;

/* Get the data reader */

reader = command.ExecuteReader();

Is it possible that you share your package and code?

|||

Runying Mao wrote:

Jamie,

I might be shooting in the dark (I don't have access to your code and package).

Here is what I'd like to know:
1. Did that package pass if running in BI development studio? (I'm confused that in the beginning you said it fail but you also said it runs successfully from DTExec.)

2. How do you call ExecuteReader? Something similar to the following?

conn = new DtsConnection() as IDbConnection;

conn.ConnectionString = dtexeCmd; -- '-f C:\pkg.dtsx'

conn.Open();

command = conn.CreateCommand();

command.CommandText = dataReaderName;

/* Get the data reader */

reader = command.ExecuteReader();

Is it possible that you share your package and code?

Hiya Runying,
Yeah, that's exactly how we do it.

The package runs successfuly in BIDS and from DTExec. The bit that fails is consuming it from elsewhere.

Can you drop me a mail (jamie.thomson[at]conchango.com) and I'll reply with the package and possibly some data (its sensitive data)

-Jamie|||

Jamie Thomson wrote:


Hiya Runying,
Yeah, that's exactly how we do it.

The package runs successfuly in BIDS and from DTExec. The bit that fails is consuming it from elsewhere.

Can you drop me a mail (jamie.thomson[at]conchango.com) and I'll reply with the package and possibly some data (its sensitive data)

-Jamie

Jamie, I've responded you with my email address.|||

Jamie,

I have found out the cause. Data Reader dest sets its property "DataReader" at validation time. But in your package, Data Flow task has "DelayValidation" set to True. This causes "DataReader" to be NULL at execution time.

It appears something we can improve. I will open a bug.

For now, the workaround is to set Data Flow task property "DelayValidation" to False.

Thanks for your package.

|||Sure, I've got the same problem in my package with a DataReader. In fact, I set the DelayValidation to true due to the query constructed at runtime and got a subject error! I'm in a hurry to try the workaround.
Thank you, Runying!

Sergei Vedischev.

Sunday, February 26, 2012

Error upon adding configuration (After Katmai uninstall)

Hi guys. This problem is somewhat related to my other problem here. This time, whenever I add a configuration file to a package I get the an error

Constructor on type 'Microsoft.DataWarehouse.Wizards.WizardInitializer' not found (EnvDTE).

All these weird messages came out after I uninstalled Katmai June CTP. I already employed similar solutions suggested by the kind people in the thread of my first problem. I'm just not sure which wizard file and registry key to modify.
It was fixed after I installed July CTP

Error upon adding configuration (After Katmai uninstall)

Hi guys. This problem is somewhat related to my other problem here. This time, whenever I add a configuration file to a package I get the an error

Constructor on type 'Microsoft.DataWarehouse.Wizards.WizardInitializer' not found (EnvDTE).

All these weird messages came out after I uninstalled Katmai June CTP. I already employed similar solutions suggested by the kind people in the thread of my first problem. I'm just not sure which wizard file and registry key to modify.
It was fixed after I installed July CTP