Click here to Skip to main content
15,888,610 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Download Files Pin
softwarejaeger20-Nov-06 1:58
softwarejaeger20-Nov-06 1:58 
AnswerRe: update problem in datagrid when using SQL Server 2000 as Database Pin
Dave Kreskowiak18-Nov-06 5:24
mveDave Kreskowiak18-Nov-06 5:24 
QuestionI cant a Button control with two images status >> Pin
kindman_nb17-Nov-06 22:53
kindman_nb17-Nov-06 22:53 
AnswerRe: I want a Button control with two images status >> Pin
kindman_nb17-Nov-06 23:06
kindman_nb17-Nov-06 23:06 
AnswerRe: I cant a Button control with two images status >> Pin
Christian Graus17-Nov-06 23:07
protectorChristian Graus17-Nov-06 23:07 
AnswerRe: I cant a Button control with two images status >> Pin
MohammadAmiry17-Nov-06 23:07
MohammadAmiry17-Nov-06 23:07 
Questionvb.Net vs SQL Sever Datatypes Pin
RichardBerry17-Nov-06 21:48
RichardBerry17-Nov-06 21:48 
AnswerRe: vb.Net vs SQL Sever Datatypes Pin
RichardBerry17-Nov-06 22:53
RichardBerry17-Nov-06 22:53 
Ok, I half answered my own question

I Created a new stock item using the ERP front end, then did a query to return this new item I have just created. I then looped through the columns as follows:
dtStkm is a the stock table, and dr2 is the row containing the new stock item.
<pre>
<code>
Dim dr2 As DataRow = dtStkm.Rows(0)
For i As Integer = 0 To dtStkm.Columns.Count - 1
dt.Rows(i).Item(0) = i
dt.Rows(i).Item(1) = dtStkm.Columns(i).ColumnName.ToString
dt.Rows(i).Item(2) = dtStkm.Rows(0).Item(i).GetType.Name.ToString
dt.Rows(i).Item(3) = dtStkm.Rows(0).Item(i).ToString.Length
dt.Rows(i).Item(4) = dtStkm.Rows(0).Item(i)
Next
Me.dgExcelData.DataSource = dt
</code>
</pre>

Questions:

1) Is the following returning the equivalent Vb.net datatype?: dtStkm.Rows(0).Item(i).GetType.Name.ToString

2) The Getype above returned 4 datatypes:

String (Many of these seem to be blank strings, but length = specified field len
DBNull
Double
Int32
DateTime

There are 187 fields in this table
2a) If I do an insert command, must I explicitly insert DBNULL for fields that are DBNULL, Explicitly insert Specific lenghts of Blank Strings for those that have blank strings. (it will be a HUGE INSERT Statment for 187 fields...)

2b) Will it be ok to use the datatypes that showed as a result of dtStkm.Rows(0).Item(i).GetType.Name.ToString.

2c) Since the I only need to populate 19 of the 187 fields with actual data, can anyone suggest an elegant way of doing this - perhaps pulling one row from the SQL server, then modifying the 19 fields, then writing that back?)

I am REALLY scared to insert somthing that may compromise the SQL database since this is our company's Live data...

Please help...

GeneralRe: vb.Net vs SQL Sever Datatypes Pin
Colin Angus Mackay19-Nov-06 2:39
Colin Angus Mackay19-Nov-06 2:39 
GeneralRe: vb.Net vs SQL Sever Datatypes Pin
RichardBerry19-Nov-06 21:15
RichardBerry19-Nov-06 21:15 
QuestionHow to make multi language interface program ?? Pin
kindman_nb17-Nov-06 20:46
kindman_nb17-Nov-06 20:46 
AnswerRe: How to make multi language interface program ?? Pin
MohammadAmiry17-Nov-06 23:11
MohammadAmiry17-Nov-06 23:11 
GeneralRe: How to make multi language interface program ?? Pin
kindman_nb17-Nov-06 23:48
kindman_nb17-Nov-06 23:48 
QuestionHow to find - Windows Applicatin Bootup Disk? Pin
Anandan k17-Nov-06 20:30
Anandan k17-Nov-06 20:30 
AnswerRe: How to find - Windows Applicatin Bootup Disk? Pin
Dave Kreskowiak18-Nov-06 5:22
mveDave Kreskowiak18-Nov-06 5:22 
AnswerHow to find - System Bootup Disk in Windows Application(XP)? Pin
Anandan k20-Nov-06 23:23
Anandan k20-Nov-06 23:23 
Questionproblem with windows service - msgbox problem Pin
BSRK17-Nov-06 19:08
BSRK17-Nov-06 19:08 
AnswerRe: problem with windows service - msgbox problem Pin
MatrixCoder19-Nov-06 22:09
MatrixCoder19-Nov-06 22:09 
QuestionHow do I delete all files in a folder? Pin
Code Crapper17-Nov-06 14:18
Code Crapper17-Nov-06 14:18 
AnswerRe: How do I delete all files in a folder? Pin
Christian Graus17-Nov-06 15:08
protectorChristian Graus17-Nov-06 15:08 
GeneralRe: How do I delete all files in a folder? Pin
Code Crapper18-Nov-06 12:36
Code Crapper18-Nov-06 12:36 
GeneralRe: How do I delete all files in a folder? Pin
Christian Graus18-Nov-06 12:55
protectorChristian Graus18-Nov-06 12:55 
AnswerRe: How do I delete all files in a folder? Pin
Janani Divya17-Nov-06 15:22
Janani Divya17-Nov-06 15:22 
AnswerRe: How do I delete all files in a folder? Pin
The ANZAC18-Nov-06 13:24
The ANZAC18-Nov-06 13:24 
GeneralRe: How do I delete all files in a folder? Pin
Code Crapper19-Nov-06 2:14
Code Crapper19-Nov-06 2:14 

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.