Showing posts with label running. Show all posts
Showing posts with label running. Show all posts

Friday, March 30, 2012

Invicible Sub report for generating shared variables

Hi!

Im creating a report with a manual running total in a main report. As a condition to the running total, Im having a sub-report in the details section bringing a shared boolean variable back to the main report.

My problem is that I dont want the sub report to be visible. Have tried suppress it, but then the shared variable isnt brought to the main report correctly.

Please advice me!

Regards,
KarlSuppressing the report doesn't stop the execution of the report.
Show the code that you are using or screen shot.|||Suppress all sections of the subreport; the formulas etc. within it will still run. In the subreport's properties (right click it in the main report) choose suppress blank subreport. In the main report, choose suppress blank section.|||Hi!
Thanks for fast reply.

I've uploaded a screenshot of the report. When showing the sub-report, I'm getting the shared variables back. But if I suppress the section of the sub-report, the sub-report or un-select the can-grow flag, I'm not getting any share variable back (i.e. it's false).

Have anyone seen this behaviour before?

B.R
Karl|||If you suppress the subreport it doesn't run. That's why you suppress the sections within the subreport and suppress both a blank subreport and a blank section containing the subreport. It then still runs, but nothing is displayed.|||Yea, that works!
Thanks alot, you saved my day/week/job... :)

Regards,
Karl

Wednesday, March 28, 2012

InvalidReportParameterException using Data Processing Extensions

We have a report that runs via the data processing extensions. Running this
report from the reporting service interface or via the web is fine.
However, we have a requirement for running this report via some very
speciifc schedules. To achieve this we are programatically rendering this
report. We supply three paramters for this to run. The report runs a stored
procedure to obtain a list of valid periodIds. We pass it a valid period id
(can be found in the list) however, we get the error message below.
Any pointers greatly appreciated.
Steve
*** EXCEPTION: SoapException
*** MSG: System.Web.Services.Protocols.SoapException: Default value or value
provided for the report parameter 'periodId' is not a valid value. -->
Microsoft.ReportingServices.Diagnostics.Utilities.RSException: Default value
or value provided for the report parameter 'periodId' is not a valid value.
-->
Microsoft.ReportingServices.Diagnostics.Utilities.InvalidReportParameterException:
Default value or value provided for the report parameter 'periodId' is not a
valid value.
at
Microsoft.ReportingServices.ReportProcessing.ParameterInfoCollection.ThrowIfNotValid()
at
Microsoft.ReportingServices.Library.RSService.RenderAsLiveOrSnapshot(CatalogItemContext
reportContext, ClientRequest session, Warning[]& warnings,
ParameterInfoCollection& effectiveParameters)
at
Microsoft.ReportingServices.Library.RSService.RenderFirst(CatalogItemContext
reportContext, ClientRequest session, Warning[]& warnings,
ParameterInfoCollection& effectiveParameters, String[]& secondaryStreamNames)
at Microsoft.ReportingServices.Library.RenderFirstCancelableStep.Execute()
at
Microsoft.ReportingServices.Diagnostics.CancelablePhaseBase.ExecuteWrapper()
-- End of inner exception stack traceHi Steve,
I am having a similar problem and I wonder if you figured out what the
problem was...
Thanks,
Ana|||Hi Ana,
It turned out that the problem was one of case sensitivity.
The IDs we were dealing with were all GUIDs. Some of the lists were
uppercase, some were lowercase. As the comparison does not happen in our case
insensitive SQL Server environment, this caused an issue.
Hopefully, any problem you have is just as simple.
Good luck
Steve
"awatanabe@.herald.com" wrote:
> Hi Steve,
> I am having a similar problem and I wonder if you figured out what the
> problem was...
> Thanks,
> Ana
>

Monday, March 26, 2012

Invalid object name while reading data out of an SQL Database

Hi all,
I'm a complete newbie on ASP.Net.

I want to get some data out of a SQLserver Database running on my system with SQL Server 2005 Express. The name of the Database is 'tempdb' and the table is called "Members". the SQLServer runs as Local System with the Windows account.

When I try to open the site, I always get the same error:
Invalid object name 'Members'

I don't know what to do anymore. I read a post, where anybody set the rights for the owner, but my database is running with the Windows account.

Here is the Code of the page so far:

