Showing posts with label occurred. Show all posts
Showing posts with label occurred. Show all posts

Tuesday, March 27, 2012

error plz help

when i run my application using web parts on sql 2000 an error displayed (

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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) can any one tell me why that error

)

Hi,

Please try this article on support.microsoft.com.

Article ID is 926929.

OR.

Make sure that the SQL Browser Service is started and make sure the password is correct, Because in my case customer had changed his passwords and we made sure that he changes his passwords from SSCM rather than
Services and then he was able to connect with no problems.

If you have any further issues please let me know on my e-mail ID.

Subject sould be Error code.

Thanks and Best Regards.

Farhat Nishat.

|||

i am sure that the SQL Browser Service is started and the password is correct i think that there steps done before running the web parts

because i think that web parts runs only on sql 2005 so do you know what to do to run web parts on sql2000 ?plz reply

|||

Can you check this blog? http://blogs.msdn.com/sql_protocols/archive/2007/05/13/sql-network-interfaces-error-26-error-locating-server-instance-specified.aspx

If you still have problem, please copy/paste your connection string here?

Friday, March 23, 2012

Error on SP2 SQL2000 RS

An internal error occurred on the report server. See the error log for more
details. (rsInternalError) Get Online Help
a.. Could not load type
Microsoft.ReportingServices.Interfaces.IRenderStream from assembly
Microsoft.ReportingServices.Interfaces, Version=8.0.242.0, Culture=neutral,
PublicKeyToken=89845dcd8080cc91.
How do I fix this? The log entry looks like:
w3wp!crypto!270!07/03/2005-11:34:29:: i INFO: Initializing crypto as user:
NT AUTHORITY\NETWORK SERVICE
w3wp!crypto!270!07/03/2005-11:34:29:: i INFO: Exporting public key
w3wp!crypto!270!07/03/2005-11:34:29:: i INFO: Performing sku validation
w3wp!crypto!270!07/03/2005-11:34:29:: i INFO: Importing existing encryption
key
w3wp!library!270!07/03/2005-11:34:29:: i INFO: Call to GetSystemPermissions
w3wp!library!fe0!07/03/2005-11:34:33:: i INFO: Call to
GetPermissions:/Lockout
w3wp!library!fe0!07/03/2005-11:34:33:: i INFO: Call to GetSystemPermissions
w3wp!library!270!07/03/2005-11:34:37:: i INFO: Call to
GetPermissions:/Lockout/NTLM Lockout Trending Weekly
w3wp!library!290!07/03/2005-11:34:37:: i INFO: Initializing
EnableIntegratedSecurity to 'True' as specified in Server system
properties.
w3wp!library!270!07/03/2005-11:34:37:: i INFO: Call to GetSystemPermissions
w3wp!library!270!07/03/2005-11:34:47:: i INFO: Initializing
ResponseBufferSizeKb to default value of '64' KB because it was not
specified in Server system properties.
w3wp!webserver!270!07/03/2005-11:34:47:: e ERROR: Internal error:
System.TypeLoadException: Could not load type
Microsoft.ReportingServices.Interfaces.IRenderStream from assembly
Microsoft.ReportingServices.Interfaces, Version=8.0.242.0, Culture=neutral,
PublicKeyToken=89845dcd8080cc91.
at
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport(HttpResponseStreamFactory
streamFactory)
at
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport()
at
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderItem(ItemType
itemType)
at
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPageContent()
at
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPage()
w3wp!library!270!07/03/2005-11:34:47:: e ERROR: Throwing
Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException:
An internal error occurred on the report server. See the error log for more
details., ;
Info:
Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException:
An internal error occurred on the report server. See the error log for more
details. --> System.TypeLoadException: Could not load type
Microsoft.ReportingServices.Interfaces.IRenderStream from assembly
Microsoft.ReportingServices.Interfaces, Version=8.0.242.0, Culture=neutral,
PublicKeyToken=89845dcd8080cc91.
at
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport(HttpResponseStreamFactory
streamFactory)
at
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport()
at
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderItem(ItemType
itemType)
at
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPageContent()
at
Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPage()
-- End of inner exception stack trace --Strange. Are you running SP2? The only thing I can think of is to clear our
your ASP.NET temporary files folder
(C:\windows\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files).
Also, be sure you only have one version of the Interfaces assembly around.
--
Brian Welcker
Group Program Manager
Microsoft SQL Server
This posting is provided "AS IS" with no warranties, and confers no rights.
"almoendale" <no_spam@.nowhere.net> wrote in message
news:urkNxU%23fFHA.3232@.TK2MSFTNGP15.phx.gbl...
> An internal error occurred on the report server. See the error log for
> more details. (rsInternalError) Get Online Help
> a.. Could not load type
> Microsoft.ReportingServices.Interfaces.IRenderStream from assembly
> Microsoft.ReportingServices.Interfaces, Version=8.0.242.0,
> Culture=neutral, PublicKeyToken=89845dcd8080cc91.
> How do I fix this? The log entry looks like:
> w3wp!crypto!270!07/03/2005-11:34:29:: i INFO: Initializing crypto as user:
> NT AUTHORITY\NETWORK SERVICE
> w3wp!crypto!270!07/03/2005-11:34:29:: i INFO: Exporting public key
> w3wp!crypto!270!07/03/2005-11:34:29:: i INFO: Performing sku validation
> w3wp!crypto!270!07/03/2005-11:34:29:: i INFO: Importing existing
> encryption key
> w3wp!library!270!07/03/2005-11:34:29:: i INFO: Call to
> GetSystemPermissions
> w3wp!library!fe0!07/03/2005-11:34:33:: i INFO: Call to
> GetPermissions:/Lockout
> w3wp!library!fe0!07/03/2005-11:34:33:: i INFO: Call to
> GetSystemPermissions
> w3wp!library!270!07/03/2005-11:34:37:: i INFO: Call to
> GetPermissions:/Lockout/NTLM Lockout Trending Weekly
> w3wp!library!290!07/03/2005-11:34:37:: i INFO: Initializing
> EnableIntegratedSecurity to 'True' as specified in Server system
> properties.
> w3wp!library!270!07/03/2005-11:34:37:: i INFO: Call to
> GetSystemPermissions
> w3wp!library!270!07/03/2005-11:34:47:: i INFO: Initializing
> ResponseBufferSizeKb to default value of '64' KB because it was not
> specified in Server system properties.
> w3wp!webserver!270!07/03/2005-11:34:47:: e ERROR: Internal error:
> System.TypeLoadException: Could not load type
> Microsoft.ReportingServices.Interfaces.IRenderStream from assembly
> Microsoft.ReportingServices.Interfaces, Version=8.0.242.0,
> Culture=neutral, PublicKeyToken=89845dcd8080cc91.
> at
> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport(HttpResponseStreamFactory
> streamFactory)
> at
> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport()
> at
> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderItem(ItemType
> itemType)
> at
> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPageContent()
> at
> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPage()
> w3wp!library!270!07/03/2005-11:34:47:: e ERROR: Throwing
> Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException:
> An internal error occurred on the report server. See the error log for
> more details., ;
> Info:
> Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException:
> An internal error occurred on the report server. See the error log for
> more details. --> System.TypeLoadException: Could not load type
> Microsoft.ReportingServices.Interfaces.IRenderStream from assembly
> Microsoft.ReportingServices.Interfaces, Version=8.0.242.0,
> Culture=neutral, PublicKeyToken=89845dcd8080cc91.
> at
> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport(HttpResponseStreamFactory
> streamFactory)
> at
> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport()
> at
> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderItem(ItemType
> itemType)
> at
> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPageContent()
> at
> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPage()
> -- End of inner exception stack trace --
>|||Brian:
I cleared out the ASP.net temp folder, no success. I have RS SP2 (do
*not* have W2K3 SP1), have attempted to re-apply RS SP2, which didn't help.
I am getting errors out of other web parts too on this WSS site (SP1 there
BTW). This box is a rather old dev crash box that may well need to be
rebuilt. it has everything but the kitchen sink so to speak: (Project
Server03, WSS, SQL RS, Maestro Beta, numerous custom web parts, etc.) Wish I
could just roll it back to about 2 weeks back when everything was working
ducky.
Interestingly the Samples all fail too.
I guess what bothers me most is the cryptic (bullet with a question
mark) nature of the error display:
Reporting Services Error
----
a.. An internal error occurred on the report server. See the error
log for more details. (rsInternalError) Get Online Help
a.. ?
----
Microsoft Reporting Services
Alex
======================================================
Explanation
Internal errors are uncommon and may be difficult to diagnose. If you
get this error, you can look in trace logs for more information.
Note that if you renamed the computer that hosts the report server,
you may encounter internal errors related to the name change (specifically,
"A severe error occurred on the current command" error or "RPC server is not
listening"). If you renamed the computer, you can run the rsconfig utility
to update the system information that is stored by the report server.
"Brian Welcker [MSFT]" <bwelcker@.online.microsoft.com> wrote in message
news:urZJNJAgFHA.3584@.TK2MSFTNGP09.phx.gbl...
> Strange. Are you running SP2? The only thing I can think of is to clear
> our your ASP.NET temporary files folder
> (C:\windows\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files).
> Also, be sure you only have one version of the Interfaces assembly around.
> --
> Brian Welcker
> Group Program Manager
> Microsoft SQL Server
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> "almoendale" <no_spam@.nowhere.net> wrote in message
> news:urkNxU%23fFHA.3232@.TK2MSFTNGP15.phx.gbl...
>> An internal error occurred on the report server. See the error log for
>> more details. (rsInternalError) Get Online Help
>> a.. Could not load type
>> Microsoft.ReportingServices.Interfaces.IRenderStream from assembly
>> Microsoft.ReportingServices.Interfaces, Version=8.0.242.0,
>> Culture=neutral, PublicKeyToken=89845dcd8080cc91.
>> How do I fix this? The log entry looks like:
>> w3wp!crypto!270!07/03/2005-11:34:29:: i INFO: Initializing crypto as
>> user: NT AUTHORITY\NETWORK SERVICE
>> w3wp!crypto!270!07/03/2005-11:34:29:: i INFO: Exporting public key
>> w3wp!crypto!270!07/03/2005-11:34:29:: i INFO: Performing sku validation
>> w3wp!crypto!270!07/03/2005-11:34:29:: i INFO: Importing existing
>> encryption key
>> w3wp!library!270!07/03/2005-11:34:29:: i INFO: Call to
>> GetSystemPermissions
>> w3wp!library!fe0!07/03/2005-11:34:33:: i INFO: Call to
>> GetPermissions:/Lockout
>> w3wp!library!fe0!07/03/2005-11:34:33:: i INFO: Call to
>> GetSystemPermissions
>> w3wp!library!270!07/03/2005-11:34:37:: i INFO: Call to
>> GetPermissions:/Lockout/NTLM Lockout Trending Weekly
>> w3wp!library!290!07/03/2005-11:34:37:: i INFO: Initializing
>> EnableIntegratedSecurity to 'True' as specified in Server system
>> properties.
>> w3wp!library!270!07/03/2005-11:34:37:: i INFO: Call to
>> GetSystemPermissions
>> w3wp!library!270!07/03/2005-11:34:47:: i INFO: Initializing
>> ResponseBufferSizeKb to default value of '64' KB because it was not
>> specified in Server system properties.
>> w3wp!webserver!270!07/03/2005-11:34:47:: e ERROR: Internal error:
>> System.TypeLoadException: Could not load type
>> Microsoft.ReportingServices.Interfaces.IRenderStream from assembly
>> Microsoft.ReportingServices.Interfaces, Version=8.0.242.0,
>> Culture=neutral, PublicKeyToken=89845dcd8080cc91.
>> at
>> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport(HttpResponseStreamFactory
>> streamFactory)
>> at
>> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport()
>> at
>> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderItem(ItemType
>> itemType)
>> at
>> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPageContent()
>> at
>> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPage()
>> w3wp!library!270!07/03/2005-11:34:47:: e ERROR: Throwing
>> Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException:
>> An internal error occurred on the report server. See the error log for
>> more details., ;
>> Info:
>> Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException:
>> An internal error occurred on the report server. See the error log for
>> more details. --> System.TypeLoadException: Could not load type
>> Microsoft.ReportingServices.Interfaces.IRenderStream from assembly
>> Microsoft.ReportingServices.Interfaces, Version=8.0.242.0,
>> Culture=neutral, PublicKeyToken=89845dcd8080cc91.
>> at
>> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport(HttpResponseStreamFactory
>> streamFactory)
>> at
>> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport()
>> at
>> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderItem(ItemType
>> itemType)
>> at
>> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPageContent()
>> at
>> Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPage()
>> -- End of inner exception stack trace --
>>
>sql

Error on reporting service

I got a error like below.
Anyone has any idea?
================================== An unexpected error occurred in Report Processing.
(rsInternalError) Get Online Help
For more information about this error navigate to the
report server on the local server machine, or enable remote errorsOn Apr 20, 9:25 am, "Ken" <k...@.jeromegroup.com> wrote:
> I got a error like below.
> Anyone has any idea?
> ==================================> An unexpected error occurred in Report Processing.
> (rsInternalError) Get Online Help
> For more information about this error navigate to the
> report server on the local server machine, or enable remote errors
This is kind-of a vague error. To check the SSRS log file for possible
error reasons or descriptions, go to the following location (normally,
may vary slightly):
C:\Program Files\Microsoft SQL Server\MSSQL.2(it may be MSSQL.3 (etc),
depending on the number of services installed)\Reporting Services
\LogFiles.
and see if the log file around the time of the error explains the
problem any better. Hope this is helpful.
Regards,
Enrique Martinez
Sr. Software Consultantsql

Wednesday, March 21, 2012

Error on installing SP3a - Analysis Services components

While trying to complete the installation of
sql2kasp3.exe, my system gives me the follwoing error -
An error occurred during the move data process - 145
Window header is Severe.
Any ideas?
TIAI did some more looking around and found the Knowledge
Base had an article - 814462 - that addresses this issue.
It recommends fixing a registry key value under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OLAP
Server\Uninstall Info.
I do not have this entry in my registry.
What's up?
>--Original Message--
>While trying to complete the installation of
>sql2kasp3.exe, my system gives me the follwoing error -
>An error occurred during the move data process - 145
>Window header is Severe.
>Any ideas?
>TIA
>.
>|||Well, like it says to create the registry key value if it doesn't exist, you
can also create the Uninstall Info key itself...
--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Rich Bergstedt" <split_hare@.sbcglobal.net> wrote in message
news:3d4d01c3e300$9ec8f0e0$a501280a@.phx.gbl...
> I did some more looking around and found the Knowledge
> Base had an article - 814462 - that addresses this issue.
> It recommends fixing a registry key value under
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OLAP
> Server\Uninstall Info.
> I do not have this entry in my registry.
> What's up?
> >--Original Message--
> >While trying to complete the installation of
> >sql2kasp3.exe, my system gives me the follwoing error -
> >An error occurred during the move data process - 145
> >Window header is Severe.
> >
> >Any ideas?
> >
> >TIA
> >.
> >|||Stupid me.
I never installed Analysis Services when I installed the
eval package.
Now, I am working fine thanks.
>--Original Message--
>Well, like it says to create the registry key value if
it doesn't exist, you
>can also create the Uninstall Info key itself...
>--
>Aaron Bertrand
>SQL Server MVP
>http://www.aspfaq.com/
>
>
>"Rich Bergstedt" <split_hare@.sbcglobal.net> wrote in
message
>news:3d4d01c3e300$9ec8f0e0$a501280a@.phx.gbl...
>> I did some more looking around and found the Knowledge
>> Base had an article - 814462 - that addresses this
issue.
>> It recommends fixing a registry key value under
>> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OLAP
>> Server\Uninstall Info.
>> I do not have this entry in my registry.
>> What's up?
>> >--Original Message--
>> >While trying to complete the installation of
>> >sql2kasp3.exe, my system gives me the follwoing
error -
>> >An error occurred during the move data process - 145
>> >Window header is Severe.
>> >
>> >Any ideas?
>> >
>> >TIA
>> >.
>> >
>
>.
>

Monday, March 19, 2012

Error on BIDS script /calculations tab

I was writing an MDX script in BIDS CTP3 SP2 when this error occurred:

"Analysis services 2005" "unexpected error occurred. Length cannot be less than zero. Parameter name: length"

I am unable to open the forms or the script view.

Anyone with an idea?

Kind regards

Thomas Ivarsson

After my post I remembered that this have happened once before.

Open BIDS on the cube editor and change to xml-view.

Look for the calculations and comment them out.

Save the changes and switch back to the forms/normal view.

Perhaps it is also possible to reingeneer the deployed cube to a new project.

Regards

Thomas Ivarsson

Monday, March 12, 2012

Error on (local)

An error occurred in the system, and last operation may not have completed: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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

The above error I get when I like to connect to a db for a wiki. It's on localhost and everything I found on the internet I tried. Remote connections are not relevant because it's local. Have I something forgotten?? SQL Server 2005, Asp.net 2.0

RoelAlblas:

Remote connections are not relevant because it's local. Have I something forgotten?? SQL Server 2005, Asp.net 2.0

Even on local, sometimes your website will use still use remote connection to connect to local SQL Server (for example websites deployed under IIS), so please do make sure you have enabled remote connection for the SQL instance.

Error occurred while establishing a connection to the server

hai friends..........

please give a solution to this 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) "

