Hi,
Is there a quicker way to get the number of rows in a table other than the
select statement? I did see that there is a table object but there is no
detailed examples in the books online. Thanks for any help.
EllieP.S. I should have mentioned that my select statement selects a recordset of
the entire table and then gets the recordcount.
"Ellie" <nospam@.nospam.net> wrote in message
news:Op3cPtDcGHA.4032@.TK2MSFTNGP02.phx.gbl...
> Hi,
> Is there a quicker way to get the number of rows in a table other than the
> select statement? I did see that there is a table object but there is no
> detailed examples in the books online. Thanks for any help.
> Ellie
>|||try this..
hope this helps..
select rowcnt from sysindexes where indid in(0,1) and id =
object_id('<table_name>')|||If you need to get an accurate count in SQL 2000, use SELECT COUNT(*). This
is more efficient that the recordset method, unless you need the recordset
for other reasons anyway.
The sysindexes query omnibuzz suggested will return an approximate count in
SQL 2000. The count is accurate in SQL 2005.
Hope this helps.
Dan Guzman
SQL Server MVP
"Ellie" <nospam@.nospam.net> wrote in message
news:O7AxfvDcGHA.4896@.TK2MSFTNGP03.phx.gbl...
> P.S. I should have mentioned that my select statement selects a recordset
> of the entire table and then gets the recordcount.
> "Ellie" <nospam@.nospam.net> wrote in message
> news:Op3cPtDcGHA.4032@.TK2MSFTNGP02.phx.gbl...
>|||Thanks Dan. You are right. Thanks for pointing it out.
But I have a doubt here. If auto_update_statistics is on for the database
can we be sure of the rowcount or we still cannot rely on it'
and How do you we make it reliable in SQL Server 2005. By giving the async
statistics update option'
--
"Dan Guzman" wrote:
> If you need to get an accurate count in SQL 2000, use SELECT COUNT(*). Th
is
> is more efficient that the recordset method, unless you need the recordset
> for other reasons anyway.
> The sysindexes query omnibuzz suggested will return an approximate count i
n
> SQL 2000. The count is accurate in SQL 2005.
> --
> Hope this helps.
> Dan Guzman
> SQL Server MVP
> "Ellie" <nospam@.nospam.net> wrote in message
> news:O7AxfvDcGHA.4896@.TK2MSFTNGP03.phx.gbl...
>
>|||You should run DBCC Updateusage before querying on sysindexes table
Madhivanan|||Updating of statistics doesn't have anything to do with having updated rowco
unt in the sysindexes
(or 2005 counterpart) tables/views. These are two separate things.
If auto update statistics would also be the one to update rowcnt, then it wo
uld have to be done
reading all rows, which would be disastrous for a clustered index on a table
with, say 10,000,000
rows.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Omnibuzz" <Omnibuzz@.discussions.microsoft.com> wrote in message
news:F4E4270C-B43B-4B20-81FF-944D88CC3885@.microsoft.com...
> Thanks Dan. You are right. Thanks for pointing it out.
> But I have a doubt here. If auto_update_statistics is on for the database
> can we be sure of the rowcount or we still cannot rely on it'
> and How do you we make it reliable in SQL Server 2005. By giving the async
> statistics update option'
> --
>
>
> "Dan Guzman" wrote:
>|||sp_spaceused @.updateusage=true will correct the row count. However, there
is no telling how long the count will remain good.
In SQL 2005, the engine does a better job of maintaining the sysindexes row
count as changes occur. Theoretically, @.updateusage is not needed to fix
the row count in SQL 2005.
Hope this helps.
Dan Guzman
SQL Server MVP
"Omnibuzz" <Omnibuzz@.discussions.microsoft.com> wrote in message
news:F4E4270C-B43B-4B20-81FF-944D88CC3885@.microsoft.com...
> Thanks Dan. You are right. Thanks for pointing it out.
> But I have a doubt here. If auto_update_statistics is on for the database
> can we be sure of the rowcount or we still cannot rely on it'
> and How do you we make it reliable in SQL Server 2005. By giving the async
> statistics update option'
> --
>
>
> "Dan Guzman" wrote:
>|||I think this explains to me why the Rows count that's displayed in
Enterprise Manager on the Table/Properties screen is sometimes
incorrect. I'm using SQL Server 8.
Are SQL Server 8 and SQL Server 2000 the same version? I'm running on
XP/Pro.
Ron|||Yes, version 8 = SQL 2000 and version 9 = SQL 2005.
Hope this helps.
Dan Guzman
SQL Server MVP
"RonL" <sal_paradise_93@.yahoo.com> wrote in message
news:1146933523.780782.253580@.j33g2000cwa.googlegroups.com...
>I think this explains to me why the Rows count that's displayed in
> Enterprise Manager on the Table/Properties screen is sometimes
> incorrect. I'm using SQL Server 8.
> Are SQL Server 8 and SQL Server 2000 the same version? I'm running on
> XP/Pro.
> Ron
>sql
Showing posts with label object. Show all posts
Showing posts with label object. Show all posts
Friday, March 23, 2012
Friday, March 9, 2012
NullReferenceException: Object Reference not set
Hello,
I have a strange error. When I try to add a table to the reporting
services I sometimes get errors depending on the table. I have one table
that I can view fine, but the other one is giving me a ton of problems. The
problem occurs when I go to add the table. When I select the table that I
want, and I get the error NullReferenceException:Object reference not set.
They are both as/400 files and I can't see any big differences in them. Any
ideas?
Thanks,
BrianWould you like to provide more details?
What exactly are you doing and when this message being shown?
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Brian" <javelin@.amc.com> wrote in message
news:5FC5A491-D69E-47CF-ACD7-47518BDB560F@.microsoft.com...
> Hello,
> I have a strange error. When I try to add a table to the reporting
> services I sometimes get errors depending on the table. I have one table
> that I can view fine, but the other one is giving me a ton of problems.
> The
> problem occurs when I go to add the table. When I select the table that I
> want, and I get the error NullReferenceException:Object reference not set.
> They are both as/400 files and I can't see any big differences in them.
> Any
> ideas?
> Thanks,
> Brian|||I right click and say add table. As soon as add the table I get the error.
"Lev Semenets [MSFT]" wrote:
> Would you like to provide more details?
> What exactly are you doing and when this message being shown?
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Brian" <javelin@.amc.com> wrote in message
> news:5FC5A491-D69E-47CF-ACD7-47518BDB560F@.microsoft.com...
> > Hello,
> > I have a strange error. When I try to add a table to the reporting
> > services I sometimes get errors depending on the table. I have one table
> > that I can view fine, but the other one is giving me a ton of problems.
> > The
> > problem occurs when I go to add the table. When I select the table that I
> > want, and I get the error NullReferenceException:Object reference not set.
> > They are both as/400 files and I can't see any big differences in them.
> > Any
> > ideas?
> >
> > Thanks,
> > Brian
>
>|||AS/400 is not supported by Visual Studio query designer (see
http://support.microsoft.com/default.aspx?scid=kb;en-us;811241 )
Please try using our Generic Query Designer rather than the VS query
designer.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Brian" <javelin@.amc.com> wrote in message
news:AEDBA0E9-9231-453E-9342-1D844A917B22@.microsoft.com...
>I right click and say add table. As soon as add the table I get the error.
> "Lev Semenets [MSFT]" wrote:
>> Would you like to provide more details?
>> What exactly are you doing and when this message being shown?
>> --
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> "Brian" <javelin@.amc.com> wrote in message
>> news:5FC5A491-D69E-47CF-ACD7-47518BDB560F@.microsoft.com...
>> > Hello,
>> > I have a strange error. When I try to add a table to the reporting
>> > services I sometimes get errors depending on the table. I have one
>> > table
>> > that I can view fine, but the other one is giving me a ton of problems.
>> > The
>> > problem occurs when I go to add the table. When I select the table
>> > that I
>> > want, and I get the error NullReferenceException:Object reference not
>> > set.
>> > They are both as/400 files and I can't see any big differences in them.
>> > Any
>> > ideas?
>> >
>> > Thanks,
>> > Brian
>>|||What that means is that while the Visual Studio tool does not explicitly deny you from connecting to
and possibly even using other OLE-DB providers, they have done very little (if any) testing with
those providers and would generally not be willing to take bug fixes for any problems found therein.
In other words, if there are situations where it works, its luck rather than by design.
The GQD was written to help in these scenarios.
--
Thanks.
Donovan R. Smith
Software Test Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
"Brian" <javelin@.amc.com> wrote in message
news:502BF2D9-8401-4C97-A5A0-9F9AE3A97D54@.microsoft.com...
> If you can not use the as/400 how come I can connect to the other as/400
> file?
> "Lev Semenets [MSFT]" wrote:
> > AS/400 is not supported by Visual Studio query designer (see
> > http://support.microsoft.com/default.aspx?scid=kb;en-us;811241 )
> > Please try using our Generic Query Designer rather than the VS query
> > designer.
> >
> > --
> > This posting is provided "AS IS" with no warranties, and confers no rights.
> >
> >
> > "Brian" <javelin@.amc.com> wrote in message
> > news:AEDBA0E9-9231-453E-9342-1D844A917B22@.microsoft.com...
> > >I right click and say add table. As soon as add the table I get the error.
> > >
> > > "Lev Semenets [MSFT]" wrote:
> > >
> > >> Would you like to provide more details?
> > >> What exactly are you doing and when this message being shown?
> > >>
> > >> --
> > >> This posting is provided "AS IS" with no warranties, and confers no
> > >> rights.
> > >>
> > >>
> > >> "Brian" <javelin@.amc.com> wrote in message
> > >> news:5FC5A491-D69E-47CF-ACD7-47518BDB560F@.microsoft.com...
> > >> > Hello,
> > >> > I have a strange error. When I try to add a table to the reporting
> > >> > services I sometimes get errors depending on the table. I have one
> > >> > table
> > >> > that I can view fine, but the other one is giving me a ton of problems.
> > >> > The
> > >> > problem occurs when I go to add the table. When I select the table
> > >> > that I
> > >> > want, and I get the error NullReferenceException:Object reference not
> > >> > set.
> > >> > They are both as/400 files and I can't see any big differences in them.
> > >> > Any
> > >> > ideas?
> > >> >
> > >> > Thanks,
> > >> > Brian
> > >>
> > >>
> > >>
> >
> >
> >|||I went to a msdn event and I was told by the microsoft guy that the reporting
services was made to work on any database, not just sql. It was supposed to
be MS's Crystal Reports. Am I understanding you correctly, are you saying
that this is not true?
Brian
"Donovan R. Smith [MSFT]" wrote:
> What that means is that while the Visual Studio tool does not explicitly deny you from connecting to
> and possibly even using other OLE-DB providers, they have done very little (if any) testing with
> those providers and would generally not be willing to take bug fixes for any problems found therein.
> In other words, if there are situations where it works, its luck rather than by design.
> The GQD was written to help in these scenarios.
> --
> Thanks.
> Donovan R. Smith
> Software Test Lead
> This posting is provided "AS IS" with no warranties, and confers no rights.
> "Brian" <javelin@.amc.com> wrote in message
> news:502BF2D9-8401-4C97-A5A0-9F9AE3A97D54@.microsoft.com...
> > If you can not use the as/400 how come I can connect to the other as/400
> > file?
> >
> > "Lev Semenets [MSFT]" wrote:
> >
> > > AS/400 is not supported by Visual Studio query designer (see
> > > http://support.microsoft.com/default.aspx?scid=kb;en-us;811241 )
> > > Please try using our Generic Query Designer rather than the VS query
> > > designer.
> > >
> > > --
> > > This posting is provided "AS IS" with no warranties, and confers no rights.
> > >
> > >
> > > "Brian" <javelin@.amc.com> wrote in message
> > > news:AEDBA0E9-9231-453E-9342-1D844A917B22@.microsoft.com...
> > > >I right click and say add table. As soon as add the table I get the error.
> > > >
> > > > "Lev Semenets [MSFT]" wrote:
> > > >
> > > >> Would you like to provide more details?
> > > >> What exactly are you doing and when this message being shown?
> > > >>
> > > >> --
> > > >> This posting is provided "AS IS" with no warranties, and confers no
> > > >> rights.
> > > >>
> > > >>
> > > >> "Brian" <javelin@.amc.com> wrote in message
> > > >> news:5FC5A491-D69E-47CF-ACD7-47518BDB560F@.microsoft.com...
> > > >> > Hello,
> > > >> > I have a strange error. When I try to add a table to the reporting
> > > >> > services I sometimes get errors depending on the table. I have one
> > > >> > table
> > > >> > that I can view fine, but the other one is giving me a ton of problems.
> > > >> > The
> > > >> > problem occurs when I go to add the table. When I select the table
> > > >> > that I
> > > >> > want, and I get the error NullReferenceException:Object reference not
> > > >> > set.
> > > >> > They are both as/400 files and I can't see any big differences in them.
> > > >> > Any
> > > >> > ideas?
> > > >> >
> > > >> > Thanks,
> > > >> > Brian
> > > >>
> > > >>
> > > >>
> > >
> > >
> > >
>
>|||Reporting Services certainly does work against AS/400 databases (and Terradata, Oracle, Informix,
MySql, etc...). In this particular case, the Visual Studio Visual Database Tool does not support
visually creating queries against an AS/400. We included this visual query designer since it made
some tasks easier but we also made sure that - in cases where it would not work - we provided an
alternative. That alternative is our Generic Query Designer. It does not provide some of the same
visuals but it does allow you to overcome the other designer's limitations.
Also, keep in mind that this only affects the way in which you design queries. It does not affect
how you design reports based on the results of your queries. Also, the server side of Reporting
Services is extremely flexible is not impacted by this Visual Studio limitations at all.
So what they told you is correct - it will work against any database, not just SQL Server.
--
Thanks.
Donovan R. Smith
Software Test Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
"Brian" <javelin@.amc.com> wrote in message
news:50DCDF13-0C11-4CC2-9026-F42E7FBBDF45@.microsoft.com...
> I went to a msdn event and I was told by the microsoft guy that the reporting
> services was made to work on any database, not just sql. It was supposed to
> be MS's Crystal Reports. Am I understanding you correctly, are you saying
> that this is not true?
> Brian
> "Donovan R. Smith [MSFT]" wrote:
> > What that means is that while the Visual Studio tool does not explicitly deny you from
connecting to
> > and possibly even using other OLE-DB providers, they have done very little (if any) testing with
> > those providers and would generally not be willing to take bug fixes for any problems found
therein.
> > In other words, if there are situations where it works, its luck rather than by design.
> >
> > The GQD was written to help in these scenarios.
> >
> > --
> > Thanks.
> >
> > Donovan R. Smith
> > Software Test Lead
> >
> > This posting is provided "AS IS" with no warranties, and confers no rights.
> >
> > "Brian" <javelin@.amc.com> wrote in message
> > news:502BF2D9-8401-4C97-A5A0-9F9AE3A97D54@.microsoft.com...
> > > If you can not use the as/400 how come I can connect to the other as/400
> > > file?
> > >
> > > "Lev Semenets [MSFT]" wrote:
> > >
> > > > AS/400 is not supported by Visual Studio query designer (see
> > > > http://support.microsoft.com/default.aspx?scid=kb;en-us;811241 )
> > > > Please try using our Generic Query Designer rather than the VS query
> > > > designer.
> > > >
> > > > --
> > > > This posting is provided "AS IS" with no warranties, and confers no rights.
> > > >
> > > >
> > > > "Brian" <javelin@.amc.com> wrote in message
> > > > news:AEDBA0E9-9231-453E-9342-1D844A917B22@.microsoft.com...
> > > > >I right click and say add table. As soon as add the table I get the error.
> > > > >
> > > > > "Lev Semenets [MSFT]" wrote:
> > > > >
> > > > >> Would you like to provide more details?
> > > > >> What exactly are you doing and when this message being shown?
> > > > >>
> > > > >> --
> > > > >> This posting is provided "AS IS" with no warranties, and confers no
> > > > >> rights.
> > > > >>
> > > > >>
> > > > >> "Brian" <javelin@.amc.com> wrote in message
> > > > >> news:5FC5A491-D69E-47CF-ACD7-47518BDB560F@.microsoft.com...
> > > > >> > Hello,
> > > > >> > I have a strange error. When I try to add a table to the reporting
> > > > >> > services I sometimes get errors depending on the table. I have one
> > > > >> > table
> > > > >> > that I can view fine, but the other one is giving me a ton of problems.
> > > > >> > The
> > > > >> > problem occurs when I go to add the table. When I select the table
> > > > >> > that I
> > > > >> > want, and I get the error NullReferenceException:Object reference not
> > > > >> > set.
> > > > >> > They are both as/400 files and I can't see any big differences in them.
> > > > >> > Any
> > > > >> > ideas?
> > > > >> >
> > > > >> > Thanks,
> > > > >> > Brian
> > > > >>
> > > > >>
> > > > >>
> > > >
> > > >
> > > >
> >
> >
> >
I have a strange error. When I try to add a table to the reporting
services I sometimes get errors depending on the table. I have one table
that I can view fine, but the other one is giving me a ton of problems. The
problem occurs when I go to add the table. When I select the table that I
want, and I get the error NullReferenceException:Object reference not set.
They are both as/400 files and I can't see any big differences in them. Any
ideas?
Thanks,
BrianWould you like to provide more details?
What exactly are you doing and when this message being shown?
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Brian" <javelin@.amc.com> wrote in message
news:5FC5A491-D69E-47CF-ACD7-47518BDB560F@.microsoft.com...
> Hello,
> I have a strange error. When I try to add a table to the reporting
> services I sometimes get errors depending on the table. I have one table
> that I can view fine, but the other one is giving me a ton of problems.
> The
> problem occurs when I go to add the table. When I select the table that I
> want, and I get the error NullReferenceException:Object reference not set.
> They are both as/400 files and I can't see any big differences in them.
> Any
> ideas?
> Thanks,
> Brian|||I right click and say add table. As soon as add the table I get the error.
"Lev Semenets [MSFT]" wrote:
> Would you like to provide more details?
> What exactly are you doing and when this message being shown?
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Brian" <javelin@.amc.com> wrote in message
> news:5FC5A491-D69E-47CF-ACD7-47518BDB560F@.microsoft.com...
> > Hello,
> > I have a strange error. When I try to add a table to the reporting
> > services I sometimes get errors depending on the table. I have one table
> > that I can view fine, but the other one is giving me a ton of problems.
> > The
> > problem occurs when I go to add the table. When I select the table that I
> > want, and I get the error NullReferenceException:Object reference not set.
> > They are both as/400 files and I can't see any big differences in them.
> > Any
> > ideas?
> >
> > Thanks,
> > Brian
>
>|||AS/400 is not supported by Visual Studio query designer (see
http://support.microsoft.com/default.aspx?scid=kb;en-us;811241 )
Please try using our Generic Query Designer rather than the VS query
designer.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Brian" <javelin@.amc.com> wrote in message
news:AEDBA0E9-9231-453E-9342-1D844A917B22@.microsoft.com...
>I right click and say add table. As soon as add the table I get the error.
> "Lev Semenets [MSFT]" wrote:
>> Would you like to provide more details?
>> What exactly are you doing and when this message being shown?
>> --
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> "Brian" <javelin@.amc.com> wrote in message
>> news:5FC5A491-D69E-47CF-ACD7-47518BDB560F@.microsoft.com...
>> > Hello,
>> > I have a strange error. When I try to add a table to the reporting
>> > services I sometimes get errors depending on the table. I have one
>> > table
>> > that I can view fine, but the other one is giving me a ton of problems.
>> > The
>> > problem occurs when I go to add the table. When I select the table
>> > that I
>> > want, and I get the error NullReferenceException:Object reference not
>> > set.
>> > They are both as/400 files and I can't see any big differences in them.
>> > Any
>> > ideas?
>> >
>> > Thanks,
>> > Brian
>>|||What that means is that while the Visual Studio tool does not explicitly deny you from connecting to
and possibly even using other OLE-DB providers, they have done very little (if any) testing with
those providers and would generally not be willing to take bug fixes for any problems found therein.
In other words, if there are situations where it works, its luck rather than by design.
The GQD was written to help in these scenarios.
--
Thanks.
Donovan R. Smith
Software Test Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
"Brian" <javelin@.amc.com> wrote in message
news:502BF2D9-8401-4C97-A5A0-9F9AE3A97D54@.microsoft.com...
> If you can not use the as/400 how come I can connect to the other as/400
> file?
> "Lev Semenets [MSFT]" wrote:
> > AS/400 is not supported by Visual Studio query designer (see
> > http://support.microsoft.com/default.aspx?scid=kb;en-us;811241 )
> > Please try using our Generic Query Designer rather than the VS query
> > designer.
> >
> > --
> > This posting is provided "AS IS" with no warranties, and confers no rights.
> >
> >
> > "Brian" <javelin@.amc.com> wrote in message
> > news:AEDBA0E9-9231-453E-9342-1D844A917B22@.microsoft.com...
> > >I right click and say add table. As soon as add the table I get the error.
> > >
> > > "Lev Semenets [MSFT]" wrote:
> > >
> > >> Would you like to provide more details?
> > >> What exactly are you doing and when this message being shown?
> > >>
> > >> --
> > >> This posting is provided "AS IS" with no warranties, and confers no
> > >> rights.
> > >>
> > >>
> > >> "Brian" <javelin@.amc.com> wrote in message
> > >> news:5FC5A491-D69E-47CF-ACD7-47518BDB560F@.microsoft.com...
> > >> > Hello,
> > >> > I have a strange error. When I try to add a table to the reporting
> > >> > services I sometimes get errors depending on the table. I have one
> > >> > table
> > >> > that I can view fine, but the other one is giving me a ton of problems.
> > >> > The
> > >> > problem occurs when I go to add the table. When I select the table
> > >> > that I
> > >> > want, and I get the error NullReferenceException:Object reference not
> > >> > set.
> > >> > They are both as/400 files and I can't see any big differences in them.
> > >> > Any
> > >> > ideas?
> > >> >
> > >> > Thanks,
> > >> > Brian
> > >>
> > >>
> > >>
> >
> >
> >|||I went to a msdn event and I was told by the microsoft guy that the reporting
services was made to work on any database, not just sql. It was supposed to
be MS's Crystal Reports. Am I understanding you correctly, are you saying
that this is not true?
Brian
"Donovan R. Smith [MSFT]" wrote:
> What that means is that while the Visual Studio tool does not explicitly deny you from connecting to
> and possibly even using other OLE-DB providers, they have done very little (if any) testing with
> those providers and would generally not be willing to take bug fixes for any problems found therein.
> In other words, if there are situations where it works, its luck rather than by design.
> The GQD was written to help in these scenarios.
> --
> Thanks.
> Donovan R. Smith
> Software Test Lead
> This posting is provided "AS IS" with no warranties, and confers no rights.
> "Brian" <javelin@.amc.com> wrote in message
> news:502BF2D9-8401-4C97-A5A0-9F9AE3A97D54@.microsoft.com...
> > If you can not use the as/400 how come I can connect to the other as/400
> > file?
> >
> > "Lev Semenets [MSFT]" wrote:
> >
> > > AS/400 is not supported by Visual Studio query designer (see
> > > http://support.microsoft.com/default.aspx?scid=kb;en-us;811241 )
> > > Please try using our Generic Query Designer rather than the VS query
> > > designer.
> > >
> > > --
> > > This posting is provided "AS IS" with no warranties, and confers no rights.
> > >
> > >
> > > "Brian" <javelin@.amc.com> wrote in message
> > > news:AEDBA0E9-9231-453E-9342-1D844A917B22@.microsoft.com...
> > > >I right click and say add table. As soon as add the table I get the error.
> > > >
> > > > "Lev Semenets [MSFT]" wrote:
> > > >
> > > >> Would you like to provide more details?
> > > >> What exactly are you doing and when this message being shown?
> > > >>
> > > >> --
> > > >> This posting is provided "AS IS" with no warranties, and confers no
> > > >> rights.
> > > >>
> > > >>
> > > >> "Brian" <javelin@.amc.com> wrote in message
> > > >> news:5FC5A491-D69E-47CF-ACD7-47518BDB560F@.microsoft.com...
> > > >> > Hello,
> > > >> > I have a strange error. When I try to add a table to the reporting
> > > >> > services I sometimes get errors depending on the table. I have one
> > > >> > table
> > > >> > that I can view fine, but the other one is giving me a ton of problems.
> > > >> > The
> > > >> > problem occurs when I go to add the table. When I select the table
> > > >> > that I
> > > >> > want, and I get the error NullReferenceException:Object reference not
> > > >> > set.
> > > >> > They are both as/400 files and I can't see any big differences in them.
> > > >> > Any
> > > >> > ideas?
> > > >> >
> > > >> > Thanks,
> > > >> > Brian
> > > >>
> > > >>
> > > >>
> > >
> > >
> > >
>
>|||Reporting Services certainly does work against AS/400 databases (and Terradata, Oracle, Informix,
MySql, etc...). In this particular case, the Visual Studio Visual Database Tool does not support
visually creating queries against an AS/400. We included this visual query designer since it made
some tasks easier but we also made sure that - in cases where it would not work - we provided an
alternative. That alternative is our Generic Query Designer. It does not provide some of the same
visuals but it does allow you to overcome the other designer's limitations.
Also, keep in mind that this only affects the way in which you design queries. It does not affect
how you design reports based on the results of your queries. Also, the server side of Reporting
Services is extremely flexible is not impacted by this Visual Studio limitations at all.
So what they told you is correct - it will work against any database, not just SQL Server.
--
Thanks.
Donovan R. Smith
Software Test Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
"Brian" <javelin@.amc.com> wrote in message
news:50DCDF13-0C11-4CC2-9026-F42E7FBBDF45@.microsoft.com...
> I went to a msdn event and I was told by the microsoft guy that the reporting
> services was made to work on any database, not just sql. It was supposed to
> be MS's Crystal Reports. Am I understanding you correctly, are you saying
> that this is not true?
> Brian
> "Donovan R. Smith [MSFT]" wrote:
> > What that means is that while the Visual Studio tool does not explicitly deny you from
connecting to
> > and possibly even using other OLE-DB providers, they have done very little (if any) testing with
> > those providers and would generally not be willing to take bug fixes for any problems found
therein.
> > In other words, if there are situations where it works, its luck rather than by design.
> >
> > The GQD was written to help in these scenarios.
> >
> > --
> > Thanks.
> >
> > Donovan R. Smith
> > Software Test Lead
> >
> > This posting is provided "AS IS" with no warranties, and confers no rights.
> >
> > "Brian" <javelin@.amc.com> wrote in message
> > news:502BF2D9-8401-4C97-A5A0-9F9AE3A97D54@.microsoft.com...
> > > If you can not use the as/400 how come I can connect to the other as/400
> > > file?
> > >
> > > "Lev Semenets [MSFT]" wrote:
> > >
> > > > AS/400 is not supported by Visual Studio query designer (see
> > > > http://support.microsoft.com/default.aspx?scid=kb;en-us;811241 )
> > > > Please try using our Generic Query Designer rather than the VS query
> > > > designer.
> > > >
> > > > --
> > > > This posting is provided "AS IS" with no warranties, and confers no rights.
> > > >
> > > >
> > > > "Brian" <javelin@.amc.com> wrote in message
> > > > news:AEDBA0E9-9231-453E-9342-1D844A917B22@.microsoft.com...
> > > > >I right click and say add table. As soon as add the table I get the error.
> > > > >
> > > > > "Lev Semenets [MSFT]" wrote:
> > > > >
> > > > >> Would you like to provide more details?
> > > > >> What exactly are you doing and when this message being shown?
> > > > >>
> > > > >> --
> > > > >> This posting is provided "AS IS" with no warranties, and confers no
> > > > >> rights.
> > > > >>
> > > > >>
> > > > >> "Brian" <javelin@.amc.com> wrote in message
> > > > >> news:5FC5A491-D69E-47CF-ACD7-47518BDB560F@.microsoft.com...
> > > > >> > Hello,
> > > > >> > I have a strange error. When I try to add a table to the reporting
> > > > >> > services I sometimes get errors depending on the table. I have one
> > > > >> > table
> > > > >> > that I can view fine, but the other one is giving me a ton of problems.
> > > > >> > The
> > > > >> > problem occurs when I go to add the table. When I select the table
> > > > >> > that I
> > > > >> > want, and I get the error NullReferenceException:Object reference not
> > > > >> > set.
> > > > >> > They are both as/400 files and I can't see any big differences in them.
> > > > >> > Any
> > > > >> > ideas?
> > > > >> >
> > > > >> > Thanks,
> > > > >> > Brian
> > > > >>
> > > > >>
> > > > >>
> > > >
> > > >
> > > >
> >
> >
> >
NullReferenceException on an already instanciated object in SQL/C#
Hi, I've posted the following message in the .NET C# MSDN newsgroup, but
there really hasn't been the answer/help that I was expecting. Therefore I a
m
trying the thread here.
--
Hello, I have a perplexing situation. I have the following set of code, whic
h
depends on a scheduling library from GravityBox software (Schedule.NET 2005)
.
Nobody in their forums has been able to help me resolve this problem:
scheduleDomainController1.ConnectionString =
"data source=. \\SQLExpress;database=MyDatabase;Integra
ted Security=True;";
string AccountID = "00000000-0000-0000-0000-000000000000";
try
{
dataSet1 =
scheduleDomainController1.GetScheduleDataSet(AccountID);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message + ex.StackTrace);
}
schedule1.DataSource = dataSet1;
schedule1.Bind();
The line above: dataSet1 =
scheduleDomainController1.GetScheduleDataSet(AccountID);
is always raising an exception: NullReferenceException.
"Object reference not set to an instance of an object"
dataSet1 is instanciated/created at runtime as well as
scheduleDomainController1.
I'm miffed here as to why I'm getting this exception. Any clues?
Thanks
MikeI don't know anything about your object, but when using datasets in VB.Net I
often get this same exception. It usually means that either no data was
returned, or there was a database error while retrieving the data.
"eljainc" <eljainc@.discussions.microsoft.com> wrote in message
news:079F346A-ED63-41DC-810B-36B563A6B3C8@.microsoft.com...
> Hi, I've posted the following message in the .NET C# MSDN newsgroup, but
> there really hasn't been the answer/help that I was expecting. Therefore I
am
> trying the thread here.
> --
> Hello, I have a perplexing situation. I have the following set of code,
which
> depends on a scheduling library from GravityBox software (Schedule.NET
2005).
> Nobody in their forums has been able to help me resolve this problem:
> scheduleDomainController1.ConnectionString =
> "data source=. \\SQLExpress;database=MyDatabase;Integra
ted Security=True;";
> string AccountID = "00000000-0000-0000-0000-000000000000";
> try
> {
> dataSet1 =
> scheduleDomainController1.GetScheduleDataSet(AccountID);
> }
> catch (Exception ex)
> {
> MessageBox.Show(ex.Message + ex.StackTrace);
> }
> schedule1.DataSource = dataSet1;
> schedule1.Bind();
>
> The line above: dataSet1 =
> scheduleDomainController1.GetScheduleDataSet(AccountID);
> is always raising an exception: NullReferenceException.
> "Object reference not set to an instance of an object"
> dataSet1 is instanciated/created at runtime as well as
> scheduleDomainController1.
> I'm miffed here as to why I'm getting this exception. Any clues?
> Thanks
> Mike|||Mike,
Can you post the complete stack trace of that exception? That would
help me determine whether the exception is generated from the current
method or from the GetScheduleDataSet method.
Brian
eljainc wrote:
> Hi, I've posted the following message in the .NET C# MSDN newsgroup, but
> there really hasn't been the answer/help that I was expecting. Therefore I
am
> trying the thread here.
> --
> Hello, I have a perplexing situation. I have the following set of code, wh
ich
> depends on a scheduling library from GravityBox software (Schedule.NET 200
5).
> Nobody in their forums has been able to help me resolve this problem:
> scheduleDomainController1.ConnectionString =
> "data source=. \\SQLExpress;database=MyDatabase;Integra
ted Security=True;";
> string AccountID = "00000000-0000-0000-0000-000000000000";
> try
> {
> dataSet1 =
> scheduleDomainController1.GetScheduleDataSet(AccountID);
> }
> catch (Exception ex)
> {
> MessageBox.Show(ex.Message + ex.StackTrace);
> }
> schedule1.DataSource = dataSet1;
> schedule1.Bind();
>
> The line above: dataSet1 =
> scheduleDomainController1.GetScheduleDataSet(AccountID);
> is always raising an exception: NullReferenceException.
> "Object reference not set to an instance of an object"
> dataSet1 is instanciated/created at runtime as well as
> scheduleDomainController1.
> I'm miffed here as to why I'm getting this exception. Any clues?
> Thanks
> Mike|||Is this sceduledomaincont1 an instance?
Juz for test
can you add this before the assignment like this?
dataSet1 = new DataSet();
dataSet1 =
> scheduleDomainController1.GetScheduleDataSet(AccountID);
--
there really hasn't been the answer/help that I was expecting. Therefore I a
m
trying the thread here.
--
Hello, I have a perplexing situation. I have the following set of code, whic
h
depends on a scheduling library from GravityBox software (Schedule.NET 2005)
.
Nobody in their forums has been able to help me resolve this problem:
scheduleDomainController1.ConnectionString =
"data source=. \\SQLExpress;database=MyDatabase;Integra
ted Security=True;";
string AccountID = "00000000-0000-0000-0000-000000000000";
try
{
dataSet1 =
scheduleDomainController1.GetScheduleDataSet(AccountID);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message + ex.StackTrace);
}
schedule1.DataSource = dataSet1;
schedule1.Bind();
The line above: dataSet1 =
scheduleDomainController1.GetScheduleDataSet(AccountID);
is always raising an exception: NullReferenceException.
"Object reference not set to an instance of an object"
dataSet1 is instanciated/created at runtime as well as
scheduleDomainController1.
I'm miffed here as to why I'm getting this exception. Any clues?
Thanks
MikeI don't know anything about your object, but when using datasets in VB.Net I
often get this same exception. It usually means that either no data was
returned, or there was a database error while retrieving the data.
"eljainc" <eljainc@.discussions.microsoft.com> wrote in message
news:079F346A-ED63-41DC-810B-36B563A6B3C8@.microsoft.com...
> Hi, I've posted the following message in the .NET C# MSDN newsgroup, but
> there really hasn't been the answer/help that I was expecting. Therefore I
am
> trying the thread here.
> --
> Hello, I have a perplexing situation. I have the following set of code,
which
> depends on a scheduling library from GravityBox software (Schedule.NET
2005).
> Nobody in their forums has been able to help me resolve this problem:
> scheduleDomainController1.ConnectionString =
> "data source=. \\SQLExpress;database=MyDatabase;Integra
ted Security=True;";
> string AccountID = "00000000-0000-0000-0000-000000000000";
> try
> {
> dataSet1 =
> scheduleDomainController1.GetScheduleDataSet(AccountID);
> }
> catch (Exception ex)
> {
> MessageBox.Show(ex.Message + ex.StackTrace);
> }
> schedule1.DataSource = dataSet1;
> schedule1.Bind();
>
> The line above: dataSet1 =
> scheduleDomainController1.GetScheduleDataSet(AccountID);
> is always raising an exception: NullReferenceException.
> "Object reference not set to an instance of an object"
> dataSet1 is instanciated/created at runtime as well as
> scheduleDomainController1.
> I'm miffed here as to why I'm getting this exception. Any clues?
> Thanks
> Mike|||Mike,
Can you post the complete stack trace of that exception? That would
help me determine whether the exception is generated from the current
method or from the GetScheduleDataSet method.
Brian
eljainc wrote:
> Hi, I've posted the following message in the .NET C# MSDN newsgroup, but
> there really hasn't been the answer/help that I was expecting. Therefore I
am
> trying the thread here.
> --
> Hello, I have a perplexing situation. I have the following set of code, wh
ich
> depends on a scheduling library from GravityBox software (Schedule.NET 200
5).
> Nobody in their forums has been able to help me resolve this problem:
> scheduleDomainController1.ConnectionString =
> "data source=. \\SQLExpress;database=MyDatabase;Integra
ted Security=True;";
> string AccountID = "00000000-0000-0000-0000-000000000000";
> try
> {
> dataSet1 =
> scheduleDomainController1.GetScheduleDataSet(AccountID);
> }
> catch (Exception ex)
> {
> MessageBox.Show(ex.Message + ex.StackTrace);
> }
> schedule1.DataSource = dataSet1;
> schedule1.Bind();
>
> The line above: dataSet1 =
> scheduleDomainController1.GetScheduleDataSet(AccountID);
> is always raising an exception: NullReferenceException.
> "Object reference not set to an instance of an object"
> dataSet1 is instanciated/created at runtime as well as
> scheduleDomainController1.
> I'm miffed here as to why I'm getting this exception. Any clues?
> Thanks
> Mike|||Is this sceduledomaincont1 an instance?
Juz for test
can you add this before the assignment like this?
dataSet1 = new DataSet();
dataSet1 =
> scheduleDomainController1.GetScheduleDataSet(AccountID);
--
Subscribe to:
Posts (Atom)