Click here to Skip to main content
15,900,906 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Declaring a array Pin
Dave Kreskowiak14-May-09 17:58
mveDave Kreskowiak14-May-09 17:58 
AnswerRe: Declaring a array Pin
Zaegra14-May-09 23:03
Zaegra14-May-09 23:03 
GeneralRe: Declaring a array Pin
Dave Doknjas15-May-09 15:21
Dave Doknjas15-May-09 15:21 
GeneralRe: Declaring a array Pin
Zaegra16-May-09 2:03
Zaegra16-May-09 2:03 
GeneralRe: Declaring a array Pin
Dave Doknjas16-May-09 4:11
Dave Doknjas16-May-09 4:11 
GeneralRe: Declaring a array Pin
Johan Hakkesteegt17-May-09 20:06
Johan Hakkesteegt17-May-09 20:06 
GeneralRe: Declaring a array Pin
LCARS x3225-May-09 14:29
LCARS x3225-May-09 14:29 
QuestionHow Do I Insert Rows into a table dynamicly? Pin
r_mohd14-May-09 16:36
r_mohd14-May-09 16:36 
Hi all,

Currently i am facing a problem when i try to insert rows in a table dynamicly. i using vb.net 2008 with mssql express 2008.here are the details of my codes

USE [database]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

create PROCEDURE [dbo].[TestSp]
(
@name nvarchar(50),
@tb varchar(200)
)
AS
BEGIN

SET NOCOUNT ON;

execute ('insert into ' + @tb +'(xname)values(@name)')

END

exec testsp 'testtable1','Abcxyz'

Error: Msg 137, Level 15, State 2, Line 1
Must declare the scalar variable "@name".

please help me.

rmshah
Developer

AnswerRe: How Do I Insert Rows into a table dynamicly? Pin
Mycroft Holmes14-May-09 16:41
professionalMycroft Holmes14-May-09 16:41 
AnswerRe: How Do I Insert Rows into a table dynamicly? Pin
N a v a n e e t h14-May-09 17:19
N a v a n e e t h14-May-09 17:19 
Questionprime number Pin
edubah14-May-09 14:55
edubah14-May-09 14:55 
AnswerRe: prime number PinPopular
Luc Pattyn14-May-09 15:27
sitebuilderLuc Pattyn14-May-09 15:27 
GeneralRe: prime number Pin
Dalek Dave14-May-09 21:31
professionalDalek Dave14-May-09 21:31 
GeneralRe: prime number Pin
tonym00115-May-09 9:31
tonym00115-May-09 9:31 
GeneralRe: prime number Pin
Luc Pattyn15-May-09 10:40
sitebuilderLuc Pattyn15-May-09 10:40 
GeneralRe: prime number Pin
tonym00115-May-09 10:49
tonym00115-May-09 10:49 
GeneralRe: prime number Pin
tonym00115-May-09 10:53
tonym00115-May-09 10:53 
GeneralRe: prime number [modified] Pin
Luc Pattyn15-May-09 10:55
sitebuilderLuc Pattyn15-May-09 10:55 
GeneralRe: prime number Pin
tonym00115-May-09 11:01
tonym00115-May-09 11:01 
GeneralRe: prime number Pin
Luc Pattyn15-May-09 11:21
sitebuilderLuc Pattyn15-May-09 11:21 
GeneralRe: prime number Pin
Henry Minute15-May-09 11:55
Henry Minute15-May-09 11:55 
AnswerRe: prime number Pin
0x3c014-May-09 19:59
0x3c014-May-09 19:59 
QuestionDataset Question... Pin
smjunior0914-May-09 13:47
smjunior0914-May-09 13:47 
AnswerRe: Dataset Question... Pin
Johan Hakkesteegt17-May-09 20:35
Johan Hakkesteegt17-May-09 20:35 
QuestionEasy Datetime question... Pin
smjunior0914-May-09 9:28
smjunior0914-May-09 9:28 

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.