thanks in advance to all.......

Can u post your connection string ? Are you using express edition?

|||

hai...

No i am not using express edition..............

The connection string is --> "Data Source=p3swhsql-v11.shr.phx3.secureserver.net; Initial Catalog=Magichuts; User ID=Magichuts; Password=Google001"

|||

Chek this link

http://support.microsoft.com/kb/914277

|||

this link will help you

http://www.linglom.com/2007/08/31/enable-remote-connection-to-sql-server-2005-express/

|||thanks abdul.m..................

Error occurred retrieving child nodes

AS 2005 April CTP.
I have deployed a solution which works fine in other computer. But know in cubes with calculated measures didn't work.
It tells me The dimension '[Measures]' was not found in the cube when the string [Measures].[My Calculation], was parsed.
If I remove the calculated measures the cube works fine but of course I need the calculations.
Any ideas?
Thanks in advance.I'm thinking that it's a problem with collation. I put view code in calculations and change [MEASURES] with [Measures] and it works.
But in AS isn't defined CASE SENSITIVE.
What can I do?

Error occurred during rendering of the report. Stack Empty.

I have developed a report in SSRS 2005. When I try to export the output to Excel, it shows an error saying:

Error occurred during local report processing.

Error occurred during rendering of the report. Stack Empty.

Do anyone have any idea what this means and how to fix it?