<%@. Page Language="VB" Debug="True" Strict="True" %>
<%@. Import Namespace="System.Data" %>
<%@. Import Namespace="System.Data.SQlClient" %>
<script runat="server">
Sub Page_Load (ByVal Sender As Object, _
ByVal E As EventArgs)

Dim connStr As String
connStr = "Provider=Microsoft.Jet.OLEDB.4.0;"
connStr += "database=tempdb;"
connStr += "Truster_Connection=yes"
Dim conn As New SQLConnection(connStr)
conn.Open()

Dim sql As String
sql = "SELECT COUNT (*) FROM Members"
Dim cmd As New SQLCommand(sql, conn)
Dim ergebnis As String
ergebnis = cmd.ExecuteScalar().toString()
Dim t As String
t = "Die Tabelle Members hat " & _
ergebnis & " Zeilen. <br>" & _
"Das Kommando lautet: " & _
cmd.CommandText & "<br>" & _
"Der Kommandotyp ist: " & _
cmd.CommandType

ausgabe.innerHTML = t

End Sub
</script>
<html><head><title>
Demo zu SQLCommand.ExecuteScalar
</title></head>
<body>
<h3>Demo zu SQLCommand.ExecuteScalar</h3>
<p runat="server" id="ausgabe" />
</body></html>

Thanks for your help an sorry for my english.

Greets
Flash_Prince

The problem is objects in tempdb is valid for limited time so your object the Member table does not exist. Microsoft provided the tempdb for SQL Server to be used to proccess complex queries and test queries so when you create a table if you did not drop it SQL Server will drop it at some point. Try the links below to download sample databases you can create and use with SQL Server 2005. The databases comes with tables but you can create your own tables so you can add the member table to any of the three database. Hope this helps.


http://www.microsoft.com/downloads/details.aspx?FamilyID=06616212-0356-46A0-8DA2-EEBC53A68034&displaylang=en

http://www.microsoft.com/downloads/details.aspx?FamilyID=e719ecf7-9f46-4312-af89-6ad8702e4e6e&DisplayLang=en

|||

The problem is, that i want to use the database without entering the path of the database file in the sourcecode. When I use the nordwind database, all the sql queries are working very well. But if I use the Nordwind Database, I only know to connect by OleDB.

Can you tell me how to use a database in the way decribed above with a sql connection?

I hope, this is described understandable, cause my english is not the best.

|||

You need to create connection string and most of the information you need is covered in the two links below. Hope this helps.

http://www.connectionstrings.com

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000010.asp

|||The problem is in your connection string. You have a typo: "Truster_Connection=yes" should be "Trusted_Connection=yes".

Friday, March 23, 2012

invalid object name sys.endpoints

I'm running Microsoft SQL Server 2005 - 9.00.3042.00 (X64). I tried
installing the patch from KB 934458, but it failed because it was looking for
files that don't exist. Now when I try to log in to the server, I get a
invalid object name sys.endpoints error. How do I fix this?Hi
sys.endpoints is a view in the master database, if it is not there your best
option may be to re-install SQL Server.
John
"Code Wench" wrote:
> I'm running Microsoft SQL Server 2005 - 9.00.3042.00 (X64). I tried
> installing the patch from KB 934458, but it failed because it was looking for
> files that don't exist. Now when I try to log in to the server, I get a
> invalid object name sys.endpoints error. How do I fix this?
>
Have you checked thesql

Invalid object name 'dbo.MSmerge_tombstone'

