Showing posts with label include. Show all posts
Showing posts with label include. Show all posts

Monday, March 19, 2012

Another SqlParameterCollection include ParameterName“@Id” SqlParameter。

error:
Another SqlParameterCollection include ParameterName"@.Id" SqlParameter?

if I remove one of " RunProc("test",param);" ,there will be right

private void Page_Load(object sender, System.EventArgs e)
{
SqlParameter param = new SqlParameter("@.Id", SqlDbType.Int);
param.Value = 1;

RunProc("test",param);
RunProc("test",param); //if i remove this line ,it's OK
}
public void RunProc(string procName, SqlParameter pram)
{
SqlConnection con = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"]);
con.Open();

SqlCommand cmd = new SqlCommand(procName, con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add(pram);
cmd.ExecuteNonQuery();

con.Close();
}You can't use the same SqlParameter multiple times. Try something like this:

private void Page_Load(object sender, System.EventArgs e)
{
SqlParameter param = new SqlParameter("@.Id", SqlDbType.Int);
param.Value = 1;
RunProc("test",param);

SqlParameter param2 = new SqlParameter("@.Id", SqlDbType.Int);
param2.Value = 1;
RunProc("test",param2);
}

Sunday, February 12, 2012

Analysis Services in SQL Server 2000 for Small Business Server 2003

Hi there
Is Analysis Services included in SQL Server 2000 for SBS 2003? Apparently
SQL Server 2000 Standard Edition does include Analysis Services, but I don't
get the option
to install AS under the "Select SQL Server components" on my SBS 2003
Premium Technologies CD.
Please help
Best regards
Loane
Hi
You may be better off asking this in microsoft.public.windows.server.sbs
SQL Server is only available in the premium edition, therefore it sounds
like you must have that version?
Apparently there is a checkbox to tick that will install it, so it is a
matter of finding it!!!
http://tinyurl.com/8ntfy
Also read the section "Configuring Analysis Services" at
http://www.microsoft.com/technet/pro.../anservog.mspx
John
"Loane Sharp" <look_sharp_not@.hotmail.com> wrote in message
news:eHIq9e%23fFHA.3936@.tk2msftngp13.phx.gbl...
> Hi there
> Is Analysis Services included in SQL Server 2000 for SBS 2003? Apparently
> SQL Server 2000 Standard Edition does include Analysis Services, but I
> don't get the option
> to install AS under the "Select SQL Server components" on my SBS 2003
> Premium Technologies CD.
> Please help
> Best regards
> Loane
>
|||Thanks John

> Hi
> You may be better off asking this in microsoft.public.windows.server.sbs
> SQL Server is only available in the premium edition, therefore it sounds
> like you must have that version?
> Apparently there is a checkbox to tick that will install it, so it is a
> matter of finding it!!!
> http://tinyurl.com/8ntfy
> Also read the section "Configuring Analysis Services" at
> http://www.microsoft.com/technet/pro.../anservog.mspx
>
> John
>

Analysis Services in SQL Server 2000 for Small Business Server 2003

Hi there
Is Analysis Services included in SQL Server 2000 for SBS 2003? Apparently
SQL Server 2000 Standard Edition does include Analysis Services, but I don't
get the option
to install AS under the "Select SQL Server components" on my SBS 2003
Premium Technologies CD.
Please help
Best regards
LoaneHi
You may be better off asking this in microsoft.public.windows.server.sbs
SQL Server is only available in the premium edition, therefore it sounds
like you must have that version?
Apparently there is a checkbox to tick that will install it, so it is a
matter of finding it!!!
http://tinyurl.com/8ntfy
Also read the section "Configuring Analysis Services" at
http://www.microsoft.com/technet/pr...n/anservog.mspx
John
"Loane Sharp" <look_sharp_not@.hotmail.com> wrote in message
news:eHIq9e%23fFHA.3936@.tk2msftngp13.phx.gbl...
> Hi there
> Is Analysis Services included in SQL Server 2000 for SBS 2003? Apparently
> SQL Server 2000 Standard Edition does include Analysis Services, but I
> don't get the option
> to install AS under the "Select SQL Server components" on my SBS 2003
> Premium Technologies CD.
> Please help
> Best regards
> Loane
>|||Thanks John

> Hi
> You may be better off asking this in microsoft.public.windows.server.sbs
> SQL Server is only available in the premium edition, therefore it sounds
> like you must have that version?
> Apparently there is a checkbox to tick that will install it, so it is a
> matter of finding it!!!
> http://tinyurl.com/8ntfy
> Also read the section "Configuring Analysis Services" at
> [url]http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/anservog.mspx[/ur
l]
>
> John
>

Analysis Services in SQL Server 2000 for Small Business Server 2003

Hi there
Is Analysis Services included in SQL Server 2000 for SBS 2003? Apparently
SQL Server 2000 Standard Edition does include Analysis Services, but I don't
get the option
to install AS under the "Select SQL Server components" on my SBS 2003
Premium Technologies CD.
Please help
Best regards
LoaneHi
You may be better off asking this in microsoft.public.windows.server.sbs
SQL Server is only available in the premium edition, therefore it sounds
like you must have that version?
Apparently there is a checkbox to tick that will install it, so it is a
matter of finding it!!!
http://tinyurl.com/8ntfy
Also read the section "Configuring Analysis Services" at
http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/anservog.mspx
John
"Loane Sharp" <look_sharp_not@.hotmail.com> wrote in message
news:eHIq9e%23fFHA.3936@.tk2msftngp13.phx.gbl...
> Hi there
> Is Analysis Services included in SQL Server 2000 for SBS 2003? Apparently
> SQL Server 2000 Standard Edition does include Analysis Services, but I
> don't get the option
> to install AS under the "Select SQL Server components" on my SBS 2003
> Premium Technologies CD.
> Please help
> Best regards
> Loane
>|||Thanks John
> Hi
> You may be better off asking this in microsoft.public.windows.server.sbs
> SQL Server is only available in the premium edition, therefore it sounds
> like you must have that version?
> Apparently there is a checkbox to tick that will install it, so it is a
> matter of finding it!!!
> http://tinyurl.com/8ntfy
> Also read the section "Configuring Analysis Services" at
> http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/anservog.mspx
>
> John
>