I can render the report in other formats (Adobe, csv etc) without any problem. My other reports, under same project and using same dataset, are working fine.

Thanks in Advance.

Have you checked your log files for errors?

C:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\LogFiles

You may need to crank up the level of tracing to get anything interesting:

http://technet.microsoft.com/en-us/library/ms156500.aspx

Does the report render in Excel for a different dataset? Try faking a dataset using something like:

SELECT 1 AS Age, 'M' AS Sex

UNION

SELECT 7 AS Age, 'F' AS Sex

and see if you render correctly. Make sure you have 'alligned your edges' to reduce the complexity of the resulting Excel. If you want to (are willing/able to) send me your RDL, I will take a look and post the results of my analysis back here.

Friday, March 9, 2012

Error Nuimber 913 - Could not find database ID

An interesting error occurred today along with some inconsistent behaviour.
On our test database we have one database, that is the main one and in which
all the SPs are located. Then we have a secondary database, the data in
which is accessed only by stored procs run from the main database. Recently
we updated this secondary database by dropping the old one and recreating
it. This changed, presumably, the db_id for that database, same name.
Now when we tried to run any of the SPs that access this secondary database,
they caused error number 913, "Could not find database ID %d. Database may
not be activated yet or may be in transition." Which seems logical if the
secondary database now has a different db_id from the old one that was
dropped. However, when the same SPs are executed in Query Analyzer, they run
fine, no error, and they return data.
Any idea what's going on? Why would execution of the SPs cause an error from
the application viewpoint but not in Query Analyzer?
This really has me puzzled.
TIA
Michael MacGregor
Database ArchitectMichael MacGregor wrote:
> Any idea what's going on? Why would execution of the SPs cause an error from
> the application viewpoint but not in Query Analyzer?
How are you executing the sprocs within your app? Just curious if
you're using sp_prepexec/sp_execute. I suspect what you're seeing is
due to cached execution plans. Try running DBCC FREEPROCCACHE, that
will flush out all of the currently cached plans, and each subsequent
query will compile a new plan. The database ID is part of that plan.|||Michael,
- what interface are you using to connect to SQL Server from your application?
- can you post the code where you set the connection properties?
AMB
"Michael MacGregor" wrote:
> An interesting error occurred today along with some inconsistent behaviour.
> On our test database we have one database, that is the main one and in which
> all the SPs are located. Then we have a secondary database, the data in
> which is accessed only by stored procs run from the main database. Recently
> we updated this secondary database by dropping the old one and recreating
> it. This changed, presumably, the db_id for that database, same name.
> Now when we tried to run any of the SPs that access this secondary database,
> they caused error number 913, "Could not find database ID %d. Database may
> not be activated yet or may be in transition." Which seems logical if the
> secondary database now has a different db_id from the old one that was
> dropped. However, when the same SPs are executed in Query Analyzer, they run
> fine, no error, and they return data.
> Any idea what's going on? Why would execution of the SPs cause an error from
> the application viewpoint but not in Query Analyzer?
> This really has me puzzled.
> TIA
> Michael MacGregor
> Database Architect
>
>|||I've already totally recreated all the appropriate SPs so that the right
db_id gets used. I'm just trying to figure out why we saw different
behaviour for the same SP, using the same parameters, between the app and
Query Analyzer. Even if the SP had a cached execution plan, it should use
the same plan whether the SP was called from the app or Query Analyzer.
"Tracy McKibben" <tracy.mckibben@.gmail.com> wrote in message
news:1150132439.326685.142290@.y43g2000cwc.googlegroups.com...
> Michael MacGregor wrote:
>> Any idea what's going on? Why would execution of the SPs cause an error
>> from
>> the application viewpoint but not in Query Analyzer?
> How are you executing the sprocs within your app? Just curious if
> you're using sp_prepexec/sp_execute. I suspect what you're seeing is
> due to cached execution plans. Try running DBCC FREEPROCCACHE, that
> will flush out all of the currently cached plans, and each subsequent
> query will compile a new plan. The database ID is part of that plan.
>|||Michael MacGregor wrote:
> I've already totally recreated all the appropriate SPs so that the right
> db_id gets used. I'm just trying to figure out why we saw different
> behaviour for the same SP, using the same parameters, between the app and
> Query Analyzer. Even if the SP had a cached execution plan, it should use
> the same plan whether the SP was called from the app or Query Analyzer.
That's why I asked about sp_prepexec. A single query can have multiple
plans cached if you're compiling them using sp_prepexec. Capture a
trace log using Profiler, see if there are sp_prepexec/sp_execute calls
being made by your app, and look closely at some of those calls.|||Where in the trace do I see whether it is sp_prepexec or sp_execute?
I asked one of our Java guys and he didn't know. Unfortunately our lead Java
developer is on vacation right now and I'm sure he'd know the answer
immediately.
"Tracy McKibben" <tracy.mckibben@.gmail.com> wrote in message
news:1150133773.482772.324100@.u72g2000cwu.googlegroups.com...
> Michael MacGregor wrote:
>> I've already totally recreated all the appropriate SPs so that the right
>> db_id gets used. I'm just trying to figure out why we saw different
>> behaviour for the same SP, using the same parameters, between the app and
>> Query Analyzer. Even if the SP had a cached execution plan, it should use
>> the same plan whether the SP was called from the app or Query Analyzer.
> That's why I asked about sp_prepexec. A single query can have multiple
> plans cached if you're compiling them using sp_prepexec. Capture a
> trace log using Profiler, see if there are sp_prepexec/sp_execute calls
> being made by your app, and look closely at some of those calls.
>|||This is what my Java guy gave me when I asked him for the information. Is
this what you wanted?
public static String strDbUser ="<userID>";
public static String strDbPwd ="<pwd>";
public static String strDefaultServer = "<sqlserver>";
A JDBC SQL server driver is being used as an interface between the java app
and sql server.
"Alejandro Mesa" <AlejandroMesa@.discussions.microsoft.com> wrote in message
news:75FF2CB6-94CB-423B-A17F-EEE0688825A6@.microsoft.com...
> Michael,
> - what interface are you using to connect to SQL Server from your
> application?
> - can you post the code where you set the connection properties?
>
> AMB
> "Michael MacGregor" wrote:
>> An interesting error occurred today along with some inconsistent
>> behaviour.
>> On our test database we have one database, that is the main one and in
>> which
>> all the SPs are located. Then we have a secondary database, the data in
>> which is accessed only by stored procs run from the main database.
>> Recently
>> we updated this secondary database by dropping the old one and recreating
>> it. This changed, presumably, the db_id for that database, same name.
>> Now when we tried to run any of the SPs that access this secondary
>> database,
>> they caused error number 913, "Could not find database ID %d. Database
>> may
>> not be activated yet or may be in transition." Which seems logical if the
>> secondary database now has a different db_id from the old one that was
>> dropped. However, when the same SPs are executed in Query Analyzer, they
>> run
>> fine, no error, and they return data.
>> Any idea what's going on? Why would execution of the SPs cause an error
>> from
>> the application viewpoint but not in Query Analyzer?
>> This really has me puzzled.
>> TIA
>> Michael MacGregor
>> Database Architect
>>|||Michael MacGregor wrote:
> Where in the trace do I see whether it is sp_prepexec or sp_execute?
> I asked one of our Java guys and he didn't know. Unfortunately our lead Java
> developer is on vacation right now and I'm sure he'd know the answer
> immediately.
In the "TextData" field, you'll see executions of "sp_prepexec" and
"sp_execute", each with a string of parameters attached to it.|||Ok, I see "exec <sp>".
Another point to note is that the developers also restrated the BEA server,
which should have closed all DB connections and re-established them.
"Tracy McKibben" <tracy.mckibben@.gmail.com> wrote in message
news:1150138844.829918.297480@.c74g2000cwc.googlegroups.com...
> Michael MacGregor wrote:
>> Where in the trace do I see whether it is sp_prepexec or sp_execute?
>> I asked one of our Java guys and he didn't know. Unfortunately our lead
>> Java
>> developer is on vacation right now and I'm sure he'd know the answer
>> immediately.
> In the "TextData" field, you'll see executions of "sp_prepexec" and
> "sp_execute", each with a string of parameters attached to it.
>|||Michael,
Seems like the connection is using the default database for that user. If
the default db was pointing to the the one you recreated, then the default db
for that user is pointing to the wrong db_id. You will have to change the
default db for your users, using sp_defaultdb.
AMB
"Michael MacGregor" wrote:
> This is what my Java guy gave me when I asked him for the information. Is
> this what you wanted?
> public static String strDbUser => "<userID>";
> public static String strDbPwd => "<pwd>";
> public static String strDefaultServer = "<sqlserver>";
> A JDBC SQL server driver is being used as an interface between the java app
> and sql server.
> "Alejandro Mesa" <AlejandroMesa@.discussions.microsoft.com> wrote in message
> news:75FF2CB6-94CB-423B-A17F-EEE0688825A6@.microsoft.com...
> > Michael,
> >
> > - what interface are you using to connect to SQL Server from your
> > application?
> > - can you post the code where you set the connection properties?
> >
> >
> > AMB
> >
> > "Michael MacGregor" wrote:
> >
> >> An interesting error occurred today along with some inconsistent
> >> behaviour.
> >> On our test database we have one database, that is the main one and in
> >> which
> >> all the SPs are located. Then we have a secondary database, the data in
> >> which is accessed only by stored procs run from the main database.
> >> Recently
> >> we updated this secondary database by dropping the old one and recreating
> >> it. This changed, presumably, the db_id for that database, same name.
> >>
> >> Now when we tried to run any of the SPs that access this secondary
> >> database,
> >> they caused error number 913, "Could not find database ID %d. Database
> >> may
> >> not be activated yet or may be in transition." Which seems logical if the
> >> secondary database now has a different db_id from the old one that was
> >> dropped. However, when the same SPs are executed in Query Analyzer, they
> >> run
> >> fine, no error, and they return data.
> >>
> >> Any idea what's going on? Why would execution of the SPs cause an error
> >> from
> >> the application viewpoint but not in Query Analyzer?
> >>
> >> This really has me puzzled.
> >>
> >> TIA
> >>
> >> Michael MacGregor
> >> Database Architect
> >>
> >>
> >>
>
>|||Forgot to mention that you can also specify the db to which you want to
connect in the connection properties. I am not familiar with JDBC but this
should be something comon in every interface.
AMB
"Alejandro Mesa" wrote:
> Michael,
> Seems like the connection is using the default database for that user. If
> the default db was pointing to the the one you recreated, then the default db
> for that user is pointing to the wrong db_id. You will have to change the
> default db for your users, using sp_defaultdb.
>
> AMB
>
> "Michael MacGregor" wrote:
> > This is what my Java guy gave me when I asked him for the information. Is
> > this what you wanted?
> >
> > public static String strDbUser => > "<userID>";
> >
> > public static String strDbPwd => > "<pwd>";
> >
> > public static String strDefaultServer = "<sqlserver>";
> >
> > A JDBC SQL server driver is being used as an interface between the java app
> > and sql server.
> >
> > "Alejandro Mesa" <AlejandroMesa@.discussions.microsoft.com> wrote in message
> > news:75FF2CB6-94CB-423B-A17F-EEE0688825A6@.microsoft.com...
> > > Michael,
> > >
> > > - what interface are you using to connect to SQL Server from your
> > > application?
> > > - can you post the code where you set the connection properties?
> > >
> > >
> > > AMB
> > >
> > > "Michael MacGregor" wrote:
> > >
> > >> An interesting error occurred today along with some inconsistent
> > >> behaviour.
> > >> On our test database we have one database, that is the main one and in
> > >> which
> > >> all the SPs are located. Then we have a secondary database, the data in
> > >> which is accessed only by stored procs run from the main database.
> > >> Recently
> > >> we updated this secondary database by dropping the old one and recreating
> > >> it. This changed, presumably, the db_id for that database, same name.
> > >>
> > >> Now when we tried to run any of the SPs that access this secondary
> > >> database,
> > >> they caused error number 913, "Could not find database ID %d. Database
> > >> may
> > >> not be activated yet or may be in transition." Which seems logical if the
> > >> secondary database now has a different db_id from the old one that was
> > >> dropped. However, when the same SPs are executed in Query Analyzer, they
> > >> run
> > >> fine, no error, and they return data.
> > >>
> > >> Any idea what's going on? Why would execution of the SPs cause an error
> > >> from
> > >> the application viewpoint but not in Query Analyzer?
> > >>
> > >> This really has me puzzled.
> > >>
> > >> TIA
> > >>
> > >> Michael MacGregor
> > >> Database Architect
> > >>
> > >>
> > >>
> >
> >
> >