Running SQL 2005/Win 2003 (publisher/distributor) & SQL 2000/Win 2003
(subscriber).
Lat night around 6:30, 7 of my 15 subscriptions to one publication
started to fail with the message below. I am not using merge
anywhere, currently, though I have had a merge publication in the past
that all 15 subscrivers, subscribed to. The publication is currently
a phamtom one that I cannot delete. They do not appear in the local
publications folder, but only in the replicaiton monitor for the
original publisher.
I do not know if these are related, but any help will be appreciated.
Larry...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Command attempted:
if @.@.trancount > 0 rollback tran
(Transaction sequence number: 0x0000147E0000451A001900000000, Command
ID: 1)
Error messages:
Invalid object name 'dbo.MSmerge_tombstone'. (Source: MSSQLServer,
Error number: 208)
Get help: http://help/208
Invalid object name 'dbo.MSmerge_tombstone'. (Source: MSSQLServer,
Error number: 208)
Get help: http://help/208
Could not use view or function 'tsvw_842FD9495DB74084823D364E97EB6D70'
because of binding errors. (Source: MSSQLServer, Error number: 4413)
Get help: http://help/4413
Invalid object name 'dbo.MSmerge_tombstone'. (Source: MSSQLServer,
Error number: 208)
Get help: http://help/208
Could not use view or function 'tsvw_842FD9495DB74084823D364E97EB6D70'
because of binding errors. (Source: MSSQLServer, Error number: 4413)
Get help: http://help/4413
Invalid object name 'dbo.MSmerge_tombstone'. (Source: MSSQLServer,
Error number: 208)
Get help: http://help/208
check to see if you have a merge replication trigger on one of the
subscriber tables. Looks like merge replication was not completely removed.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"LPR-3rd" <lreames@.gmail.com> wrote in message
news:1170175947.713622.18830@.v45g2000cwv.googlegro ups.com...
> Running SQL 2005/Win 2003 (publisher/distributor) & SQL 2000/Win 2003
> (subscriber).
> Lat night around 6:30, 7 of my 15 subscriptions to one publication
> started to fail with the message below. I am not using merge
> anywhere, currently, though I have had a merge publication in the past
> that all 15 subscrivers, subscribed to. The publication is currently
> a phamtom one that I cannot delete. They do not appear in the local
> publications folder, but only in the replicaiton monitor for the
> original publisher.
> I do not know if these are related, but any help will be appreciated.
> Larry...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Command attempted:
> if @.@.trancount > 0 rollback tran
> (Transaction sequence number: 0x0000147E0000451A001900000000, Command
> ID: 1)
> Error messages:
> Invalid object name 'dbo.MSmerge_tombstone'. (Source: MSSQLServer,
> Error number: 208)
> Get help: http://help/208
> Invalid object name 'dbo.MSmerge_tombstone'. (Source: MSSQLServer,
> Error number: 208)
> Get help: http://help/208
> Could not use view or function 'tsvw_842FD9495DB74084823D364E97EB6D70'
> because of binding errors. (Source: MSSQLServer, Error number: 4413)
> Get help: http://help/4413
> Invalid object name 'dbo.MSmerge_tombstone'. (Source: MSSQLServer,
> Error number: 208)
> Get help: http://help/208
> Could not use view or function 'tsvw_842FD9495DB74084823D364E97EB6D70'
> because of binding errors. (Source: MSSQLServer, Error number: 4413)
> Get help: http://help/4413
> Invalid object name 'dbo.MSmerge_tombstone'. (Source: MSSQLServer,
> Error number: 208)
> Get help: http://help/208
>

Wednesday, March 21, 2012

Invalid Object

I'm running a simple select statement.
Select TestSchema From TestDB where DbName = 'TEST'
It runs fine when I run it in Enterprise Manager.
But I get an error message when I run it in Query Analyser.
Error: Invalid object name 'TestDB'
Help!DBNAME is a built-in function. If your table has a column of that name,
try:
Select TestSchema From TestDB where [DbName] = 'TEST'
Tom
---
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinnaclepublishing.com
"sql" <sql@.discussions.microsoft.com> wrote in message
news:DC485C69-107A-4A63-8B1B-6B71BCBA75AE@.microsoft.com...
I'm running a simple select statement.
Select TestSchema From TestDB where DbName = 'TEST'
It runs fine when I run it in Enterprise Manager.
But I get an error message when I run it in Query Analyser.
Error: Invalid object name 'TestDB'
Help!|||Tom:
I tried with the square brackets, but I still get the same error message.
"Tom Moreau" wrote:
> DBNAME is a built-in function. If your table has a column of that name,
> try:
> Select TestSchema From TestDB where [DbName] = 'TEST'
>
> --
> Tom
> ---
> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
> SQL Server MVP
> Columnist, SQL Server Professional
> Toronto, ON Canada
> www.pinnaclepublishing.com
>
> "sql" <sql@.discussions.microsoft.com> wrote in message
> news:DC485C69-107A-4A63-8B1B-6B71BCBA75AE@.microsoft.com...
> I'm running a simple select statement.
> Select TestSchema From TestDB where DbName = 'TEST'
> It runs fine when I run it in Enterprise Manager.
> But I get an error message when I run it in Query Analyser.
>
> Error: Invalid object name 'TestDB'
> Help!
>|||Tom,
Isn't the function db_name()?
I'm suspicious that the table may be under a different owner name. Try owner qualify the table to see what you get.
Richard
--
Message posted via http://www.sqlmonster.com|||Oops, you're right. I'd be tempted to run the profiler and see what's being
sent when he runs it (successfully) through Enterprise Manager. That may
give a clue.
--
Tom
---
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinnaclepublishing.com
"Richard Ding via SQLMonster.com" <forum@.SQLMonster.com> wrote in message
news:d534a166a789418e873d7ab25b41a525@.SQLMonster.com...
Tom,
Isn't the function db_name()?
I'm suspicious that the table may be under a different owner name. Try owner
qualify the table to see what you get.
Richard
--
Message posted via http://www.sqlmonster.com

