Click here to Skip to main content
15,904,416 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VBA Excel to SQL Server Pin
paulanthony18-Aug-05 6:03
paulanthony18-Aug-05 6:03 
GeneralRe: VBA Excel to SQL Server Pin
ulchris18-Aug-05 10:02
ulchris18-Aug-05 10:02 
GeneralHelp with Crystal Reports, desperetaly in need of help Pin
korso_rogan17-Aug-05 22:24
korso_rogan17-Aug-05 22:24 
GeneralComboBox Bind Problem Pin
Greeky17-Aug-05 21:32
Greeky17-Aug-05 21:32 
GeneralFormatting 1 field in excelsheet Pin
ybasha17-Aug-05 19:54
ybasha17-Aug-05 19:54 
GeneralRe: Formatting 1 field in excelsheet Pin
Steve Pullan18-Aug-05 19:39
Steve Pullan18-Aug-05 19:39 
GeneralGet the binary content from a VC dll. Pin
rushing17-Aug-05 19:44
rushing17-Aug-05 19:44 
GeneralCreating an sql adapter,datatable and populating the fields of a grid Pin
mcupryk17-Aug-05 17:19
mcupryk17-Aug-05 17:19 
I have the following stored proc:
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS OFF
GO


ALTER PROCEDURE dbo.stp_SelTransOverrides

-- SELECT ALL EIS TRANSACTION PROCESSING OVERRIDE RECORDS
/*******************************************************************************
*** Name: dbo.stp_SelTransOverrides
*** Creation Date: 08/17/2005
*** Author: Mathieu Cupryk
*** Modified:
***
*** Input: none
*** Output: ALL Transaction Override Records
*** Order: Transaction_Eff_Date
*** Database: CCFinSol
*** Purpose: Select all TransactionOverride Records
***
*** Copyright: @2005 - Corporate Customer, Zurich N.A., all rights reserved
********************************************************************************/

AS
BEGIN

SELECT dbo.AcctNames.Acct_Name AS [Account Name], dbo.TransOverride.Policy_Nbr AS [Policy Number],
dbo.TransOverride.Trans_CodeOrig AS [Original Transaction Code], dbo.TransOverride.Trans_Eff_Date AS [Trans. Eff. Date],
dbo.TransOverride.Override_Code AS [Override Action], dbo.TransOverride.NR_CodeOvr AS [Override New/Renewal],
dbo.TransOverride.Trans_CodeOvr AS [Override Transaction Code], dbo.TransOverride.CreatedUID AS UserId, dbo.TransOverride.ModifiedDate AS Date
FROM dbo.AcctIDPolicyX INNER JOIN dbo.AcctNames ON dbo.AcctIDPolicyX.Acct_Id = dbo.AcctNames.Acct_Id INNER JOIN dbo.TransOverride ON dbo.AcctIDPolicyX.Policy_nbr = dbo.TransOverride.Policy_Nbr
ORDER BY dbo.TransOverride.Trans_Eff_Date
RETURN 0
END


GO

I must populate a grid.

Can someone start me off.
Case clsUtilityTableDatAdap.UtilityTableID.TransOverride
_UtilityTableName = "Transaction Override"
_UtilityTableDap = clsUtilityTableDatAdap.GetTransOverrideDap(_cnnFinSol)
_UtilityTableDap.Fill(_UtilityTableDset)
_UtilityTableDset.Tables(0).PrimaryKey = _
New DataColumn() {_UtilityTableDset.Tables(0).Columns("Policy_Nbr"), _UtilityTableDset.Tables(0).Columns("Trans_CodeOrig"), _UtilityTableDset.Tables(0).Columns("Trans_Eff_Date")}


The I am not the table is structured

