Jump to content

Creat,insert,drop table SQL 2000 + 2005


Recommended Posts

Hi all,

I need creat table in SQL 2000 + 2005,and drop it

1/CREATE TABLE #errorlog ([a] [int] IDENTITY (1, 1) NOT NULL, ErrorText nvarchar(4000), ContinuationRow int)

2/INSERT INTO #errorlog EXEC sp_readerrorlog

3/SELECT TOP 10 * FROM #errorlog order by a desc

4/drop table #errorlog

and i use

$con = _SQLConnect($ip,"master",0,"sa",$pass)
$str1 ="select * from test"
_SQL_GetTable2D($con,$str1,$result,$hang,$cot)
;here i need create table, or drop it
_SQLDisconnect($con)

i have result query $str1, but i need create table

Thanks all,

rg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...