Invalid Object

I'm running a simple select statement.
Select TestSchema From TestDB where DbName = 'TEST'
It runs fine when I run it in Enterprise Manager.
But I get an error message when I run it in Query Analyser.
Error: Invalid object name 'TestDB'
Help!
DBNAME is a built-in function. If your table has a column of that name,
try:
Select TestSchema From TestDB where [DbName] = 'TEST'
Tom
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinnaclepublishing.com
"sql" <sql@.discussions.microsoft.com> wrote in message
news:DC485C69-107A-4A63-8B1B-6B71BCBA75AE@.microsoft.com...
I'm running a simple select statement.
Select TestSchema From TestDB where DbName = 'TEST'
It runs fine when I run it in Enterprise Manager.
But I get an error message when I run it in Query Analyser.
Error: Invalid object name 'TestDB'
Help!
|||Tom:
I tried with the square brackets, but I still get the same error message.
"Tom Moreau" wrote:

> DBNAME is a built-in function. If your table has a column of that name,
> try:
> Select TestSchema From TestDB where [DbName] = 'TEST'
>
> --
> Tom
> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
> SQL Server MVP
> Columnist, SQL Server Professional
> Toronto, ON Canada
> www.pinnaclepublishing.com
>
> "sql" <sql@.discussions.microsoft.com> wrote in message
> news:DC485C69-107A-4A63-8B1B-6B71BCBA75AE@.microsoft.com...
> I'm running a simple select statement.
> Select TestSchema From TestDB where DbName = 'TEST'
> It runs fine when I run it in Enterprise Manager.
> But I get an error message when I run it in Query Analyser.
>
> Error: Invalid object name 'TestDB'
> Help!
>
|||Tom,
Isn't the function db_name()?
I'm suspicious that the table may be under a different owner name. Try owner qualify the table to see what you get.
Richard
Message posted via http://www.sqlmonster.com
|||Oops, you're right. I'd be tempted to run the profiler and see what's being
sent when he runs it (successfully) through Enterprise Manager. That may
give a clue.
Tom
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinnaclepublishing.com
"Richard Ding via SQLMonster.com" <forum@.SQLMonster.com> wrote in message
news:d534a166a789418e873d7ab25b41a525@.SQLMonster.c om...
Tom,
Isn't the function db_name()?
I'm suspicious that the table may be under a different owner name. Try owner
qualify the table to see what you get.
Richard
Message posted via http://www.sqlmonster.com

Invalid Instance Name while trying to install MSDE

I am running XP SP2. I have downloaded MSDE (SQL Sever 2000) to put on my
laptop for training purposes. When I try to load the setup program I get an
error message saying "The Instance Name Specified Is Invalid" and then when I
acknowledge the message the install exits. I have searched for and tried to
understand the post that seem to relate to my problem but I am just not
knowledgable enough to understand what to do. If someone would please tell me
(in baby steps) how to fix this problem so I can install MSDE then I would
really appreciate it. If you need ANY additional information please feel free
to contact me and I will respond immediately. Your time and attention is very
much appreciated.
Thank you for your help...premium001
Read into the readme file in your extracted folder.
If there is an instance of SQL Server already installed, the MSDE should be
named.
"premium001" wrote:

