Public rsBM As New ADODB.Recordset
Public SQL As String
Public conn As New ADODB.Connection
Private Sub Command1_Click()
conn.Open ("Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;User ID=ClientUser;Initial Catalog=DATA_90;Data Source=SERVIDOR4"
SQL = "CREATE TABLE #t(x INT PRIMARY KEY) INSERT INTO #t VALUES (2) INSERT INTO #t VALUES (3)"
Set rsBM = conn.Execute(SQL)
End Sub
i have here created a temp table in SQL and added some values, now i want to generate a crystal report on vb based on this temp table. how can i do this?
when i create the table i know i have to specified some SPII or SPID in order to crystal to se the temp table.
Any help?
Public SQL As String
Public conn As New ADODB.Connection
Private Sub Command1_Click()
conn.Open ("Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;User ID=ClientUser;Initial Catalog=DATA_90;Data Source=SERVIDOR4"
SQL = "CREATE TABLE #t(x INT PRIMARY KEY) INSERT INTO #t VALUES (2) INSERT INTO #t VALUES (3)"
Set rsBM = conn.Execute(SQL)
End Sub
i have here created a temp table in SQL and added some values, now i want to generate a crystal report on vb based on this temp table. how can i do this?
when i create the table i know i have to specified some SPII or SPID in order to crystal to se the temp table.
Any help?