Click here to Skip to main content
15,903,632 members
Home / Discussions / Database
   

Database

 
QuestionSQL & Ajax problem... Pin
Jacob Dixon22-Sep-08 4:22
Jacob Dixon22-Sep-08 4:22 
QuestionTo renaming of the column Pin
varsh1222-Sep-08 1:51
varsh1222-Sep-08 1:51 
AnswerRe: To renaming of the column Pin
Ashfield22-Sep-08 2:50
Ashfield22-Sep-08 2:50 
GeneralRe: To renaming of the column Pin
varsh1223-Sep-08 23:21
varsh1223-Sep-08 23:21 
Questiontake records from one table to another table Pin
premkumar.a.m22-Sep-08 1:45
premkumar.a.m22-Sep-08 1:45 
AnswerRe: take records from one table to another table Pin
Ashfield22-Sep-08 2:54
Ashfield22-Sep-08 2:54 
AnswerRe: take records from one table to another table Pin
notes4we22-Sep-08 5:41
notes4we22-Sep-08 5:41 
QuestionDo I have to enable someting exclusively in sql server express 2008 to initiate a stored procedure? Please see the problem below. Pin
JUNEYT21-Sep-08 23:01
JUNEYT21-Sep-08 23:01 
Hi,

It is quite annoying problem and I couldn't figure out what is causing it. The problem is:

When I invoke a stored procedure inside a sub procedure, it is working fine. However, when I try to invoke a stored procedure when I submit the web page, none of stored procedures are working even connection string and and assigned parameters are true as it can be seen below. "I get too many arguments error"

When I use a query in the aspx page, it works but when I invoke a stored procedure I get error message. What could cause the issue related to SQL SERVERS EXPRESS 2008?

<br />
<br />
'THIS IS THE CODE INSIDE AN ASPX FILE<br />
<br />
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"   ConnectionString="<%$ ConnectionStrings:HolidayDBConnectionString %>"        <br />
            InsertCommand='StoredProcedure1' <br />
            <br />
            <br />
            SelectCommand="SELECT DISTINCT [ActivityName] FROM [Activities] ORDER BY [ActivityName]" <br />
            InsertCommandType="StoredProcedure"><br />
            <InsertParameters><br />
                <asp:Parameter Name="GetActivityName" Type="String" /><br />
            </InsertParameters><br />
        </asp:SqlDataSource><br />
<br />


<br />
'HERE IS THE STORED PROCEDURE<br />
<br />
ALTER PROCEDURE dbo.StoredProcedure1	<br />
	(<br />
	@GetActivityName nvarchar(50)<br />
	)	<br />
AS<br />
<br />
<br />
        INSERT INTO Activities VALUES (@GetActivityName)<br />
<br />
<br />
	RETURN<br />
<br />


<br />
<br />
'HERE IS THE TABLE DEFINITION<br />
<br />
[PK] ActivityNumber bigint (IDENTITY COLUM) ALLOW NULLS FALSE<br />
     ActivityName  nvarchar(50) ALLOW NULLS FALSE<br />
<br />
<br />

Thanks.


What a curious mind needs to discover knowledge is noting else than a pin-hole.


AnswerRe: Do I have to enable someting exclusively in sql server express 2008 to initiate a stored procedure? Please see the problem below. Pin
Ashfield21-Sep-08 23:18
Ashfield21-Sep-08 23:18 
GeneralRe: Do I have to enable someting exclusively in sql server express 2008 to initiate a stored procedure? Please see the problem below. Pin
JUNEYT21-Sep-08 23:35
JUNEYT21-Sep-08 23:35 
GeneralRe: Do I have to enable someting exclusively in sql server express 2008 to initiate a stored procedure? Please see the problem below. Pin
Ashfield22-Sep-08 0:22
Ashfield22-Sep-08 0:22 
GeneralRe: Do I have to enable someting exclusively in sql server express 2008 to initiate a stored procedure? Please see the problem below. Pin
Wendelius22-Sep-08 8:06
mentorWendelius22-Sep-08 8:06 
QuestionDistributed systems design Pin
NicoJS21-Sep-08 22:18
NicoJS21-Sep-08 22:18 
AnswerRe: Distributed systems design Pin
Wendelius22-Sep-08 8:16
mentorWendelius22-Sep-08 8:16 
QuestionDetect sql server 2008 (Express) Pin
spif200121-Sep-08 22:03
spif200121-Sep-08 22:03 
AnswerRe: Detect sql server 2008 (Express) Pin
Tamer Oz22-Sep-08 22:03
Tamer Oz22-Sep-08 22:03 
GeneralRe: Detect sql server 2008 (Express) Pin
spif200122-Sep-08 22:57
spif200122-Sep-08 22:57 
QuestionFiring Trigger after 5 min(Autosave) Pin
g_amol21-Sep-08 20:38
g_amol21-Sep-08 20:38 
AnswerRe: Firing Trigger after 5 min(Autosave) Pin
Ashfield21-Sep-08 21:08
Ashfield21-Sep-08 21:08 
GeneralRe: Firing Trigger after 5 min(Autosave) Pin
g_amol21-Sep-08 22:18
g_amol21-Sep-08 22:18 
GeneralRe: Firing Trigger after 5 min(Autosave) Pin
Ashfield21-Sep-08 23:15
Ashfield21-Sep-08 23:15 
AnswerRe: Firing Trigger after 5 min(Autosave) Pin
nelsonpaixao22-Sep-08 12:47
nelsonpaixao22-Sep-08 12:47 
Questionto change the position of the column Pin
varsh1221-Sep-08 19:37
varsh1221-Sep-08 19:37 
AnswerRe: to change the position of the column Pin
Ashfield21-Sep-08 21:11
Ashfield21-Sep-08 21:11 
GeneralRe: to change the position of the column Pin
varsh1222-Sep-08 0:20
varsh1222-Sep-08 0:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.