> I am running XP SP2. I have downloaded MSDE (SQL Sever 2000) to put on my
> laptop for training purposes. When I try to load the setup program I get an
> error message saying "The Instance Name Specified Is Invalid" and then when I
> acknowledge the message the install exits. I have searched for and tried to
> understand the post that seem to relate to my problem but I am just not
> knowledgable enough to understand what to do. If someone would please tell me
> (in baby steps) how to fix this problem so I can install MSDE then I would
> really appreciate it. If you need ANY additional information please feel free
> to contact me and I will respond immediately. Your time and attention is very
> much appreciated.
> --
> Thank you for your help...premium001
|||hi,
premium001 wrote:
> I am running XP SP2. I have downloaded MSDE (SQL Sever 2000) to put
> on my laptop for training purposes. When I try to load the setup
> program I get an error message saying "The Instance Name Specified Is
> Invalid" and then when I acknowledge the message the install exits. I
> have searched for and tried to understand the post that seem to
> relate to my problem but I am just not knowledgable enough to
> understand what to do. If someone would please tell me (in baby
> steps) how to fix this problem so I can install MSDE then I would
> really appreciate it. If you need ANY additional information please
> feel free to contact me and I will respond immediately. Your time and
> attention is very much appreciated.
as <zhaounknown> already wrote, please read the proviede ReadmeFile... it
explains you have to provide a set of parameters to the setup.exe boostrap
installer..
typically you have to provide the SAPWD="your strong password" as you are
forced to protect "sa" login ...
you can specify if you like to enable network connections
(DISABLENETWORKPROTOCOLS=0), if you like to permit standard SQL Server
authenticated connections (SECURITY MODE=SQL) as the default does not permit
them to be authenticated, or if you like to install a named instance
(INSTANCENAME="the name").. and please enable verbose logging of the
installation task providing the /L*v "c:\Msde.txt" parameter, which results
in an about 2Mb text file you can inspect for
RETURN VALUE 3
entries indicating troubles... about 10/20 lines before and/or after each
entry some (sometime cryptic) description of the problem will be logged..
so, if you like to install a named instance (named "MSDE") with enabled
networkprotocols and enabling SQL Server authenticated connections you have
to provide something similar to
C:\MSDERelaA\>setup.exe INSTANCENAME="MSDE" SECURITY MODE=SQL
DISABLENETWORKPROTOCOLS=0 SAPWD="your strong password" /L*v "c:\Msde.txt"
all on the same line from the command promt
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.11.1 - DbaMgr ver 0.57.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply

Monday, March 19, 2012

Invalid entries in sysindexes

Hi all,
I am running an INDEXDEFRAG on all tables in the database and am receiving
the following error:
DBCC INDEXDEFRAG (msdgen, 279500991, pmshr_iv_inventory_trans_init)
Server: Msg 7999, Level 16, State 8, Line 1
Could not find any index named 'pmshr_iv_inventory_trans_init' for table
'pmshr_iv_inventory_trans_init'.
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
I looked in the sysindexes table and these entries exist, but from the EM if
you right click the table and choose Manage Indexes they are not present.
I am receiving this on 23 tables/indexes in the the entire DB and am
wondering if there is a way to remove the invalid entries programmatically.
Let me know and thanks for reading,
Jon BrabhamJon Brabham wrote:
> Hi all,
> I am receiving this on 23 tables/indexes in the the entire DB and am
> wondering if there is a way to remove the invalid entries programmatically
.
> Let me know and thanks for reading,
> Jon Brabham
>
Do this at your own risk...
/* Allow direct modification of system tables */
EXEC sp_configure allow, 1
RECONFIGURE WITH OVERRIDE
GO
USE database_name
GO
/* Backup sysindexes table, just in case */
SELECT * INTO sysindexes_bak FROM sysindexes
DELETE FROM sysindexes WHERE name = index_name
GO
/* Dis-allow direct modification of system tables */
EXEC sp_configure allow, 0
RECONFIGURE WITH OVERRIDE
GO
/* Recreate the dropped index */
CREATE INDEX index_name ON table_name (key definitions)|||Jon
I'd not follow Tracy's advice because it is really risky to deal with
system tables.
Run DBCC CHECKDB first and see whether it retruns errors or not.
"Jon Brabham" <jbrabham@.hsesystems.com> wrote in message
news:eZ1EEBYkGHA.408@.TK2MSFTNGP03.phx.gbl...
> Hi all,
> I am running an INDEXDEFRAG on all tables in the database and am receiving
> the following error:
> DBCC INDEXDEFRAG (msdgen, 279500991, pmshr_iv_inventory_trans_init)
> Server: Msg 7999, Level 16, State 8, Line 1
> Could not find any index named 'pmshr_iv_inventory_trans_init' for table
> 'pmshr_iv_inventory_trans_init'.
> DBCC execution completed. If DBCC printed error messages, contact your
> system administrator.
> I looked in the sysindexes table and these entries exist, but from the EM
> if you right click the table and choose Manage Indexes they are not
> present.
> I am receiving this on 23 tables/indexes in the the entire DB and am
> wondering if there is a way to remove the invalid entries
> programmatically.
> Let me know and thanks for reading,
> Jon Brabham
>|||Yeah I agree, good to know though.
I noticed that all of the indexes that happened to be giving me this error
had an sysindexes.indid of 0 so I just filtered them out.
If anyone knows a good way to automatically re-certify all the data in these
tables it would also be good to know.
Thanks for the replies!
Jon
ID of index:
1 = Clustered index
>1 = Nonclustered
255 = Entry for tables that have text or image data
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:Ox7vKvpkGHA.1600@.TK2MSFTNGP04.phx.gbl...
> Jon
> I'd not follow Tracy's advice because it is really risky to deal with
> system tables.
> Run DBCC CHECKDB first and see whether it retruns errors or not.
>
> "Jon Brabham" <jbrabham@.hsesystems.com> wrote in message
> news:eZ1EEBYkGHA.408@.TK2MSFTNGP03.phx.gbl...
>|||Uri Dimant wrote:
> Jon
> I'd not follow Tracy's advice because it is really risky to deal with
> system tables.
>
Question was "wondering if there is a way to remove the invalid entries
programmatically", I responded with a way to do just that, qualified
with "Do this at your own risk". Wasn't recommended that he do it, I
was answering his question.

