Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 insert data

Author  Topic 

jagguy
Starting Member

27 Posts

Posted - 2008-08-18 : 06:55:53
is there an easy way to insert data eg a datagrid with sql server.

currently i am using

INSERT INTO [test1].[dbo].[table1]
([one]
,[two]
,[three])
VALUES
(<one, nvarchar(50),>
,<two, nvarchar(50),>
,<three, real(24,0),>)

which is cumbersome

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-08-18 : 07:06:47
INSERT [test1].[dbo].[table1] ([one] , [two], [three])
VALUES (11, 22, 33)


E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-08-18 : 07:49:42
quote:
Originally posted by jagguy

is there an easy way to insert data eg a datagrid with sql server.

currently i am using

INSERT INTO [test1].[dbo].[table1]
([one]
,[two]
,[three])
VALUES
(<one, nvarchar(50),>
,<two, nvarchar(50),>
,<three, real(24,0),>)

which is cumbersome


why are you sending datatypes also?or was it for illustration?
Go to Top of Page
   

- Advertisement -