Showing posts with label box. Show all posts
Showing posts with label box. Show all posts

Thursday, March 29, 2012

Cannot export in SSRS 2005

Everytime I try to export a report I get a pop up box to RUN/SAVE/CANCEL Reserved.ReportViewWebControl.axd. Cannot seem to find any relevant issues with this on the web. I lower the security settings on IE and still no diffenrence. Seems to happen with every export type except XML. Any help is greatly appreciated.

PabloThis forum is on .Net Framework (CLR) integration in SQL Server 2005 that allows you to write routines in CLR languages like c#, VB.NET etc.
I suggest posting your question in SQL Server Reporting Services forum to get a faster response.

Thanks,
-Vineet.

Sunday, March 25, 2012

Cannot display image from Database

Hi,
When i try to display an image from the database,it does not give any error
and does not show the image either. It does not show the box also which has
the cross sign. On seeing the report it seems there is no image eventhough
i have an image from the db on the report.
Please help.
Thanx,
Warm Regards,
Kalpnacan you list down the steps that you performed to display an image?
"kalpna" <kalpna.prakash@.grapecity.com> wrote in message
news:%23jvG%23G4rEHA.3868@.TK2MSFTNGP15.phx.gbl...
> Hi,
> When i try to display an image from the database,it does not give any
> error
> and does not show the image either. It does not show the box also which
> has
> the cross sign. On seeing the report it seems there is no image
> eventhough
> i have an image from the db on the report.
> Please help.
> Thanx,
> Warm Regards,
> Kalpna
>|||i drag an image object from the toolbox
Then in the image wizard that pops up i select image from Database and set
the datset that has the image item from the database and the corresponding
field and the mime type(tried with all the available mime types) and then
say OK and finish.
When i preview /view the report nothing is shown.It does not even show the
image box with a cross or something like that.
Any help wud be of great use.
Thanx,
Kalpna
"avnrao" <avn@.newsgroups.com> wrote in message
news:Ofay1n5rEHA.868@.TK2MSFTNGP12.phx.gbl...
> can you list down the steps that you performed to display an image?
> "kalpna" <kalpna.prakash@.grapecity.com> wrote in message
> news:%23jvG%23G4rEHA.3868@.TK2MSFTNGP15.phx.gbl...
> > Hi,
> >
> > When i try to display an image from the database,it does not give any
> > error
> > and does not show the image either. It does not show the box also which
> > has
> > the cross sign. On seeing the report it seems there is no image
> > eventhough
> > i have an image from the db on the report.
> >
> > Please help.
> >
> > Thanx,
> > Warm Regards,
> > Kalpna
> >
> >
>|||Any solution to this?
I have the same problem :( No images are served from the database allthough
I have verified that they are there...
"kalpna" wrote:
> i drag an image object from the toolbox
> Then in the image wizard that pops up i select image from Database and set
> the datset that has the image item from the database and the corresponding
> field and the mime type(tried with all the available mime types) and then
> say OK and finish.
> When i preview /view the report nothing is shown.It does not even show the
> image box with a cross or something like that.
> Any help wud be of great use.
> Thanx,
> Kalpna
> "avnrao" <avn@.newsgroups.com> wrote in message
> news:Ofay1n5rEHA.868@.TK2MSFTNGP12.phx.gbl...
> > can you list down the steps that you performed to display an image?
> >
> > "kalpna" <kalpna.prakash@.grapecity.com> wrote in message
> > news:%23jvG%23G4rEHA.3868@.TK2MSFTNGP15.phx.gbl...
> > > Hi,
> > >
> > > When i try to display an image from the database,it does not give any
> > > error
> > > and does not show the image either. It does not show the box also which
> > > has
> > > the cross sign. On seeing the report it seems there is no image
> > > eventhough
> > > i have an image from the db on the report.
> > >
> > > Please help.
> > >
> > > Thanx,
> > > Warm Regards,
> > > Kalpna
> > >
> > >
> >
> >
>
>|||This sounds like the images are stored as OLE images in the database (e.g.
Access would convert images into OLE images). You can try the following
expression to get rid of the OLE chunk:
=System.Convert.FromBase64String(Mid(System.Convert.ToBase64String(Fields!Pi
cture.Value), 105))
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"alfgaba" <alfgaba@.discussions.microsoft.com> wrote in message
news:C49DC28A-BEA6-4827-AC27-5025DED46EF2@.microsoft.com...
> Any solution to this?
> I have the same problem :( No images are served from the database
allthough
> I have verified that they are there...
> "kalpna" wrote:
> > i drag an image object from the toolbox
> >
> > Then in the image wizard that pops up i select image from Database and
set
> > the datset that has the image item from the database and the
corresponding
> > field and the mime type(tried with all the available mime types) and
then
> > say OK and finish.
> >
> > When i preview /view the report nothing is shown.It does not even show
the
> > image box with a cross or something like that.
> >
> > Any help wud be of great use.
> >
> > Thanx,
> >
> > Kalpna
> >
> > "avnrao" <avn@.newsgroups.com> wrote in message
> > news:Ofay1n5rEHA.868@.TK2MSFTNGP12.phx.gbl...
> > > can you list down the steps that you performed to display an image?
> > >
> > > "kalpna" <kalpna.prakash@.grapecity.com> wrote in message
> > > news:%23jvG%23G4rEHA.3868@.TK2MSFTNGP15.phx.gbl...
> > > > Hi,
> > > >
> > > > When i try to display an image from the database,it does not give
any
> > > > error
> > > > and does not show the image either. It does not show the box also
which
> > > > has
> > > > the cross sign. On seeing the report it seems there is no image
> > > > eventhough
> > > > i have an image from the db on the report.
> > > >
> > > > Please help.
> > > >
> > > > Thanx,
> > > > Warm Regards,
> > > > Kalpna
> > > >
> > > >
> > >
> > >
> >
> >
> >|||I am having the same problem. I tried the expression below but it doesn't
work for me. All of my images are inserted with an Access Data Project to SQL
Image fields. Some are BMP files, JPG files, or even AutoCAD files. Access
displays them correctly, but Reporting Services will not. Is there any other
way to strip away the OLE junk and get the image placeholder to display? Any
help is greatly appreciated.
"Robert Bruckner [MSFT]" wrote:
> This sounds like the images are stored as OLE images in the database (e.g.
> Access would convert images into OLE images). You can try the following
> expression to get rid of the OLE chunk:
> =System.Convert.FromBase64String(Mid(System.Convert.ToBase64String(Fields!Pi
> cture.Value), 105))
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
> "alfgaba" <alfgaba@.discussions.microsoft.com> wrote in message
> news:C49DC28A-BEA6-4827-AC27-5025DED46EF2@.microsoft.com...
> > Any solution to this?
> >
> > I have the same problem :( No images are served from the database
> allthough
> > I have verified that they are there...
> >
> > "kalpna" wrote:
> >
> > > i drag an image object from the toolbox
> > >
> > > Then in the image wizard that pops up i select image from Database and
> set
> > > the datset that has the image item from the database and the
> corresponding
> > > field and the mime type(tried with all the available mime types) and
> then
> > > say OK and finish.
> > >
> > > When i preview /view the report nothing is shown.It does not even show
> the
> > > image box with a cross or something like that.
> > >
> > > Any help wud be of great use.
> > >
> > > Thanx,
> > >
> > > Kalpna
> > >
> > > "avnrao" <avn@.newsgroups.com> wrote in message
> > > news:Ofay1n5rEHA.868@.TK2MSFTNGP12.phx.gbl...
> > > > can you list down the steps that you performed to display an image?
> > > >
> > > > "kalpna" <kalpna.prakash@.grapecity.com> wrote in message
> > > > news:%23jvG%23G4rEHA.3868@.TK2MSFTNGP15.phx.gbl...
> > > > > Hi,
> > > > >
> > > > > When i try to display an image from the database,it does not give
> any
> > > > > error
> > > > > and does not show the image either. It does not show the box also
> which
> > > > > has
> > > > > the cross sign. On seeing the report it seems there is no image
> > > > > eventhough
> > > > > i have an image from the db on the report.
> > > > >
> > > > > Please help.
> > > > >
> > > > > Thanx,
> > > > > Warm Regards,
> > > > > Kalpna
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> > >
>
>|||That doesn't help. I get exactly the same thing as before -- red x in little
square indicating no source for the image. (I am trying to display a Visio,
AutoCAD, or other OLE object drawing).
What should MIMEType be set to?
-prophead
"Robert Bruckner [MSFT]" wrote:
> This sounds like the images are stored as OLE images in the database (e.g.
> Access would convert images into OLE images). You can try the following
> expression to get rid of the OLE chunk:
> =System.Convert.FromBase64String(Mid(System.Convert.ToBase64String(Fields!Pi
> cture.Value), 105))
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
> "alfgaba" <alfgaba@.discussions.microsoft.com> wrote in message
> news:C49DC28A-BEA6-4827-AC27-5025DED46EF2@.microsoft.com...
> > Any solution to this?
> >
> > I have the same problem :( No images are served from the database
> allthough
> > I have verified that they are there...
> >
> > "kalpna" wrote:
> >
> > > i drag an image object from the toolbox
> > >
> > > Then in the image wizard that pops up i select image from Database and
> set
> > > the datset that has the image item from the database and the
> corresponding
> > > field and the mime type(tried with all the available mime types) and
> then
> > > say OK and finish.
> > >
> > > When i preview /view the report nothing is shown.It does not even show
> the
> > > image box with a cross or something like that.
> > >
> > > Any help wud be of great use.
> > >
> > > Thanx,
> > >
> > > Kalpna
> > >
> > > "avnrao" <avn@.newsgroups.com> wrote in message
> > > news:Ofay1n5rEHA.868@.TK2MSFTNGP12.phx.gbl...
> > > > can you list down the steps that you performed to display an image?
> > > >
> > > > "kalpna" <kalpna.prakash@.grapecity.com> wrote in message
> > > > news:%23jvG%23G4rEHA.3868@.TK2MSFTNGP15.phx.gbl...
> > > > > Hi,
> > > > >
> > > > > When i try to display an image from the database,it does not give
> any
> > > > > error
> > > > > and does not show the image either. It does not show the box also
> which
> > > > > has
> > > > > the cross sign. On seeing the report it seems there is no image
> > > > > eventhough
> > > > > i have an image from the db on the report.
> > > > >
> > > > > Please help.
> > > > >
> > > > > Thanx,
> > > > > Warm Regards,
> > > > > Kalpna
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> > >
>
>|||The supported image types in RS are listed in the "Remarks" section of this
MSDN page:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/RSRDL/htm/rsp_ref_rdl_elements_fp_5er8.asp
RS does not support any arbitrary OLE object drawing, because we need to be
able to export images correctly to various output formats like PDF etc.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"prophead" <prophead@.discussions.microsoft.com> wrote in message
news:67A353DB-16BD-4910-9B68-CF6E19053FD6@.microsoft.com...
> That doesn't help. I get exactly the same thing as before -- red x in
> little
> square indicating no source for the image. (I am trying to display a
> Visio,
> AutoCAD, or other OLE object drawing).
> What should MIMEType be set to?
> -prophead
> "Robert Bruckner [MSFT]" wrote:
>> This sounds like the images are stored as OLE images in the database
>> (e.g.
>> Access would convert images into OLE images). You can try the following
>> expression to get rid of the OLE chunk:
>> =System.Convert.FromBase64String(Mid(System.Convert.ToBase64String(Fields!Pi
>> cture.Value), 105))
>> --
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> "alfgaba" <alfgaba@.discussions.microsoft.com> wrote in message
>> news:C49DC28A-BEA6-4827-AC27-5025DED46EF2@.microsoft.com...
>> > Any solution to this?
>> >
>> > I have the same problem :( No images are served from the database
>> allthough
>> > I have verified that they are there...
>> >
>> > "kalpna" wrote:
>> >
>> > > i drag an image object from the toolbox
>> > >
>> > > Then in the image wizard that pops up i select image from Database
>> > > and
>> set
>> > > the datset that has the image item from the database and the
>> corresponding
>> > > field and the mime type(tried with all the available mime types) and
>> then
>> > > say OK and finish.
>> > >
>> > > When i preview /view the report nothing is shown.It does not even
>> > > show
>> the
>> > > image box with a cross or something like that.
>> > >
>> > > Any help wud be of great use.
>> > >
>> > > Thanx,
>> > >
>> > > Kalpna
>> > >
>> > > "avnrao" <avn@.newsgroups.com> wrote in message
>> > > news:Ofay1n5rEHA.868@.TK2MSFTNGP12.phx.gbl...
>> > > > can you list down the steps that you performed to display an image?
>> > > >
>> > > > "kalpna" <kalpna.prakash@.grapecity.com> wrote in message
>> > > > news:%23jvG%23G4rEHA.3868@.TK2MSFTNGP15.phx.gbl...
>> > > > > Hi,
>> > > > >
>> > > > > When i try to display an image from the database,it does not give
>> any
>> > > > > error
>> > > > > and does not show the image either. It does not show the box also
>> which
>> > > > > has
>> > > > > the cross sign. On seeing the report it seems there is no image
>> > > > > eventhough
>> > > > > i have an image from the db on the report.
>> > > > >
>> > > > > Please help.
>> > > > >
>> > > > > Thanx,
>> > > > > Warm Regards,
>> > > > > Kalpna
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > >
>> > >
>> > >
>>|||Thanks, Robert.
Is there a way to specify an ActiveX container to be deployed and used for
other types of OLE objects stored in the db, or even as files on the server
(using Source = External) in the RS 2000 report design?
-prophead
"Robert Bruckner [MSFT]" wrote:
> The supported image types in RS are listed in the "Remarks" section of this
> MSDN page:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/RSRDL/htm/rsp_ref_rdl_elements_fp_5er8.asp
> RS does not support any arbitrary OLE object drawing, because we need to be
> able to export images correctly to various output formats like PDF etc.
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "prophead" <prophead@.discussions.microsoft.com> wrote in message
> news:67A353DB-16BD-4910-9B68-CF6E19053FD6@.microsoft.com...
> > That doesn't help. I get exactly the same thing as before -- red x in
> > little
> > square indicating no source for the image. (I am trying to display a
> > Visio,
> > AutoCAD, or other OLE object drawing).
> >
> > What should MIMEType be set to?
> >
> > -prophead
> >
> > "Robert Bruckner [MSFT]" wrote:
> >
> >> This sounds like the images are stored as OLE images in the database
> >> (e.g.
> >> Access would convert images into OLE images). You can try the following
> >> expression to get rid of the OLE chunk:
> >> =System.Convert.FromBase64String(Mid(System.Convert.ToBase64String(Fields!Pi
> >> cture.Value), 105))
> >>
> >> --
> >> This posting is provided "AS IS" with no warranties, and confers no
> >> rights.
> >>
> >> "alfgaba" <alfgaba@.discussions.microsoft.com> wrote in message
> >> news:C49DC28A-BEA6-4827-AC27-5025DED46EF2@.microsoft.com...
> >> > Any solution to this?
> >> >
> >> > I have the same problem :( No images are served from the database
> >> allthough
> >> > I have verified that they are there...
> >> >
> >> > "kalpna" wrote:
> >> >
> >> > > i drag an image object from the toolbox
> >> > >
> >> > > Then in the image wizard that pops up i select image from Database
> >> > > and
> >> set
> >> > > the datset that has the image item from the database and the
> >> corresponding
> >> > > field and the mime type(tried with all the available mime types) and
> >> then
> >> > > say OK and finish.
> >> > >
> >> > > When i preview /view the report nothing is shown.It does not even
> >> > > show
> >> the
> >> > > image box with a cross or something like that.
> >> > >
> >> > > Any help wud be of great use.
> >> > >
> >> > > Thanx,
> >> > >
> >> > > Kalpna
> >> > >
> >> > > "avnrao" <avn@.newsgroups.com> wrote in message
> >> > > news:Ofay1n5rEHA.868@.TK2MSFTNGP12.phx.gbl...
> >> > > > can you list down the steps that you performed to display an image?
> >> > > >
> >> > > > "kalpna" <kalpna.prakash@.grapecity.com> wrote in message
> >> > > > news:%23jvG%23G4rEHA.3868@.TK2MSFTNGP15.phx.gbl...
> >> > > > > Hi,
> >> > > > >
> >> > > > > When i try to display an image from the database,it does not give
> >> any
> >> > > > > error
> >> > > > > and does not show the image either. It does not show the box also
> >> which
> >> > > > > has
> >> > > > > the cross sign. On seeing the report it seems there is no image
> >> > > > > eventhough
> >> > > > > i have an image from the db on the report.
> >> > > > >
> >> > > > > Please help.
> >> > > > >
> >> > > > > Thanx,
> >> > > > > Warm Regards,
> >> > > > > Kalpna
> >> > > > >
> >> > > > >
> >> > > >
> >> > > >
> >> > >
> >> > >
> >> > >
> >>
> >>
> >>
>
>|||You cannot use ActiveX directly - you would need to go through a custom
assembly and convert the data into an image format RS can work with.
For external server files we allow only the given list of MimeTypes - also
for security reasons. Another reason is that when you create a history
snapshot, you would not only expect to get an exact snapshot of your data,
but also an exact snapshot of external images that were available at
snapshot creation time. So, when you render the history snapshot years
later, you still get *exactly* the same data and images across the supported
output formats.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"prophead" <prophead@.discussions.microsoft.com> wrote in message
news:B92199A9-BAA7-4CC4-97BD-11FE05AA2A53@.microsoft.com...
> Thanks, Robert.
> Is there a way to specify an ActiveX container to be deployed and used for
> other types of OLE objects stored in the db, or even as files on the
> server
> (using Source = External) in the RS 2000 report design?
> -prophead
> "Robert Bruckner [MSFT]" wrote:
>> The supported image types in RS are listed in the "Remarks" section of
>> this
>> MSDN page:
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/RSRDL/htm/rsp_ref_rdl_elements_fp_5er8.asp
>> RS does not support any arbitrary OLE object drawing, because we need to
>> be
>> able to export images correctly to various output formats like PDF etc.
>> --
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> "prophead" <prophead@.discussions.microsoft.com> wrote in message
>> news:67A353DB-16BD-4910-9B68-CF6E19053FD6@.microsoft.com...
>> > That doesn't help. I get exactly the same thing as before -- red x in
>> > little
>> > square indicating no source for the image. (I am trying to display a
>> > Visio,
>> > AutoCAD, or other OLE object drawing).
>> >
>> > What should MIMEType be set to?
>> >
>> > -prophead
>> >
>> > "Robert Bruckner [MSFT]" wrote:
>> >
>> >> This sounds like the images are stored as OLE images in the database
>> >> (e.g.
>> >> Access would convert images into OLE images). You can try the
>> >> following
>> >> expression to get rid of the OLE chunk:
>> >> =System.Convert.FromBase64String(Mid(System.Convert.ToBase64String(Fields!Pi
>> >> cture.Value), 105))
>> >>
>> >> --
>> >> This posting is provided "AS IS" with no warranties, and confers no
>> >> rights.
>> >>
>> >> "alfgaba" <alfgaba@.discussions.microsoft.com> wrote in message
>> >> news:C49DC28A-BEA6-4827-AC27-5025DED46EF2@.microsoft.com...
>> >> > Any solution to this?
>> >> >
>> >> > I have the same problem :( No images are served from the database
>> >> allthough
>> >> > I have verified that they are there...
>> >> >
>> >> > "kalpna" wrote:
>> >> >
>> >> > > i drag an image object from the toolbox
>> >> > >
>> >> > > Then in the image wizard that pops up i select image from Database
>> >> > > and
>> >> set
>> >> > > the datset that has the image item from the database and the
>> >> corresponding
>> >> > > field and the mime type(tried with all the available mime types)
>> >> > > and
>> >> then
>> >> > > say OK and finish.
>> >> > >
>> >> > > When i preview /view the report nothing is shown.It does not even
>> >> > > show
>> >> the
>> >> > > image box with a cross or something like that.
>> >> > >
>> >> > > Any help wud be of great use.
>> >> > >
>> >> > > Thanx,
>> >> > >
>> >> > > Kalpna
>> >> > >
>> >> > > "avnrao" <avn@.newsgroups.com> wrote in message
>> >> > > news:Ofay1n5rEHA.868@.TK2MSFTNGP12.phx.gbl...
>> >> > > > can you list down the steps that you performed to display an
>> >> > > > image?
>> >> > > >
>> >> > > > "kalpna" <kalpna.prakash@.grapecity.com> wrote in message
>> >> > > > news:%23jvG%23G4rEHA.3868@.TK2MSFTNGP15.phx.gbl...
>> >> > > > > Hi,
>> >> > > > >
>> >> > > > > When i try to display an image from the database,it does not
>> >> > > > > give
>> >> any
>> >> > > > > error
>> >> > > > > and does not show the image either. It does not show the box
>> >> > > > > also
>> >> which
>> >> > > > > has
>> >> > > > > the cross sign. On seeing the report it seems there is no
>> >> > > > > image
>> >> > > > > eventhough
>> >> > > > > i have an image from the db on the report.
>> >> > > > >
>> >> > > > > Please help.
>> >> > > > >
>> >> > > > > Thanx,
>> >> > > > > Warm Regards,
>> >> > > > > Kalpna
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > > >
>> >> > >
>> >> > >
>> >> > >
>> >>
>> >>
>> >>
>>

Tuesday, March 20, 2012

Cannot create user on Report Server 2005

Hi, we installed SQL Server 2005 & Reporting Services on a box that had been
running 2000.
I launched the reports website.
When I try to do New System Role Assignment, I type in a domain user and
select a role and click OK, nothing at all happens. No error message, no
response, nothing.
Does anyone have any idea what might be going on?What I tend to do is create a local group and add my domain users to the
local group. Two things to try. Did you put the domain in front of the user?
I.e. MyDomain\Username
Second, are you in the local administrators group. Perhaps you don't have
rights to be doing this.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"RebeccaTS" <RebeccaTS@.discussions.microsoft.com> wrote in message
news:730D7944-B019-4E7A-8B9C-EA7EEB33486A@.microsoft.com...
> Hi, we installed SQL Server 2005 & Reporting Services on a box that had
> been
> running 2000.
> I launched the reports website.
> When I try to do New System Role Assignment, I type in a domain user and
> select a role and click OK, nothing at all happens. No error message, no
> response, nothing.
> Does anyone have any idea what might be going on?

Cannot create new Subscription?

Hi,

I recently got the September CTP Enterprise version and installed it on box with Windows Server2003 os. When I go to a report and try to create a new subscription by going to SQL Server management studio, that option is disabled for me.

I have already setup the email configurations and started the sql server agent.

Anyone has ideas why this should happen?
Most likely, the credentials for the report aren't stored. What do you see in Report Manager? The same?|||

I'm having a similar problem where:

- "New Subscription" is greyed out in Server Management Studio.

- Subscribing via the browser, even as the Content Manager, allows you to fill in the form for the subscription but then reports the following error

"The current action cannot be completed because the user data source credentials that are required to execute this report are not stored in the report server database. (rsInvalidDataSourceCredentialSetting)"

Any suggestions?

Monday, March 19, 2012

Cannot create new Subscription?

Hi,

I recently got the September CTP Enterprise version and installed it on box with Windows Server2003 os. When I go to a report and try to create a new subscription by going to SQL Server management studio, that option is disabled for me.

I have already setup the email configurations and started the sql server agent.

Anyone has ideas why this should happen?
Most likely, the credentials for the report aren't stored. What do you see in Report Manager? The same?|||

I'm having a similar problem where:

- "New Subscription" is greyed out in Server Management Studio.

- Subscribing via the browser, even as the Content Manager, allows you to fill in the form for the subscription but then reports the following error

"The current action cannot be completed because the user data source credentials that are required to execute this report are not stored in the report server database. (rsInvalidDataSourceCredentialSetting)"

Any suggestions?

Thursday, March 8, 2012

Cannot create a row of size 8075 which is greater than... (-214721

Hello all,
I have some VB6 code using ADO 2.5 running on a Windows 2003 Server box that
sometimes fails when trying to update an ADO field type of adLongVarChar
(stored as a text column in a SQL Server 2000 database, 6.5 compatiblity
mode) and produces the following error:
Error Number: -21472179
Error Description: Cannot create a row of size 8075 which is greater than
the allowable maximum of 8060.
The error seems to be occurring when we try to update the field with a large
string value. The strange thing is that it works without producing an error
sometimes. The reason I say this is that I can see some entries in my table
that have a DATALENGTH of the text field much larger than some of the ones
that are failing.
My VB6/ADO code looks like so:
'inserts a new record into a table with default values
sql = "call mydatadatable_insert "
Set objRecordset = New ADODB.Recordset
objRecordset.CursorLocation = adUseClient
Call objRecordset.Open(sql, objConnection, adOpenKeyset, adLockOptimistic)
myID= objRecordset.Fields.Item("ID").Value
objRecordset.Close
Set objRecordset = Nothing
'loads a 23 KB xml file
sXML = ReadFile("c:\temp\test.xml")
'...more processing here (non database)
sql = "exec mydatadatable_update" & cstr(myID)
Set objRecordset = New ADODB.Recordset
objRecordset.CursorLocation = adUseClient
Call objRecordset.Open(sql, objConnection, adOpenKeyset, adLockOptimistic)
'this is the problem area!!
objRecordset.Fields("FileTxt").Value = sXML
objRecordset.Update
objRecordset.Close
Set objRecordset = Nothing
I was thinking it might have something to do with the reference to ADO 2.5,
rather than 2.8 which is what comes with Windows Server 2003. But again, it
seems to be working some of the time.
I found this article on Microsoft's site:
http://msdn.microsoft.com/library/d...serr_1_20hd.asp
Any help would be greatly appreciated!!!
Thanks in advance!
Brian McCulloughHi,
After reading your post I have one question.
Is XML file always the same size?
My opinion is that sometimes XML file (or string) is small enough to fit
into varchar (which I think you're using for data-type) and sometimes it os
too large (8075).
You could generaly solve the problem with using text or ntext as a datatype
in the affected column.
Danijel
"brianpmccullough" <bmccullough11@.comcast.net> wrote in message
news:593E87AE-3407-4ACB-9908-7F5A8969EAB8@.microsoft.com...
> Hello all,
> I have some VB6 code using ADO 2.5 running on a Windows 2003 Server box
> that
> sometimes fails when trying to update an ADO field type of adLongVarChar
> (stored as a text column in a SQL Server 2000 database, 6.5 compatiblity
> mode) and produces the following error:
> Error Number: -21472179
> Error Description: Cannot create a row of size 8075 which is greater than
> the allowable maximum of 8060.
> The error seems to be occurring when we try to update the field with a
> large
> string value. The strange thing is that it works without producing an
> error
> sometimes. The reason I say this is that I can see some entries in my
> table
> that have a DATALENGTH of the text field much larger than some of the ones
> that are failing.
> My VB6/ADO code looks like so:
> 'inserts a new record into a table with default values
> sql = "call mydatadatable_insert "
> Set objRecordset = New ADODB.Recordset
> objRecordset.CursorLocation = adUseClient
> Call objRecordset.Open(sql, objConnection, adOpenKeyset,
> adLockOptimistic)
> myID= objRecordset.Fields.Item("ID").Value
> objRecordset.Close
> Set objRecordset = Nothing
> 'loads a 23 KB xml file
> sXML = ReadFile("c:\temp\test.xml")
> '...more processing here (non database)
> sql = "exec mydatadatable_update" & cstr(myID)
> Set objRecordset = New ADODB.Recordset
> objRecordset.CursorLocation = adUseClient
> Call objRecordset.Open(sql, objConnection, adOpenKeyset,
> adLockOptimistic)
> 'this is the problem area!!
> objRecordset.Fields("FileTxt").Value = sXML
> objRecordset.Update
> objRecordset.Close
> Set objRecordset = Nothing
>
> I was thinking it might have something to do with the reference to ADO
> 2.5,
> rather than 2.8 which is what comes with Windows Server 2003. But again,
> it
> seems to be working some of the time.
> I found this article on Microsoft's site:
> http://msdn.microsoft.com/library/d...serr_1_20hd.asp
> Any help would be greatly appreciated!!!
> Thanks in advance!
> Brian McCullough

Cannot create a row of size 8075 which is greater than... (-214721

Hello all,
I have some VB6 code using ADO 2.5 running on a Windows 2003 Server box that
sometimes fails when trying to update an ADO field type of adLongVarChar
(stored as a text column in a SQL Server 2000 database, 6.5 compatiblity
mode) and produces the following error:
Error Number: -21472179
Error Description: Cannot create a row of size 8075 which is greater than
the allowable maximum of 8060.
The error seems to be occurring when we try to update the field with a large
string value. The strange thing is that it works without producing an error
sometimes. The reason I say this is that I can see some entries in my table
that have a DATALENGTH of the text field much larger than some of the ones
that are failing.
My VB6/ADO code looks like so:
'inserts a new record into a table with default values
sql = "call mydatadatable_insert "
Set objRecordset = New ADODB.Recordset
objRecordset.CursorLocation = adUseClient
Call objRecordset.Open(sql, objConnection, adOpenKeyset, adLockOptimistic)
myID= objRecordset.Fields.Item("ID").Value
objRecordset.Close
Set objRecordset = Nothing
'loads a 23 KB xml file
sXML = ReadFile("c:\temp\test.xml")
'...more processing here (non database)
sql = "exec mydatadatable_update" & cstr(myID)
Set objRecordset = New ADODB.Recordset
objRecordset.CursorLocation = adUseClient
Call objRecordset.Open(sql, objConnection, adOpenKeyset, adLockOptimistic)
'this is the problem area!!
objRecordset.Fields("FileTxt").Value = sXML
objRecordset.Update
objRecordset.Close
Set objRecordset = Nothing
I was thinking it might have something to do with the reference to ADO 2.5,
rather than 2.8 which is what comes with Windows Server 2003. But again, it
seems to be working some of the time.
I found this article on Microsoft's site:
http://msdn.microsoft.com/library/de...err_1_20hd.asp
Any help would be greatly appreciated!!!
Thanks in advance!
Brian McCullough
Hi,
After reading your post I have one question.
Is XML file always the same size?
My opinion is that sometimes XML file (or string) is small enough to fit
into varchar (which I think you're using for data-type) and sometimes it os
too large (8075).
You could generaly solve the problem with using text or ntext as a datatype
in the affected column.
Danijel
"brianpmccullough" <bmccullough11@.comcast.net> wrote in message
news:593E87AE-3407-4ACB-9908-7F5A8969EAB8@.microsoft.com...
> Hello all,
> I have some VB6 code using ADO 2.5 running on a Windows 2003 Server box
> that
> sometimes fails when trying to update an ADO field type of adLongVarChar
> (stored as a text column in a SQL Server 2000 database, 6.5 compatiblity
> mode) and produces the following error:
> Error Number: -21472179
> Error Description: Cannot create a row of size 8075 which is greater than
> the allowable maximum of 8060.
> The error seems to be occurring when we try to update the field with a
> large
> string value. The strange thing is that it works without producing an
> error
> sometimes. The reason I say this is that I can see some entries in my
> table
> that have a DATALENGTH of the text field much larger than some of the ones
> that are failing.
> My VB6/ADO code looks like so:
> 'inserts a new record into a table with default values
> sql = "call mydatadatable_insert "
> Set objRecordset = New ADODB.Recordset
> objRecordset.CursorLocation = adUseClient
> Call objRecordset.Open(sql, objConnection, adOpenKeyset,
> adLockOptimistic)
> myID= objRecordset.Fields.Item("ID").Value
> objRecordset.Close
> Set objRecordset = Nothing
> 'loads a 23 KB xml file
> sXML = ReadFile("c:\temp\test.xml")
> '...more processing here (non database)
> sql = "exec mydatadatable_update" & cstr(myID)
> Set objRecordset = New ADODB.Recordset
> objRecordset.CursorLocation = adUseClient
> Call objRecordset.Open(sql, objConnection, adOpenKeyset,
> adLockOptimistic)
> 'this is the problem area!!
> objRecordset.Fields("FileTxt").Value = sXML
> objRecordset.Update
> objRecordset.Close
> Set objRecordset = Nothing
>
> I was thinking it might have something to do with the reference to ADO
> 2.5,
> rather than 2.8 which is what comes with Windows Server 2003. But again,
> it
> seems to be working some of the time.
> I found this article on Microsoft's site:
> http://msdn.microsoft.com/library/de...err_1_20hd.asp
> Any help would be greatly appreciated!!!
> Thanks in advance!
> Brian McCullough

Saturday, February 25, 2012

Cannot connect to sql through asp app.

iis and sql on same box. asp lan app.
I can open the initial page but get this error when i try to look up a
customer or other db dependant actions.
Microsoft OLE DB Provider for SQL Server (0x80040e4d)
Login failed for user 'sa'
/ctservice/view_edit_service/getindex.asp, line 22
the code on line 21-22:
Set connEditService = Server.CreateObject("ADODB.Connection")
connEditService.Open conString
This started when i tried to change the sa password so that i could
access the db for a mail merge. I don't have the original sa password
and i don't know if i enabled it by accident. If so how do i remove it
or fix this error? thanks jho.
On Jan 13, 4:36Xpm, jho <jhogan0...@.yahoo.com> wrote:
> iis and sql on same box. asp lan app.
> I can open the initial page but get this error when i try to look up a
> customer or other db dependant actions.
> Microsoft OLE DB Provider for SQL Server (0x80040e4d)
> Login failed for user 'sa'
> /ctservice/view_edit_service/getindex.asp, line 22
> the code on line 21-22:
> Set connEditService = Server.CreateObject("ADODB.Connection")
> connEditService.Open conString
> This started when i tried to change the sa password so that i could
> access the db for a mail merge. I don't have the original sa password
> and i don't know if i enabled it by accident. If so how do i remove it
> or fix this error? thanks jho.
I found the password for sa after searching all of the pages in the
site for, you guessed it, password duh....

Cannot connect to sql through asp app.

iis and sql on same box. asp lan app.
I can open the initial page but get this error when i try to look up a
customer or other db dependant actions.
Microsoft OLE DB Provider for SQL Server (0x80040e4d)
Login failed for user 'sa'
/ctservice/view_edit_service/getindex.asp, line 22
the code on line 21-22:
Set connEditService = Server.CreateObject("ADODB.Connection")
connEditService.Open conString
This started when i tried to change the sa password so that i could
access the db for a mail merge. I don't have the original sa password
and i don't know if i enabled it by accident. If so how do i remove it
or fix this error? thanks jho.On Jan 13, 4:36=A0pm, jho <jhogan0...@.yahoo.com> wrote:
> iis and sql on same box. asp lan app.
> I can open the initial page but get this error when i try to look up a
> customer or other db dependant actions.
> Microsoft OLE DB Provider for SQL Server (0x80040e4d)
> Login failed for user 'sa'
> /ctservice/view_edit_service/getindex.asp, line 22
> the code on line 21-22:
> Set connEditService =3D Server.CreateObject("ADODB.Connection")
> connEditService.Open conString
> This started when i tried to change the sa password so that i could
> access the db for a mail merge. I don't have the original sa password
> and i don't know if i enabled it by accident. If so how do i remove it
> or fix this error? thanks jho.
I found the password for sa after searching all of the pages in the
site for, you guessed it, password duh....

Friday, February 24, 2012

Cannot connect to SQL Server 2005 after Active Directory upgrade

Hi, we recently installed Active Directory here and I can no longer connect to our SQL Server 2005 box. Active Directory was installed on a different server and my development machine was added to the Active Directory. The AD server was also made a domain controller and my development machine was also added to the domain. The SQL Server sits outside the domain, and is NOT included in AD. Now when I attempt to connect via SQL authentication in my c# code, I get the following error:

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

If I attempt to connect to the SQL Server box using SQL authentication from SQL Server Management Studio, the connection attempt simply times out. However, if I change the protocol used to connect to Named Pipes, I am able to connect to the SQL box.

Can anyone tell me why I cannot connect to the SQL box using SQL authentication and TCP/IP anymore?

I apologize if this post is misplaced.

I'm moving your question to the database engine forum where I hope they can help...

Paul

|||What is your connection string? If it is "<machinename>\<instancename>", then you could try to change this to "<machinename>\<instancename,<portnumber>". Maybe this will help.

Thursday, February 16, 2012

Cannot Connect to SQL 2000 on Win2k3 Server

I am having great difficulty connecting to my sql box, I
vpn'd in from work and connected via remote desktop,
setup the SQL connection locally, and connected fine,
which I am wondering if it was cause I was VPN'd in, but
I disconnected from remote desktop and was still able to
hit my sql server in enterprise manager. Then when I got
home tonight, logged on my XP machine and I cannot get my
sql registration to connect.
SQL Server does not exist or access denied ConnectionOpen
(Connect()
I have no idea what this means...I am just learning SQL
so this is all new to me...please help...I am on a home
network behind a linksys router, both my XP box and the
Win2k3 box are behind the router which has a dynamic ip
for the XP box, and a static one for the 2k3 box.On Windows 2003, if there are any instances of SQL Server installed that
are not on SP3 or higher, TCP will be disabled (there will be messages in
the event logs indicating this). In that case remote connections would fail
because by default clients try to connect with TCP. Upgrade all instances
on the box to SP3 then retry connecting. You can also try to connect from
the remote machines using named pipes (add np: before the machine\instance
in your connection string).
328306 INF: Potential Causes of the "SQL Server Does Not Exist or Access
http://support.microsoft.com/?id=328306
Cindy Gross, MCDBA, MCSE
http://cindygross.tripod.com
This posting is provided "AS IS" with no warranties, and confers no rights.

Tuesday, February 14, 2012

Cannot connect to MSOLAP Provider

I could not get my ASP pages to connect to the Analysis services
Server on a different box. The code that is not working is:
Dim cat
Set cat = Server.CreateObject("ADOMD.Catalog")
cat.ActiveConnection = "Data Source=asServer;Initial
Catalog=MyMart;Provider=msolap;"
My environment is:
The web server box (Server A) : Windows 2003 Server with IIS6, SQL
Server Client sp3 and Analysis Service Client sp3 are both installed.
All other asp pages not using ADOMD all work fine. Most of the web
applications on this server are ASP.NET.
The AS Server box: Windows 2000 with SQL Server 2000 SP3 (8.00.760)
The problem page works fine on other Windows 2000 server with IIS 5.
And the strange thing is: from Server A, the MDX Sample Application
works fine.
Any help is greatly appreciatedHello Tommy,
I noticed that the issue was posted in several groups
(microsoft.public.sqlserver.olap, microsoft.public.sqlserver,
microsoft.public.sqlserver.datawarehouse
)._ I have added a reply to you at
http://msdn.microsoft.com/newsgroup...t.public.sqlser
ver.olap&lang=en&cr=US
If you have follow up questions, please post there and I will work with
you. Thanks.
Regards,
Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Cannot connect to MSOLAP Provider

I could not get my ASP pages to connect to the Analysis services
Server on a different box. The code that is not working is:
Dim cat
Set cat = Server.CreateObject("ADOMD.Catalog")
cat.ActiveConnection = "Data Source=asServer;Initial
Catalog=MyMart;Provider=msolap;"
My environment is:
The web server box (Server A) : Windows 2003 Server with IIS6, SQL
Server Client sp3 and Analysis Service Client sp3 are both installed.
All other asp pages not using ADOMD all work fine. Most of the web
applications on this server are ASP.NET.
The AS Server box: Windows 2000 with SQL Server 2000 SP3 (8.00.760)
The problem page works fine on other Windows 2000 server with IIS 5.
And the strange thing is: from Server A, the MDX Sample Application
works fine.
Any help is greatly appreciated
Hello Tommy,
I noticed that the issue was posted in several groups
(microsoft.public.sqlserver.olap, microsoft.public.sqlserver,
microsoft.public.sqlserver.datawarehouse
).X I have added a reply to you at
http://msdn.microsoft.com/newsgroups...public.sqlser
ver.olap&lang=en&cr=US
If you have follow up questions, please post there and I will work with
you. Thanks.
Regards,
Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.