dbTalk Databases Forums  

SSIS - SQL Task - Parse Query Button

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss SSIS - SQL Task - Parse Query Button in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Cam
 
Posts: n/a

Default SSIS - SQL Task - Parse Query Button - 08-21-2008 , 10:19 AM






I have an “Execute SQL Task” object in my SQL 2005 Integration Services
Project.

The relative properties are:
ResultSet SingleRow
ConnectionType ADO.NET
Connection MYDB
SQLSourceType Direct Input
SQLStatement sp_determineworkingday
isQueryStoredProc True

sp_determineworkingday is a stored procedure in “MyDb”. When I hit Parse
Query, I get the “object reference not set to an instance of an object”
message. I tried fully qualifying the stored proc, but get the same message.
It works when the package runs, just gives that message in design time. Its
probably nothing to worry about, just could do without the message. Any idea
why I get the message or how to get rid of it?

Your help is appreciated


Reply With Quote
  #2  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS - SQL Task - Parse Query Button - 08-22-2008 , 12:34 PM






Hello Cam:
Not sure if this is the cause; you will have to verify it for us:

For any stored procedure whose name starts with "sp_", when the system goes
to run it, regardless of the fact that you qualify that name with database
and schema, it will ALWAYS look in the Master database first, before looking
in the current Db or using the qualified name.

Try renaming the proc to something other than "sp_" and see what you get.

HTH

--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"Cam" wrote:

Quote:
I have an “Execute SQL Task” object in my SQL 2005 Integration Services
Project.

The relative properties are:
ResultSet SingleRow
ConnectionType ADO.NET
Connection MYDB
SQLSourceType Direct Input
SQLStatement sp_determineworkingday
isQueryStoredProc True

sp_determineworkingday is a stored procedure in “MyDb”. When I hit Parse
Query, I get the “object reference not set to an instance of an object”
message. I tried fully qualifying the stored proc, but get the same message.
It works when the package runs, just gives that message in design time. Its
probably nothing to worry about, just could do without the message. Any idea
why I get the message or how to get rid of it?

Your help is appreciated


Reply With Quote
  #3  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS - SQL Task - Parse Query Button - 08-22-2008 , 12:34 PM



Hello Cam:
Not sure if this is the cause; you will have to verify it for us:

For any stored procedure whose name starts with "sp_", when the system goes
to run it, regardless of the fact that you qualify that name with database
and schema, it will ALWAYS look in the Master database first, before looking
in the current Db or using the qualified name.

Try renaming the proc to something other than "sp_" and see what you get.

HTH

--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"Cam" wrote:

Quote:
I have an “Execute SQL Task” object in my SQL 2005 Integration Services
Project.

The relative properties are:
ResultSet SingleRow
ConnectionType ADO.NET
Connection MYDB
SQLSourceType Direct Input
SQLStatement sp_determineworkingday
isQueryStoredProc True

sp_determineworkingday is a stored procedure in “MyDb”. When I hit Parse
Query, I get the “object reference not set to an instance of an object”
message. I tried fully qualifying the stored proc, but get the same message.
It works when the package runs, just gives that message in design time. Its
probably nothing to worry about, just could do without the message. Any idea
why I get the message or how to get rid of it?

Your help is appreciated


Reply With Quote
  #4  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS - SQL Task - Parse Query Button - 08-22-2008 , 12:34 PM



Hello Cam:
Not sure if this is the cause; you will have to verify it for us:

For any stored procedure whose name starts with "sp_", when the system goes
to run it, regardless of the fact that you qualify that name with database
and schema, it will ALWAYS look in the Master database first, before looking
in the current Db or using the qualified name.

Try renaming the proc to something other than "sp_" and see what you get.

HTH

--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"Cam" wrote:

Quote:
I have an “Execute SQL Task” object in my SQL 2005 Integration Services
Project.

The relative properties are:
ResultSet SingleRow
ConnectionType ADO.NET
Connection MYDB
SQLSourceType Direct Input
SQLStatement sp_determineworkingday
isQueryStoredProc True

sp_determineworkingday is a stored procedure in “MyDb”. When I hit Parse
Query, I get the “object reference not set to an instance of an object”
message. I tried fully qualifying the stored proc, but get the same message.
It works when the package runs, just gives that message in design time. Its
probably nothing to worry about, just could do without the message. Any idea
why I get the message or how to get rid of it?

Your help is appreciated


Reply With Quote
  #5  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS - SQL Task - Parse Query Button - 08-22-2008 , 12:34 PM



Hello Cam:
Not sure if this is the cause; you will have to verify it for us:

For any stored procedure whose name starts with "sp_", when the system goes
to run it, regardless of the fact that you qualify that name with database
and schema, it will ALWAYS look in the Master database first, before looking
in the current Db or using the qualified name.

Try renaming the proc to something other than "sp_" and see what you get.

HTH

--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"Cam" wrote:

Quote:
I have an “Execute SQL Task” object in my SQL 2005 Integration Services
Project.

The relative properties are:
ResultSet SingleRow
ConnectionType ADO.NET
Connection MYDB
SQLSourceType Direct Input
SQLStatement sp_determineworkingday
isQueryStoredProc True