Invalid Descriptor Index on SQL 2005 sp 1

We have an app that use ODBC and works on SQL server 2000 but
when running the same app and same ODBC driver on 2005 sp 1 we get
Invalid Descriptor Index
Why?
Regards,
DavidMaybe if you show us the actual code that is causing the issue we could make
a more informed answer.
Andrew J. Kelly SQL MVP
"David@.StreamServe" <david.svennevid@.gmail.com> wrote in message
news:1147860037.905325.193680@.j55g2000cwa.googlegroups.com...
> We have an app that use ODBC and works on SQL server 2000 but
> when running the same app and same ODBC driver on 2005 sp 1 we get
> Invalid Descriptor Index
>
> Why?
> Regards,
> David
>

Invalid cursor state

Running a stored procedure returns
Invalid cursor state
Why does that occur ?Check if this KB article applies: http://support.microsoft.com/kb/831997
Linchi
"Hassan" wrote:

> Running a stored procedure returns
> Invalid cursor state
> Why does that occur ?
>
>|||Its SQL 2005 SP2 ;)
"Linchi Shea" <LinchiShea@.discussions.microsoft.com> wrote in message
news:F1843F26-586A-4C5E-8AD9-42497EB698E3@.microsoft.com...[vbcol=seagreen]
> Check if this KB article applies: http://support.microsoft.com/kb/831997
> Linchi
> "Hassan" wrote:
>

Invalid cursor state

Running a stored procedure returns
Invalid cursor state
Why does that occur ?Check if this KB article applies: http://support.microsoft.com/kb/831997
Linchi
"Hassan" wrote:
> Running a stored procedure returns
> Invalid cursor state
> Why does that occur ?
>
>|||Its SQL 2005 SP2 ;)
"Linchi Shea" <LinchiShea@.discussions.microsoft.com> wrote in message
news:F1843F26-586A-4C5E-8AD9-42497EB698E3@.microsoft.com...
> Check if this KB article applies: http://support.microsoft.com/kb/831997
> Linchi
> "Hassan" wrote:
>> Running a stored procedure returns
>> Invalid cursor state
>> Why does that occur ?
>>

Invalid cursor state

Running a stored procedure returns
Invalid cursor state
Why does that occur ?
Check if this KB article applies: http://support.microsoft.com/kb/831997
Linchi
"Hassan" wrote:

