Jump to content
Sign in to follow this  

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"
;here i need create table, or drop it

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

Thanks all,


Share this post

Link to post
Share on other sites

Hi rikimaru110011,

have a look at the _sql.udf by ChrisL (search for it in the forum)

You'll need to run your statements in a _SQL_Execute().

Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

Share this post

Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...