sp_determineworkingday is a stored procedure in “MyDb”. When I hit Parse
Query, I get the “object reference not set to an instance of an object”
message. I tried fully qualifying the stored proc, but get the same message.
It works when the package runs, just gives that message in design time. Its
probably nothing to worry about, just could do without the message. Any idea
why I get the message or how to get rid of it?

Your help is appreciated


Reply With Quote
  #6  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS - SQL Task - Parse Query Button - 08-22-2008 , 12:34 PM



Hello Cam:
Not sure if this is the cause; you will have to verify it for us:

For any stored procedure whose name starts with "sp_", when the system goes
to run it, regardless of the fact that you qualify that name with database
and schema, it will ALWAYS look in the Master database first, before looking
in the current Db or using the qualified name.

Try renaming the proc to something other than "sp_" and see what you get.

HTH

--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"Cam" wrote:

Quote:
I have an “Execute SQL Task” object in my SQL 2005 Integration Services
Project.

The relative properties are:
ResultSet SingleRow
ConnectionType ADO.NET
Connection MYDB
SQLSourceType Direct Input
SQLStatement sp_determineworkingday
isQueryStoredProc True

sp_determineworkingday is a stored procedure in “MyDb”. When I hit Parse
Query, I get the “object reference not set to an instance of an object”
message. I tried fully qualifying the stored proc, but get the same message.
It works when the package runs, just gives that message in design time. Its
probably nothing to worry about, just could do without the message. Any idea
why I get the message or how to get rid of it?

Your help is appreciated


Reply With Quote
  #7  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS - SQL Task - Parse Query Button - 08-22-2008 , 12:34 PM



Hello Cam:
Not sure if this is the cause; you will have to verify it for us:

For any stored procedure whose name starts with "sp_", when the system goes
to run it, regardless of the fact that you qualify that name with database
and schema, it will ALWAYS look in the Master database first, before looking
in the current Db or using the qualified name.

Try renaming the proc to something other than "sp_" and see what you get.

HTH

--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"Cam" wrote:

Quote:
I have an “Execute SQL Task” object in my SQL 2005 Integration Services
Project.

The relative properties are:
ResultSet SingleRow
ConnectionType ADO.NET
Connection MYDB
SQLSourceType Direct Input
SQLStatement sp_determineworkingday
isQueryStoredProc True

sp_determineworkingday is a stored procedure in “MyDb”. When I hit Parse
Query, I get the “object reference not set to an instance of an object”
message. I tried fully qualifying the stored proc, but get the same message.
It works when the package runs, just gives that message in design time. Its
probably nothing to worry about, just could do without the message. Any idea
why I get the message or how to get rid of it?

Your help is appreciated


Reply With Quote
  #8  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS - SQL Task - Parse Query Button - 08-22-2008 , 12:34 PM



Hello Cam:
Not sure if this is the cause; you will have to verify it for us:

For any stored procedure whose name starts with "sp_", when the system goes
to run it, regardless of the fact that you qualify that name with database
and schema, it will ALWAYS look in the Master database first, before looking
in the current Db or using the qualified name.

Try renaming the proc to something other than "sp_" and see what you get.

HTH

--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"Cam" wrote:

Quote:
I have an “Execute SQL Task” object in my SQL 2005 Integration Services
Project.

The relative properties are:
ResultSet SingleRow
ConnectionType ADO.NET
Connection MYDB
SQLSourceType Direct Input
SQLStatement sp_determineworkingday
isQueryStoredProc True

sp_determineworkingday is a stored procedure in “MyDb”. When I hit Parse
Query, I get the “object reference not set to an instance of an object”
message. I tried fully qualifying the stored proc, but get the same message.
It works when the package runs, just gives that message in design time. Its
probably nothing to worry about, just could do without the message. Any idea
why I get the message or how to get rid of it?

Your help is appreciated


Reply With Quote
  #9  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS - SQL Task - Parse Query Button - 08-22-2008 , 12:34 PM



Hello Cam:
Not sure if this is the cause; you will have to verify it for us:

For any stored procedure whose name starts with "sp_", when the system goes
to run it, regardless of the fact that you qualify that name with database
and schema, it will ALWAYS look in the Master database first, before looking
in the current Db or using the qualified name.

Try renaming the proc to something other than "sp_" and see what you get.

HTH

--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"Cam" wrote:

Quote:
I have an “Execute SQL Task” object in my SQL 2005 Integration Services
Project.

The relative properties are:
ResultSet SingleRow
ConnectionType ADO.NET
Connection MYDB
SQLSourceType Direct Input
SQLStatement sp_determineworkingday
isQueryStoredProc True

sp_determineworkingday is a stored procedure in “MyDb”. When I hit Parse
Query, I get the “object reference not set to an instance of an object”
message. I tried fully qualifying the stored proc, but get the same message.
It works when the package runs, just gives that message in design time. Its
probably nothing to worry about, just could do without the message. Any idea
why I get the message or how to get rid of it?

Your help is appreciated


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.