Wednesday, March 21, 2012
Invalid Instance Invalid Connection NT 4.0
e:
[DBNETLIB] ConnectionOpen [Invalid Instance ()]Invalid Connection
Another Win NT 4.0 client works fine.
SQL MSDE 2000 release A installed on the server. Another SQL 2000 instance
is running (from another vendor) on the same machine. MDAC 2.7 sp1 refresh
checks out fine in component checker.
Any idea?By default MSDE 2000 SP3 only allows local connections, you have to go in
and enable MSDE to listen on TCP or Named Pipes if you wnat to allow remote
connectivity.
Cindy Gross, MCDBA, MCSE
http://cindygross.tripod.com
This posting is provided "AS IS" with no warranties, and confers no rights.
Monday, March 19, 2012
Invalid Data Type error with Subreports
If I run each of the subreports by themselves, entering in value for the parameter, they run fine.
When I try to run the master report, it runs, but the subreport sections contain the following text instead of the correct output: "Error: Subreport could not be shown." The Output window shows 2 warning, one for each subreport:
The expression use in subreport 'subreport1' returned a data type that is not valid.I don't know for a fact that it is the parameter causing the problem, because the error message has a blank for the expression that is having the problem.
Each subreport is a simple table with one column containing string fields from a simple query.
Anyone have any ideas?It sounds like you are trying to pass GUIDs as parameters to the subreport.
On the subreport parameters dialog, use the CStr(...) function to convert the Guids to strings. E.g. =CStr(Fields!GuidColumn.Value)
-- Robert|||Guys:
I am having the same problem. I tried the CStr() function on the parameters to the SubReport, but had the same result. Any more ideas?
Thanks,
Mike|||Whoops! I am getting a different error when using the CStr() function:
Cast from type 'Guid' to type 'String' is not valid.
|||I think I originally tried Robert's suggestion and was still giving an error like you found.
What I ended up doing was going into the queries for both the master and sub report and using "(CAST ScriptID AS varchar(255))" in the queries themselves. Then, these string fields linked up without a problem.
Gregg
|||Sorry, I meant using =Fields!GuidColum.Value.ToString() to convert it into a string. Anyway, the CAST in the query is also fine.-- Robert
Invalid Data Type error with Subreports
If I run each of the subreports by themselves, entering in value for the parameter, they run fine.
When I try to run the master report, it runs, but the subreport sections contain the following text instead of the correct output: "Error: Subreport could not be shown." The Output window shows 2 warning, one for each subreport:
The expression use in subreport 'subreport1' returned a data type that is not valid.I don't know for a fact that it is the parameter causing the problem, because the error message has a blank for the expression that is having the problem.
Each subreport is a simple table with one column containing string fields from a simple query.
Anyone have any ideas?It sounds like you are trying to pass GUIDs as parameters to the subreport.
On the subreport parameters dialog, use the CStr(...) function to convert the Guids to strings. E.g. =CStr(Fields!GuidColumn.Value)
-- Robert|||Guys:
I am having the same problem. I tried the CStr() function on the parameters to the SubReport, but had the same result. Any more ideas?
Thanks,
Mike|||Whoops! I am getting a different error when using the CStr() function:
Cast from type 'Guid' to type 'String' is not valid.
|||I think I originally tried Robert's suggestion and was still giving an error like you found.
What I ended up doing was going into the queries for both the master and sub report and using "(CAST ScriptID AS varchar(255))" in the queries themselves. Then, these string fields linked up without a problem.
Gregg
|||Sorry, I meant using =Fields!GuidColum.Value.ToString() to convert it into a string. Anyway, the CAST in the query is also fine.-- Robert
Invalid Data Type error with Subreports
If I run each of the subreports by themselves, entering in value for the parameter, they run fine.
When I try to run the master report, it runs, but the subreport sections contain the following text instead of the correct output: "Error: Subreport could not be shown." The Output window shows 2 warning, one for each subreport:
The expression use in subreport 'subreport1' returned a data type that is not valid.I don't know for a fact that it is the parameter causing the problem, because the error message has a blank for the expression that is having the problem.
Each subreport is a simple table with one column containing string fields from a simple query.
Anyone have any ideas?It sounds like you are trying to pass GUIDs as parameters to the subreport.
On the subreport parameters dialog, use the CStr(...) function to convert the Guids to strings. E.g. =CStr(Fields!GuidColumn.Value)
-- Robert|||Guys:
I am having the same problem. I tried the CStr() function on the parameters to the SubReport, but had the same result. Any more ideas?
Thanks,
Mike|||Whoops! I am getting a different error when using the CStr() function:
Cast from type 'Guid' to type 'String' is not valid.
|||I think I originally tried Robert's suggestion and was still giving an error like you found.
What I ended up doing was going into the queries for both the master and sub report and using "(CAST ScriptID AS varchar(255))" in the queries themselves. Then, these string fields linked up without a problem.
Gregg
|||Sorry, I meant using =Fields!GuidColum.Value.ToString() to convert it into a string. Anyway, the CAST in the query is also fine.-- Robert
Friday, March 9, 2012
Invalid authorization specification connecting to Sql Server 2000
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).
Wednesday, March 7, 2012
Invalid attribute/option identifier
I am getting this message when connecting to SQL Server through Enterprise Manager. However all my DSNs work without any problems.
================
A Connection could not be established to DBSERVER.
Reason: Invalid attribute/option identifier.
Please verify SQL Server is running and check your SQL Server registration properties (by right-clicking on the DBSERVER node) and try again.
================
I have reinstalled SQL Server 2000 and MDAC (ver 2.6) but no success.
Please help!MDAC 2.8 is out - try that.
Also try using NT authentiocation.|||Do not install MDAC by itself. Use SP3 to alter MDAC level.