> Running a stored procedure returns
> Invalid cursor state
> Why does that occur ?
>
>
|||Its SQL 2005 SP2 ;)
"Linchi Shea" <LinchiShea@.discussions.microsoft.com> wrote in message
news:F1843F26-586A-4C5E-8AD9-42497EB698E3@.microsoft.com...[vbcol=seagreen]
> Check if this KB article applies: http://support.microsoft.com/kb/831997
> Linchi
> "Hassan" wrote:

Monday, March 12, 2012

Invalid Connection to SQL2000 after installing SP3

After having installed SP3 on SQL 2000 server standard edition running
on Windows 2000 server, users cannot access the database whether
through Enterprise Manager, Query Analyser, or my application.
It was running fine before. Users are running Windows XP. The database
is a named instance and is used for replication. Funny enough, I may
access the database from my development machine which is running
Windows 2000 server.
Help is most welcome
PatrickPatrick,
What are the symptoms? What does "users cannot access the database"
mean? Does it time-out, do they get an error? Please paste the error
message.
--
Mark Allison, SQL Server MVP
http://www.markallison.co.uk
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602m.html
Patrick wrote:
> After having installed SP3 on SQL 2000 server standard edition running
> on Windows 2000 server, users cannot access the database whether
> through Enterprise Manager, Query Analyser, or my application.
> It was running fine before. Users are running Windows XP. The database
> is a named instance and is used for replication. Funny enough, I may
> access the database from my development machine which is running
> Windows 2000 server.
> Help is most welcome
> Patrick

Invalid Connection message

I have a database running under MSDE 2000 to which I can connect either
through MS Access or Coldfusion. However, I wanted to run a script at the
command prompt to try and have an automatic backup.
I typed OSQL -Usa -P at the command prompt and supplied a valid password but
after a few moments I got back:
[Shared Memory] Invalid connection.
[Shared Memory]ConnectionOpen (Invalid Instance()).
Can anyone point me in the right direction as to what might be wrong?
many thanks
june
hi June,
June Macleod wrote:
> I have a database running under MSDE 2000 to which I can connect
> either through MS Access or Coldfusion. However, I wanted to run a
> script at the command prompt to try and have an automatic backup.
> I typed OSQL -Usa -P at the command prompt and supplied a valid
> password but after a few moments I got back:
> [Shared Memory] Invalid connection.
> [Shared Memory]ConnectionOpen (Invalid Instance()).
>
did you provide the correct instance name in the form
osql -S(local)\InstanceName
?
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.15.0 - DbaMgr ver 0.60.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply
|||Thank you, that was the problem. I will now attempt to run my script.
June
"Andrea Montanari" <andrea.sqlDMO@.virgilio.it> wrote in message
news:3p0ba1F82e2mU1@.individual.net...
> hi June,
> June Macleod wrote:
> did you provide the correct instance name in the form
> osql -S(local)\InstanceName
> ?
> --
> Andrea Montanari (Microsoft MVP - SQL Server)
> http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
> DbaMgr2k ver 0.15.0 - DbaMgr ver 0.60.0
> (my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
> interface)
> -- remove DMO to reply
>

Friday, March 9, 2012

invalid column in report service

I have a problem with report service.
i have a stored procedure and when i am running it in the sql 2005, it will exexute successful and no proplem. but when i a mputting it in my report service as my dataset it is giving me error 207, invalid column.
i checked it hundred times and all the names are right and it is existing but why it is giving me this error?
thanks alot for any helpproblem solved,
thanks|||

Quote:

Originally Posted by voroojak

problem solved,
thanks


it will happen, when specify the field name is not correct or unknown field name
from a table in reports or qrey.

(just post how it solved if it solved)

thankyou|||Thanks for your consideration.

in my Stored procedures i was inserting into other table in another database. I mean i was getting value from one database and and wante dto i nsert in another database, the problem was that the name of the columns that i was trying to insert to was not same.
i mean in my first database all the names when they are naming is like first_name but in the second one it was first name. and i was not checking the format of the second data base.
those columns that it was giving me a message that it is invalid, i had it along my stored procedures a lot and i was thinking there is a problem in reaniming my columns or something else.

i hope i could explain it properly.

invalid column error when updating a new column that was added by alter table

