Click here to Skip to main content
15,881,882 members
Home / Discussions / Database
   

Database

 
GeneralRe: Selecting some range of a table rows Pin
l a u r e n18-Mar-04 18:40
l a u r e n18-Mar-04 18:40 
GeneralRe: Selecting some range of a table rows Pin
Mazdak18-Mar-04 22:24
Mazdak18-Mar-04 22:24 
GeneralRe: Selecting some range of a table rows Pin
JackDotNet24-Mar-04 22:42
JackDotNet24-Mar-04 22:42 
GeneralDatagrid not showing up Pin
cavall17-Mar-04 8:49
cavall17-Mar-04 8:49 
GeneralRe: Datagrid not showing up Pin
Mazdak17-Mar-04 10:15
Mazdak17-Mar-04 10:15 
Generalnvarchar parameter of sql stored proc. Pin
Matthieu.C17-Mar-04 6:33
Matthieu.C17-Mar-04 6:33 
GeneralRe: nvarchar parameter of sql stored proc. Pin
Not Active17-Mar-04 7:15
mentorNot Active17-Mar-04 7:15 
GeneralRe: nvarchar parameter of sql stored proc. Pin
Matthieu.C17-Mar-04 22:11
Matthieu.C17-Mar-04 22:11 
Hi,

The procedure:

ALTER PROCEDURE matthieu77.GetUserByName ( @Nom nvarchar )

AS
SELECT UserID, Nom
FROM Users
WHERE Nom=@Nom

RETURN

The code that calls this proc:

SqlParameter param = new SqlParameter ("@Nom",SqlDbType.NVarChar);
param.Direction=ParameterDirection.Input;
param.Value="Bonjour";
SqlDataAdapter ad = new SqlDataAdapter();
ad.SelectCommand = new SqlCommand();
ad.SelectCommand.Connection = sqlConnection1;
ad.SelectCommand.CommandText = "GetUserByName";
ad.SelectCommand.CommandType =CommandType.StoredProcedure;
ad.SelectCommand.Parameters.Add(param);
ad.Fill(dataSet11,"Users");
DataGrid1.DataBind();

If I replace in the stored procedure Nom='Bonjour' it works fine.

Regards,

Matthieu
Generalcant pull data into datagrid from MS access file Pin
cavall17-Mar-04 6:13
cavall17-Mar-04 6:13 
GeneralRe: cant pull data into datagrid from MS access file Pin
Marcie Jones17-Mar-04 6:52
Marcie Jones17-Mar-04 6:52 
GeneralRe: cant pull data into datagrid from MS access file Pin
cavall19-Mar-04 6:11
cavall19-Mar-04 6:11 
GeneralRe: cant pull data into datagrid from MS access file Pin
cavall19-Mar-04 6:31
cavall19-Mar-04 6:31 
GeneralDispose and Connection Pooling Pin
Mauricio Ritter17-Mar-04 5:28
Mauricio Ritter17-Mar-04 5:28 
GeneralRe: Dispose and Connection Pooling Pin
Marcie Jones17-Mar-04 5:56
Marcie Jones17-Mar-04 5:56 
GeneralConnection Timeout Pin
Mauricio Ritter17-Mar-04 5:08
Mauricio Ritter17-Mar-04 5:08 
Generalserver error msg- 'Index (zero based) must be greater than or equal to zero and less than the size of the argument list.' when executing stored procedure in asp.net Pin
angelrain16-Mar-04 18:43
angelrain16-Mar-04 18:43 
GeneralRe: server error msg- 'Index (zero based) must be greater than or equal to zero and less than the size of the argument list.' when executing stored procedure in asp.net Pin
Not Active17-Mar-04 2:12
mentorNot Active17-Mar-04 2:12 
GeneralOdbc and .dbf data file Pin
mabb16-Mar-04 6:39
mabb16-Mar-04 6:39 
GeneralRe: Odbc and .dbf data file Pin
l a u r e n18-Mar-04 18:43
l a u r e n18-Mar-04 18:43 
General9x/xp paradox table compatibility Pin
kzyczynski15-Mar-04 11:57
kzyczynski15-Mar-04 11:57 
GeneralRe: 9x/xp paradox table compatibility Pin
ian mariano15-Mar-04 19:50
ian mariano15-Mar-04 19:50 
GeneralBinding variables to columns using names... Pin
Jesse Evans15-Mar-04 11:04
Jesse Evans15-Mar-04 11:04 
GeneralRe: Binding variables to columns using names... Pin
Chris Meech16-Mar-04 7:42
Chris Meech16-Mar-04 7:42 
GeneralRe: Binding variables to columns using names... Pin
Jesse Evans16-Mar-04 8:05
Jesse Evans16-Mar-04 8:05 
General% and _ Pin
yyf15-Mar-04 8:31
yyf15-Mar-04 8:31 

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.