Re: Problem with SqlCommandBuilder.DeriveParameters
From: Patrice Scribe (nobody_at_nowhere.com)
Date: 03/04/04
- Next message: Michael Barrett: "Re: Installable ISAM error message"
- Previous message: ruca: "Resize datagrid rows"
- In reply to: Xandu: "Re: Problem with SqlCommandBuilder.DeriveParameters"
- Next in thread: Xandu: "RE: Problem with SqlCommandBuilder.DeriveParameters"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 4 Mar 2004 14:14:47 +0100
In this case, I don't see how to workaround other than doing your own
derivation (either by calling the same procedure or by using directly
Information_Schema.Parameters). Additionaly you'll be able then to cache
this information to save server roundtrips...
Patrice
--
"Xandu" <Kristian.Sandven@netinfodoc.no> a écrit dans le message de
news:6969720C-57E8-4D16-A7CA-39D41677DA63@microsoft.com...
> I've tried with:
> System.Data.SqlClient.SqlCommand cmd = new
System.Data.SqlClient.SqlCommand("\"SomeUSer\".\"PAK_TEST.P_OPEN\"",
sqlConnection1);
> cmd.CommandType = CommandType.StoredProcedure;
> System.Data.SqlClient.SqlCommandBuilder.DeriveParameters(cmd);
>
> This also fails, but with a different errormessage:
> Could not locate entry in sysdatabases for database "SomeUser". No entry
found with that name. Make sure the name is entered correctly.
>
> To me it seems that DeriveParameters splits the sp-name into
db.user.sp-name using period (.) and not quoted identifiers or square
brackets as it should.
>
> Xandu
- Next message: Michael Barrett: "Re: Installable ISAM error message"
- Previous message: ruca: "Resize datagrid rows"
- In reply to: Xandu: "Re: Problem with SqlCommandBuilder.DeriveParameters"
- Next in thread: Xandu: "RE: Problem with SqlCommandBuilder.DeriveParameters"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|