Click here to Skip to main content
15,923,087 members
Home / Discussions / Database
   

Database

 
QuestionData being retrived from SQL Server is incorrect with Adapter.Fill Pin
chapas17-Oct-08 7:01
chapas17-Oct-08 7:01 
AnswerRe: Data being retrived from SQL Server is incorrect with Adapter.Fill Pin
Mycroft Holmes17-Oct-08 23:01
professionalMycroft Holmes17-Oct-08 23:01 
GeneralRe: Data being retrived from SQL Server is incorrect with Adapter.Fill Pin
chapas18-Oct-08 0:47
chapas18-Oct-08 0:47 
AnswerRe: Data being retrived from SQL Server is incorrect with Adapter.Fill Pin
Rob Graham18-Oct-08 7:13
Rob Graham18-Oct-08 7:13 
GeneralRe: Data being retrived from SQL Server is incorrect with Adapter.Fill Pin
Mycroft Holmes18-Oct-08 17:38
professionalMycroft Holmes18-Oct-08 17:38 
GeneralRe: Data being retrived from SQL Server is incorrect with Adapter.Fill Pin
chapas21-Oct-08 6:13
chapas21-Oct-08 6:13 
QuestionSql Pin
maana_203017-Oct-08 5:57
maana_203017-Oct-08 5:57 
AnswerSample Table create scripts Pin
David Mujica17-Oct-08 6:37
David Mujica17-Oct-08 6:37 
The following script will create 3 tables for you. The idea is that you have Customers and Users. A user can request a price quote for a given customer, so you can experiment with joins amoung all 3 tables. Try it out.

CREATE TABLE [dbo].[Customer](<br />
	[CustomerID] [nvarchar](20) NOT NULL,<br />
	[Description] [nvarchar](90)  NULL,<br />
 CONSTRAINT [PK_Customer] PRIMARY KEY CLUSTERED <br />
(<br />
	[CustomerID] ASC<br />
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]<br />
) ON [PRIMARY]<br />
<br />
CREATE TABLE [dbo].[Users](<br />
	[User_Code] [nvarchar](40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,<br />
	[First_Name] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,<br />
	[Last_Name] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,<br />
 CONSTRAINT [PK_Users] PRIMARY KEY CLUSTERED <br />
(<br />
	[User_Code] ASC<br />
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]<br />
) ON [PRIMARY]<br />
<br />
CREATE TABLE [dbo].[QuoteHistory](<br />
	[ID] [int] IDENTITY(1,1) NOT NULL,<br />
	[Qdate] [smalldatetime] NULL,<br />
	[RequestorID] [nvarchar](40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,<br />
	[CustomerID] [nvarchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,<br />
	[ProductCode] [nvarchar](40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,<br />
 CONSTRAINT [PK_QuoteHistory] PRIMARY KEY CLUSTERED <br />
(<br />
	[ID] ASC<br />
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]<br />
) ON [PRIMARY]

AnswerRe: Sql Pin
Paul Conrad17-Oct-08 6:38
professionalPaul Conrad17-Oct-08 6:38 
AnswerRe: Sql Pin
Wendelius19-Oct-08 0:12
mentorWendelius19-Oct-08 0:12 
QuestionSET NOCOUNT ON; Pin
geekfromindia17-Oct-08 5:09
geekfromindia17-Oct-08 5:09 
AnswerRe: SET NOCOUNT ON; Pin
Jon_Boy17-Oct-08 10:19
Jon_Boy17-Oct-08 10:19 
GeneralRe: SET NOCOUNT ON; Pin
geekfromindia17-Oct-08 12:01
geekfromindia17-Oct-08 12:01 
GeneralRe: SET NOCOUNT ON; Pin
Jon_Boy17-Oct-08 13:23
Jon_Boy17-Oct-08 13:23 
AnswerRe: SET NOCOUNT ON; Pin
Mycroft Holmes17-Oct-08 22:57
professionalMycroft Holmes17-Oct-08 22:57 
QuestionProblem with creating a table using a stored procedure [modified] Pin
TheComputerMan17-Oct-08 4:29
TheComputerMan17-Oct-08 4:29 
AnswerRe: Problem with creating a table using a stored procedure Pin
TheComputerMan17-Oct-08 5:22
TheComputerMan17-Oct-08 5:22 
AnswerRe: Problem with creating a table using a stored procedure Pin
Kevin Horgan23-Oct-08 2:08
Kevin Horgan23-Oct-08 2:08 
GeneralRe: Problem with creating a table using a stored procedure Pin
TheComputerMan23-Oct-08 2:20
TheComputerMan23-Oct-08 2:20 
GeneralRe: Problem with creating a table using a stored procedure Pin
TheComputerMan23-Oct-08 3:35
TheComputerMan23-Oct-08 3:35 
Question'Open Table' menu option missing in SSMS 08 (SQL compact 3.5) Pin
Jon_Boy17-Oct-08 2:44
Jon_Boy17-Oct-08 2:44 
AnswerRe: 'Open Table' menu option missing in SSMS 08 (SQL compact 3.5) Pin
Jon_Boy18-Oct-08 14:41
Jon_Boy18-Oct-08 14:41 
QuestionFind Percentage? Pin
PadmaPriya.S16-Oct-08 23:59
PadmaPriya.S16-Oct-08 23:59 
AnswerRe: Find Percentage? Pin
Ashfield17-Oct-08 0:54
Ashfield17-Oct-08 0:54 
GeneralRe: Find Percentage? Pin
PadmaPriya.S17-Oct-08 1:09
PadmaPriya.S17-Oct-08 1:09 

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.