SQLInsider Scripts

Technical Article

RE: Database Recovery on SQL 7 SP2

  • Reply

Forget my last statement. I think you were alone the right lines about multiple log files. I have tried to attach the db to a test sql2000 box and noticed the 'Device activation error' appears twice for the log files, where there was only one log file on the database. Looking at the database sysfiles […]

You rated this post out of 5. Change rating

2002-03-20

Technical Article

RE: Controlling SQL Server jobs from cmd

  • Reply

To do thru cmd line you can use isql. SOrry I don't generally use myself but for a list of the paramteres type isql /?. Otherwise, I know you can do thru any languag that supports making database connections. In VBScript you can make an ADO connection to the database and execute on the connection […]

You rated this post out of 5. Change rating

2002-03-20

Technical Article

RE: UDT and temporary table

  • Reply

I believe the only way a temp table can take advantage of a user-defined datatype is for it to exist in the tempdb. The problem with this is each time the server restarts the tempdb is rebuilt so your datatype will dissappear. However if you need this datatype you can add it to model and […]

You rated this post out of 5. Change rating

2002-03-20

Technical Article

RE: SQL Query

  • Reply

Try This. I did it with two tables (tbl_new_1 and tbl_new_2) both containing columns for stock_id VARCHAR(10), description VARCHAR(20). Primary key on stock_id INSERT dbo.tbl_new_1( stock_id, description) SELECT stock_id, description FROM dbo.tbl_new_2 a WHERE NOT EXISTS ( SELECT stock_id FROM dbo.tbl_new_1 b WHERE a.stock_id = b.stock_id) The correlated subquey in the EXISTS statment will find […]

You rated this post out of 5. Change rating

2002-03-19

1 reads

Technical Article

RE: Reinstall SQL Agent only?

  • Reply

First the only way I know of to reinstall Agent is to reinstall SQL (which I would make a backup of the databases beforehand). Next reinstalling may not help as I have seen this problem before on one of our servers. The problem is that when SQL Agent starts it is trying to access an […]

You rated this post out of 5. Change rating

2002-03-19

Technical Article

RE: Programming Languages used with SQL Server

  • Reply

I have dabled here and there with delphi and own version 1 and 2, but I am (not necessarily pure MS) VB, C, C++, VBScript, JavaScript, JAVA (Not too much), HTML, SQL (Oracle, Sybase, Informix, Access, Paradox, SQL Server) kind a guy (a few others but these are the most experience). And I keep trying […]

You rated this post out of 5. Change rating

2002-03-19

1 reads

Blogs

SQL Saturday Boston 2024 Slides

By

Thanks to everyone that came to my talks. Slides are below. Best Practices for...

Small Data SF 2024

By

I can’t remember how I heard about Small Data SF 2024, but it caught...

A New Word: Moledro

By

moledro – n. a feeling of resonant connection with an author or artist you’ll...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers