Click here to Skip to main content
16,008,175 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Display Values in an Excel Worksheet Pin
Dave Kreskowiak11-Jan-06 1:14
mveDave Kreskowiak11-Jan-06 1:14 
GeneralRe: Display Values in an Excel Worksheet Pin
directred11-Jan-06 1:30
directred11-Jan-06 1:30 
QuestionNo sorting in DataGrid Pin
dptalt10-Jan-06 4:57
dptalt10-Jan-06 4:57 
AnswerRe: No sorting in DataGrid Pin
Dave Kreskowiak10-Jan-06 6:37
mveDave Kreskowiak10-Jan-06 6:37 
GeneralRe: No sorting in DataGrid Pin
dptalt12-Jan-06 2:33
dptalt12-Jan-06 2:33 
QuestionPopulating a Database from a Dataset Pin
Ria7710-Jan-06 4:14
Ria7710-Jan-06 4:14 
AnswerRe: Populating a Database from a Dataset Pin
Dave Kreskowiak10-Jan-06 6:35
mveDave Kreskowiak10-Jan-06 6:35 
GeneralRe: Populating a Database from a Dataset Pin
Ria7710-Jan-06 8:38
Ria7710-Jan-06 8:38 
I used dataviews and bound them to datagrid to check if the data was read correctly since I do not have the schema of the XML data. Actually below is my insert statement and is pointing to a stored procedure.

objDataset.ReadXml(strFile)

'create a dataview object for the books table in the dataset
Dim dvLayers As New DataView(objDataset.Tables("Layer"))
Dim dvDatasets As New DataView(objDataset.Tables("Dataset"))
Dim dvREnderer As New DataView(objDataset.Tables("SIMPLERENDERER"))
Dim dvLineRenderer As New DataView(objDataset.Tables "SIMPLELINESYMBOL"))
Dim dvPolyRenderer As New DataView(objDataset.Tables("SIMPLEPOLYGONSYMBOL"))
Dim dvMarkerRenderer As New DataView(objDataset.Tables("SIMPLEMARKERSYMBOL"))

Dim cmdInsertLyr As New SqlCommand("", ConDb.Connect)
cmdInsertLyr.CommandText = "dbo.[Insert_LyrView]"
cmdInsertLyr.CommandType = CommandType.StoredProcedure
cmdInsertLyr.Connection.Open()
cmdInsertLyr.Parameters.Add("@LyrID", "")
cmdInsertLyr.Parameters.Add("@LyrName", "")
cmdInsertLyr.Parameters.Add("@LyrType", "")
cmdInsertLyr.Parameters.Add("@Visible", "")
cmdInsertLyr.Parameters.Add("@ID", "")
cmdInsertLyr.Parameters.Add("@Map_id", "")
cmdInsertLyr.Parameters.Add("@dtName", "")
cmdInsertLyr.Parameters.Add("@dttype", "")
cmdInsertLyr.Parameters.Add("@workspace", "")
cmdInsertLyr.ExecuteNonQuery()

and following is the stored procedure am using.


CREATE PROCEDURE [Insert_LyrView]
(
@LyrID int,
@LyrName [nvarchar](250),
@LyrType [nvarchar](250),
@Visible [nvarchar](250),
@id int,
@map_id int,
@dtname [nvarchar](250),
@dttype [nvarchar](250),
@workspace [nvarchar](250)


)
AS INSERT INTO [LayerView]
(LayerID,
LyrName,
LyrType,
Visible,
id,
map_id,
dtname,
dttype,
workspace
)
VALUES
(@LyrID,
@LyrName,
@LyrType,
@Visible,
@id,
@map_id,
@dtname,
@dttype,
@workspace

)
GO

Am stuck in passing the values from the dataset to the parameters to the cmdinsertlyr!!!And I left the values of the parameters empty!!!

GeneralRe: Populating a Database from a Dataset Pin
Dave Kreskowiak10-Jan-06 9:04
mveDave Kreskowiak10-Jan-06 9:04 
Questionhow can implement DTS pakage in vb.net Pin
parvinder sehrawat10-Jan-06 1:53
parvinder sehrawat10-Jan-06 1:53 
AnswerRe: how can implement DTS pakage in vb.net Pin
Dave Kreskowiak10-Jan-06 5:08
mveDave Kreskowiak10-Jan-06 5:08 
GeneralRe: how can implement DTS pakage in vb.net Pin
parvinder sehrawat10-Jan-06 20:45
parvinder sehrawat10-Jan-06 20:45 
GeneralRe: how can implement DTS pakage in vb.net Pin
Dave Kreskowiak11-Jan-06 1:13
mveDave Kreskowiak11-Jan-06 1:13 
QuestionPassing long from ASP to C# method Pin
sauravg2810-Jan-06 0:28
sauravg2810-Jan-06 0:28 
AnswerRe: Passing long from ASP to C# method Pin
Guffa10-Jan-06 1:20
Guffa10-Jan-06 1:20 
AnswerRe: Passing long from ASP to C# method Pin
Dave Kreskowiak10-Jan-06 5:04
mveDave Kreskowiak10-Jan-06 5:04 
Questionglobal variable Pin
mayhem_rules10-Jan-06 0:20
mayhem_rules10-Jan-06 0:20 
AnswerRe: global variable Pin
abhinish10-Jan-06 1:07
abhinish10-Jan-06 1:07 
GeneralRe: global variable Pin
mayhem_rules10-Jan-06 1:23
mayhem_rules10-Jan-06 1:23 
GeneralRe: global variable Pin
jonathan1510-Jan-06 1:34
jonathan1510-Jan-06 1:34 
GeneralRe: global variable Pin
mayhem_rules10-Jan-06 17:59
mayhem_rules10-Jan-06 17:59 
QuestionVB.NET To perform HTTP FORM POST Pin
spankys139-Jan-06 23:23
spankys139-Jan-06 23:23 
AnswerRe: VB.NET To perform HTTP FORM POST Pin
Dave Kreskowiak10-Jan-06 5:00
mveDave Kreskowiak10-Jan-06 5:00 
QuestionMultiColumn ComboBox from DataGridViewComboBoxEditingControl Class(Urgent) Pin
HemaRawat9-Jan-06 22:54
HemaRawat9-Jan-06 22:54 
AnswerRe: MultiColumn ComboBox from DataGridViewComboBoxEditingControl Class(Urgent) Pin
Dave Kreskowiak10-Jan-06 4:52
mveDave Kreskowiak10-Jan-06 4:52 

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.