Article ID: 182289
Article Last Modified on 5/18/2001
if exists (select * from sysobjects
where id = object_id('dbo.test') and sysstat & 0xf = 3)
drop table dbo.test
GO
CREATE TABLE dbo.test
( id int NOT NULL , a char (255) NULL , b char (255) NULL ,
c char (255) NULL , d char (255) NULL )
GO
NOTE: Please make sure to choose an appropriate database, such as pubs,
in which to create this Table.
DataSource = MSRDC1
Dim con As rdoConnection
Dim rs As rdoResultset
Set con = rdoEngine(0).OpenConnection("", _
rdDriverNoPrompt, _
false, _
"DRIVER={SQL Server};" _
& "SERVER=<server_name>;" _
& "UID=<userID>;" _
& "PWD=<password>;" _
& "DATABASE=<databasename>")"
For i = 1 To 30
Set rs = con.OpenResultset("INSERT INTO test (id,a,b,c)" _
& " VALUES (" & i & " ,'" & CStr(i) _
& "','2222222222222222222222222','3333333333333333333333333')")"
Debug.Print i
Next i
Additional query words: gpf
Keywords: kbprb KB182289