Click here to Skip to main content
15,896,349 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Problem when subtracting large double values [VB6.0] Pin
Luc Pattyn3-Jun-09 3:13
sitebuilderLuc Pattyn3-Jun-09 3:13 
GeneralRe: Problem when subtracting large double values [VB6.0] Pin
N a v a n e e t h2-Jun-09 16:57
N a v a n e e t h2-Jun-09 16:57 
GeneralRe: Problem when subtracting large double values [VB6.0] Pin
Luc Pattyn2-Jun-09 17:08
sitebuilderLuc Pattyn2-Jun-09 17:08 
GeneralRe: Problem when subtracting large double values [VB6.0] Pin
N a v a n e e t h2-Jun-09 17:22
N a v a n e e t h2-Jun-09 17:22 
GeneralRe: Problem when subtracting large double values [VB6.0] Pin
Luc Pattyn2-Jun-09 17:34
sitebuilderLuc Pattyn2-Jun-09 17:34 
Questiontruncate table in sql 2005 by vb,net code Pin
atk88772-Jun-09 12:14
atk88772-Jun-09 12:14 
AnswerRe: truncate table in sql 2005 by vb,net code Pin
Henry Minute2-Jun-09 12:35
Henry Minute2-Jun-09 12:35 
GeneralRe: truncate table in sql 2005 by vb,net code Pin
atk88773-Jun-09 12:06
atk88773-Jun-09 12:06 
ok , first i want to clear all data in specific table in sql2005 data base , and i need 2 execute the order " truncate table xxxxx " not from the sql query analyzer , but from vb.net code , which i am trying 2 make here :

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim strSQL As String
strSQL = "TRUNCATE TABLE names"
Using connection As New SqlConnection(constring5)
Dim command As New SqlCommand(strSQL, SqlConnection1)
command.Connection.Open()
Command.ExecuteNonQuery()
End Using
End Sub

it gives me error message in code
command.Connection.Open()
<b>"The ConnectionString property has not been initialized."</b>
so i dont know what i should do
thanx
GeneralRe: truncate table in sql 2005 by vb,net code Pin
Henry Minute3-Jun-09 12:45
Henry Minute3-Jun-09 12:45 
GeneralRe: truncate table in sql 2005 by vb,net code Pin
atk88774-Jun-09 1:32
atk88774-Jun-09 1:32 
QuestionExport Excel Formula Pin
ross16642-Jun-09 5:51
ross16642-Jun-09 5:51 
AnswerRe: Export Excel Formula Pin
Kschuler2-Jun-09 5:59
Kschuler2-Jun-09 5:59 
GeneralRe: Export Excel Formula Pin
ross16642-Jun-09 19:18
ross16642-Jun-09 19:18 
QuestionVB.net: How to update database from datagridview Pin
Roger Rainey2-Jun-09 4:35
Roger Rainey2-Jun-09 4:35 
AnswerRe: VB.net: How to update database from datagridview Pin
Kschuler2-Jun-09 5:45
Kschuler2-Jun-09 5:45 
QuestionRe: VB.net: How to update database from datagridview Pin
JohannNutter22-Jul-09 9:08
JohannNutter22-Jul-09 9:08 
GeneralRe: VB.net: How to update database from datagridview Pin
Kschuler22-Jul-09 9:35
Kschuler22-Jul-09 9:35 
GeneralRe: VB.net: How to update database from datagridview Pin
JohannNutter22-Jul-09 10:26
JohannNutter22-Jul-09 10:26 
QuestionVBA and XL - Is this a Viable Function Request? [modified] Pin
Dalek Dave2-Jun-09 4:18
professionalDalek Dave2-Jun-09 4:18 
AnswerRe: VBA and XL - Is this a Viable Function Request? Pin
David Mujica2-Jun-09 4:55
David Mujica2-Jun-09 4:55 
GeneralRe: VBA and XL - Is this a Viable Function Request? Pin
Dalek Dave2-Jun-09 5:02
professionalDalek Dave2-Jun-09 5:02 
GeneralUnderstood Pin
David Mujica2-Jun-09 5:15
David Mujica2-Jun-09 5:15 
GeneralRe: Understood Pin
Dalek Dave2-Jun-09 5:23
professionalDalek Dave2-Jun-09 5:23 
Questionrandom access files .net 2005 Pin
vurdmal2-Jun-09 3:22
vurdmal2-Jun-09 3:22 
AnswerRe: random access files .net 2005 Pin
DidiKunz2-Jun-09 3:34
DidiKunz2-Jun-09 3:34 

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.