Error Msg

String or binary data would be truncated.
The statement has been terminated.

Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details:System.Data.SqlClient.SqlException: String or binary data would be truncated.
The statement has been terminated.

Source Error:

Line 32: Line 33: Dim add As New SqlCommand(change, conn2)Line 34: add.ExecuteNonQuery()Line 35: conn2.Close()Line 36: Response.Redirect("ThankUReg.aspx")

hi there,

I have this error msg when i try to execute my register page..

What do they mean by string or binary data will be truncated? i've set my database value type to varchar(MAX).

still this error appears.. Looking forward for ur reply.

Yini

well it Does in fact mean that you are trying to insert data into a column that is not big enough for the data. Without knowing your db structure or seeing the SQL your actually using to insert i can't offer much more help. debug the process and maybe copy and paste your values into excel or something so you can run a LEN Function on them and see which one is too big.

hth,
mcm

|||

yinibabe:

i've set my database value type to varchar(MAX).

Have you set the data type to be varchar (max) for every string type column ? My advice is to again check all the columns for their data types, I think you are missing one column which may not allow the amount of data you are trying to insert for that column.

Hope this will help.

Sunday, February 26, 2012

error message when trying to create any query

I am trying to run a query on my sql server and get the following error message:

"An error occurred while executing batch. Error message is: The directory name is invalid."

how do I fix?

Simple -Use a valid folder name!

If you were to post your code, and the complete error message, perhaps we could give you more directed assistance.

|||I am experiencing the same problem.
There are no directories or code involved.
The error occurs in SQL server management studio on a simple sql statement like

select * from table_name;

Regards

Zlatko
|||It is resolved in meantime.
Our sysadm changed some user rights on the domain controller - and that was causing the error.
After he returned the old setting - everything went back to normal.

Z.