CREATE TABLE [TransOverride] (
[Policy_Nbr] [varchar] (7) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[Trans_CodeOrig] [varchar] (6) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[Trans_Eff_Date] [datetime] NOT NULL ,
[Override_Code] [varchar] (2) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[NR_CodeOvr] [varchar] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[Trans_CodeOvr] [varchar] (6) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF__TransOver__Creat__70A8B9AE] DEFAULT (getdate()),
[CreatedUID] [nvarchar] (48) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[ModifiedDate] [datetime] NOT NULL CONSTRAINT [DF__TransOver__Modif__719CDDE7] DEFAULT (getdate()),
[ModifiedUID] [nvarchar] (48) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[Plan_Year] [int] NOT NULL CONSTRAINT [DF__TransOver__Plan___56757D0D] DEFAULT (2004),
CONSTRAINT [cnTransOverride_PK] PRIMARY KEY CLUSTERED
(
[Policy_Nbr],
[Trans_CodeOrig],
[Trans_Eff_Date]
) ON [PRIMARY] ,
CONSTRAINT [cnTransOverride_NR_CodeOvr_CK] CHECK ([NR_CodeOvr] = '' or ([NR_CodeOvr] = 'R' or [NR_CodeOvr] = 'N')),
CONSTRAINT [cnTransOverride_Override_Code_CK] CHECK ([Override_Code] = '' or ([Override_Code] = 'OT' or ([Override_Code] = 'AU' or ([Override_Code] = 'MS' or ([Override_Code] = 'EN' or ([Override_Code] = 'AO' or [Override_Code] = 'AC'))))))
) ON [PRIMARY]
GO

I need to get started building the dataset and the sqladapter and to be able to populate the grid.

Any help or Suggestions would wonderful.

Thank You
GeneralRe: Creating an sql adapter,datatable and populating the fields of a grid Pin
Christian Graus17-Aug-05 17:52
protectorChristian Graus17-Aug-05 17:52 
GeneralRe: Creating an sql adapter,datatable and populating the fields of a grid Pin
Anonymous17-Aug-05 19:20
Anonymous17-Aug-05 19:20 
GeneralRe: Creating an sql adapter,datatable and populating the fields of a grid Pin
Christian Graus18-Aug-05 14:49
protectorChristian Graus18-Aug-05 14:49 
QuestionGet list of machines in LAN? Pin
Jimmy Huynh17-Aug-05 16:46
Jimmy Huynh17-Aug-05 16:46 
AnswerRe: Get list of machines in LAN? Pin
Mohamad Al Husseiny17-Aug-05 16:50
Mohamad Al Husseiny17-Aug-05 16:50 
AnswerRe: Get list of machines in LAN? Pin
Steve Pullan17-Aug-05 17:26
Steve Pullan17-Aug-05 17:26 
AnswerRe: Get list of machines in LAN? Pin
Anonymous17-Aug-05 17:54
Anonymous17-Aug-05 17:54 
GeneralCalendar control in Access forms Pin
Anonymous17-Aug-05 12:43
Anonymous17-Aug-05 12:43 
GeneralRe: Calendar control in Access forms Pin
Anonymous17-Aug-05 12:44
Anonymous17-Aug-05 12:44 
GeneralUsing IS in Select Case Pin
dotnetCarpenter17-Aug-05 10:02
dotnetCarpenter17-Aug-05 10:02 
GeneralRe: Using IS in Select Case Pin
Steve Pullan17-Aug-05 15:00
Steve Pullan17-Aug-05 15:00 
GeneralRe: Using IS in Select Case Pin
dotnetCarpenter22-Aug-05 4:26
dotnetCarpenter22-Aug-05 4:26 
GeneralPrinting Array of Bytes to File Pin
ChemmieBro17-Aug-05 7:55
ChemmieBro17-Aug-05 7:55 
GeneralRe: Printing Array of Bytes to File Pin
BammBamm17-Aug-05 8:49
BammBamm17-Aug-05 8:49 
Generalftp Pin
17-Aug-05 7:54
suss17-Aug-05 7:54 
GeneralRe: ftp Pin
Mohamad Al Husseiny17-Aug-05 16:55
Mohamad Al Husseiny17-Aug-05 16:55 
GeneralVBA call to a vb.net dll Pin
FlyngTiger17-Aug-05 7:01
FlyngTiger17-Aug-05 7: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.