Click here to Skip to main content
15,904,288 members
Home / Discussions / Database
   

Database

 
GeneralRe: Must declare the scalar variable error::PleaseHelp Pin
rzvme28-Nov-07 6:46
rzvme28-Nov-07 6:46 
GeneralRe: Must declare the scalar variable error::PleaseHelp Pin
pmarfleet28-Nov-07 8:03
pmarfleet28-Nov-07 8:03 
GeneralRe: Must declare the scalar variable error::PleaseHelp Pin
rzvme28-Nov-07 9:30
rzvme28-Nov-07 9:30 
GeneralRe: Must declare the scalar variable error::PleaseHelp Pin
pmarfleet28-Nov-07 10:02
pmarfleet28-Nov-07 10:02 
GeneralRe: Must declare the scalar variable error::PleaseHelp Pin
Pete O'Hanlon28-Nov-07 10:38
mvePete O'Hanlon28-Nov-07 10:38 
GeneralRe: Must declare the scalar variable error::PleaseHelp Pin
rzvme29-Nov-07 3:00
rzvme29-Nov-07 3:00 
GeneralRe: Must declare the scalar variable error::PleaseHelp Pin
Paul Conrad29-Nov-07 13:01
professionalPaul Conrad29-Nov-07 13:01 
QuestionADO .NET Problem with SQL Server 2000 Pin
skhan_wah28-Nov-07 3:03
skhan_wah28-Nov-07 3:03 
I wrote the following code. application runs , no error but it does not display any data. What will be the problem with it? some one please help me.although code i tokk is from book, but still there is problem...

using System;
using System.Data.SqlClient;

namespace ConsoleApplication2
{
public class ExecuteReadExample
{
public static void Main(string[] args)
{
// string source = "server = \\10.8.7.67" + "integrated security=SSPI;" + "database=Northwind";
//string select = " SELECT ContactName, CompanyName FROM Customers";
"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\App1\Your_Database_Name.mdb; User Id=admin; Password="
SqlConnection conn = new SqlConnection(source);
conn.Open();
SqlCommand cmd = new SqlCommand(select, conn);
SqlDataReader reader = cmd.ExecuteReader();
while(reader.Read())
{
Console.WriteLine("Contact : {0,-20} company : {1}" , reader[0] , reader[1]);
}
}
}
}


Safdar Khan
AnswerRe: ADO .NET Problem with SQL Server 2000 Pin
pmarfleet28-Nov-07 3:53
pmarfleet28-Nov-07 3:53 
AnswerRe: ADO .NET Problem with SQL Server 2000 Pin
skhan_wah29-Nov-07 4:24
skhan_wah29-Nov-07 4:24 
GeneralRe: ADO .NET Problem with SQL Server 2000 Pin
pmarfleet29-Nov-07 11:05
pmarfleet29-Nov-07 11:05 
AnswerRe: ADO .NET Problem with SQL Server 2000 Pin
Mike Dimmick28-Nov-07 6:25
Mike Dimmick28-Nov-07 6:25 
Question[Solved] Help, error around ")", but I found no error [modified] Pin
followait28-Nov-07 1:33
followait28-Nov-07 1:33 
AnswerRe: Help, error around ")", but I found no error Pin
SimulationofSai28-Nov-07 2:40
SimulationofSai28-Nov-07 2:40 
QuestionAdd date to SQL Pin
tr_thorn28-Nov-07 0:50
tr_thorn28-Nov-07 0:50 
AnswerRe: Add date to SQL Pin
Paddy Boyd28-Nov-07 1:07
Paddy Boyd28-Nov-07 1:07 
GeneralRe: Add date to SQL Pin
tr_thorn28-Nov-07 1:23
tr_thorn28-Nov-07 1:23 
GeneralRe: Add date to SQL Pin
tr_thorn28-Nov-07 1:40
tr_thorn28-Nov-07 1:40 
GeneralRe: Add date to SQL Pin
Tobias Schoenig28-Nov-07 23:45
Tobias Schoenig28-Nov-07 23:45 
GeneralRe: Add date to SQL Pin
Paul Conrad29-Nov-07 13:03
professionalPaul Conrad29-Nov-07 13:03 
QuestionStock report Pin
adyck27-Nov-07 22:44
adyck27-Nov-07 22:44 
AnswerRe: Stock report Pin
Prateek G27-Nov-07 22:55
Prateek G27-Nov-07 22:55 
GeneralRe: Stock report Pin
Prateek G27-Nov-07 23:05
Prateek G27-Nov-07 23:05 
GeneralRe: Stock report Pin
adyck28-Nov-07 20:17
adyck28-Nov-07 20:17 
AnswerRe: Stock report Pin
SimulationofSai27-Nov-07 23:01
SimulationofSai27-Nov-07 23:01 

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.