Click here to Skip to main content
15,890,946 members
Home / Discussions / Database
   

Database

 
QuestionNeed help with ASP.NET website administration tool! - Can't connect to the database when clicked on (AspSqlProvider) test link! Pin
Slow Learner3-Mar-06 9:52
Slow Learner3-Mar-06 9:52 
AnswerRe: Need help with ASP.NET website administration tool! - Can't connect to the database when clicked on (AspSqlProvider) test link! Pin
Slow Learner3-Mar-06 10:13
Slow Learner3-Mar-06 10:13 
QuestionProblem inserting NULL into ORACLE DATE field with ADO Pin
vray3-Mar-06 3:58
vray3-Mar-06 3:58 
QuestionAccess 2003 number of records Pin
Marc Soleda3-Mar-06 3:49
Marc Soleda3-Mar-06 3:49 
AnswerRe: Access 2003 number of records Pin
Mike Ellison3-Mar-06 6:45
Mike Ellison3-Mar-06 6:45 
Questiongetting notification of changed tables Pin
HotDogM3-Mar-06 1:05
HotDogM3-Mar-06 1:05 
Questionstored procedures Pin
david boon3-Mar-06 0:32
david boon3-Mar-06 0:32 
AnswerRe: stored procedures Pin
Mike Ellison3-Mar-06 6:10
Mike Ellison3-Mar-06 6:10 
david boon wrote:
how to write a stored procedure for filling a datagrid

A stored procedure won't exactly fill a datagrid for you. You would write a stored procedure to execute database code and optionally return a result set; if you do return data from the stored procedure, then you can use the .Fill() method of a DataAdapter object (OleDbDataAdapter, SqlDataAdapter, etc. depending on the brand of database you are working with) to populate a DataSet object. The DataSet object could then serve as the source for your DataGrid.

If your database system supports stored procedures, you can likely use the CREATE PROCEDURE statement - here's a very simple example:
CREATE PROCEDURE GetEmployees
( 
  @startOfLast varchar(128)
)
AS
BEGIN
  SELECT EmployeeID, LastName, FirstName, Department
    FROM MyEmployeesTable
   WHERE LastName LIKE @startOfLast + '%'
END
Specific syntax will still depend on your brand of database system.
QuestionCurrently logged on users? Pin
wasife3-Mar-06 0:07
wasife3-Mar-06 0:07 
AnswerRe: Currently logged on users? Pin
Mike Ellison3-Mar-06 6:34
Mike Ellison3-Mar-06 6:34 
QuestionHow to update a database? Pin
Diego F.2-Mar-06 23:47
Diego F.2-Mar-06 23:47 
AnswerRe: How to update a database? Pin
Paul Conrad3-Mar-06 17:50
professionalPaul Conrad3-Mar-06 17:50 
GeneralRe: How to update a database? Pin
Diego F.3-Mar-06 22:26
Diego F.3-Mar-06 22:26 
GeneralRe: How to update a database? Pin
Paul Conrad4-Mar-06 6:39
professionalPaul Conrad4-Mar-06 6:39 
Questiondollor to rupee conversion. Pin
GBal2-Mar-06 23:06
GBal2-Mar-06 23:06 
QuestionExport data via script Pin
JacquesDP2-Mar-06 17:52
JacquesDP2-Mar-06 17:52 
QuestionDefine SQL Field as Parameter Pin
thedom22-Mar-06 13:10
thedom22-Mar-06 13:10 
AnswerRe: Define SQL Field as Parameter Pin
thedom22-Mar-06 17:24
thedom22-Mar-06 17:24 
GeneralRe: Define SQL Field as Parameter Pin
Colin Angus Mackay2-Mar-06 20:40
Colin Angus Mackay2-Mar-06 20:40 
QuestionDump database to sql??? Pin
code-frog2-Mar-06 11:28
professionalcode-frog2-Mar-06 11:28 
AnswerRe: Dump database to sql??? Pin
kageorge2-Mar-06 23:09
kageorge2-Mar-06 23:09 
AnswerRe: Dump database to sql??? Pin
Rob Graham3-Mar-06 11:41
Rob Graham3-Mar-06 11:41 
QuestionRun-on commands Pin
turbochimp2-Mar-06 11:08
turbochimp2-Mar-06 11:08 
AnswerRe: Run-on commands Pin
thedom22-Mar-06 16:17
thedom22-Mar-06 16:17 
GeneralRe: Run-on commands Pin
turbochimp2-Mar-06 16:53
turbochimp2-Mar-06 16:53 

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.