i am getting an error "Invalid Column name <column name>" message when runni
ng an update statement which updates a new column which was just added by an
alter table statement. If i run the alter statement and update statement se
perately, i don't get any e
rrors and it works. I only get this when they run together in a script or st
ored proc.
Is this a bug and what are the alternatives. Thanks.This is the way that the parser work. As the column doesn't (yet) exists at
parse time, the update will
generate the error. One way around it is to do the update with dynamic SQL.
OTOH, I'd re-consider why you have
to add a column dynamically in the first place (if possible).
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"jsin" <anonymous@.discussions.microsoft.com> wrote in message
news:6A977D73-49D1-4229-92B1-B90B8E054540@.microsoft.com...
> i am getting an error "Invalid Column name <column name>" message when running an
update statement which
updates a new column which was just added by an alter table statement. If i
run the alter statement and update
statement seperately, i don't get any errors and it works. I only get this w
hen they run together in a script
or stored proc.
> Is this a bug and what are the alternatives. Thanks.

invalid column error when updating a new column that was added by alter table

i am getting an error "Invalid Column name <column name>" message when running an update statement which updates a new column which was just added by an alter table statement. If i run the alter statement and update statement seperately, i don't get any e
rrors and it works. I only get this when they run together in a script or stored proc.
Is this a bug and what are the alternatives. Thanks.
This is the way that the parser work. As the column doesn't (yet) exists at parse time, the update will
generate the error. One way around it is to do the update with dynamic SQL. OTOH, I'd re-consider why you have
to add a column dynamically in the first place (if possible).
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"jsin" <anonymous@.discussions.microsoft.com> wrote in message
news:6A977D73-49D1-4229-92B1-B90B8E054540@.microsoft.com...
> i am getting an error "Invalid Column name <column name>" message when running an update statement which
updates a new column which was just added by an alter table statement. If i run the alter statement and update
statement seperately, i don't get any errors and it works. I only get this when they run together in a script
or stored proc.
> Is this a bug and what are the alternatives. Thanks.

Invalid Buffer 17805

Hello
I am running SQL Server 2000 with SP 4 on Windows Server 2003
Enterprice Edisction.
I receive several notifications with the following:
Error: Message not found. Insertion strings:Error: 17805, Severity: 20,
3 Invalid buffer received from client.
I want to create a SQL Profiler trace that will help me to identify
which
sql statements \ stored procedures are causing this error. What will i
need
to specify in the trace to identify the transaction that is causing
this
error and what kind of filter if any do i need to apply?
I catch the error with SQLagent Alerts, but I want to known what
statement or SP lanch the error.
Help me please
Salvo
Try using something like:
Exceptions from the Errors and Warnings event class.
SQL:StmtStarting from the T-SQL event classes
SP:Starting and SP:StmtStarting from the Stored Procedures
event classes.
Filters depend on your system. Leave the application not
like SQL Profiler filter in there and additionally add at
least SQLAgent% in the same not like application filter.
-Sue
On 8 Nov 2005 06:28:15 -0800, "salvoWJ"
<salvatore.toro@.volawindjet.it> wrote:

>Hello
>I am running SQL Server 2000 with SP 4 on Windows Server 2003
>Enterprice Edisction.
>I receive several notifications with the following:
>Error: Message not found. Insertion strings:Error: 17805, Severity: 20,
> 3 Invalid buffer received from client.
>I want to create a SQL Profiler trace that will help me to identify
>which
>sql statements \ stored procedures are causing this error. What will i
>need
>to specify in the trace to identify the transaction that is causing
>this
>error and what kind of filter if any do i need to apply?
>I catch the error with SQLagent Alerts, but I want to known what
>statement or SP lanch the error.
>
>Help me please
>Salvo

Invalid authorization specification connecting to Sql Server 2000

I have a vb 6 program that has been running for several years against a 6.5 db. I convert the db to 2000, and now when I repoint the software to the 2000 db, I get "Invalid Authorization Specification" when I try to open the connection. The connection string is:
Dim conn As ADODB.Connection
Set conn = New ADODB.Connection
conn.Open "Provider=SQLOLEDB" & _
";Data Source=" & sServer & _
";Initial Catalog=" & sDB & _
";User Id=" & goProcess.UserID & _
";Password=" & goProcess.Password & ";"
All of the variables are filled out correctly, when I go against a 6.5 it works, Sql Server 2000 doesn't.Did you set up the user in SQL 2000? and give persmissions for the database you are querying against?
|||I used the "sa" user to try to eliminate any issues. I'm able to use several C# programs to connect to the server in the same way (except vb uses ado, and C# uses ado.net).