programming

Technical Article

Passing a value out of a Stored Procedure

  • Topic

I've created this procedure to count the number of times a particular condition was met in a log file. CREATE PROCEDURE SP_SMTPSTATS AS DECLARE @TEST AS INT SELECT @TEST = COUNT (*) FROM smtpstats Where clienthost = "10.0.0.64" AND Operation = "Data" AND bytesrecvd > 200 AND bytesrecvd < 2000 ??????????????NOW WHAT???????????????????????????? GO Now I […]

You rated this post out of 5. Change rating

2001-08-30

2 reads

Technical Article

Ident_current and Dynamic SQL

  • Topic

Hello, Could some one please tell how to get the current Identity value from a table using Dynamic sql. My code is listed below. declare @qry nvarchar(500) declare @qry1 nvarchar(500) declare @tabName nvarchar(50) declare @x int set @tabName='tblCenters' set @qry = N'select @ident=ident_current('''+@tabName+''')' set @qry1 = N'@ident int' exec sp_executesql @qry, @qry1,@x print @x It […]

You rated this post out of 5. Change rating

2001-08-28

27 reads

Technical Article

DTS and Source Safe

  • Topic

The company I work for has recently decided to use Source Safe on all of our DTS packages. To do this we save the package down as a .dts file and check it into SS. We've ran into a bump in the road though. When saving as a .dts file, we lose all of the […]

You rated this post out of 5. Change rating

2001-08-27

3 reads

Technical Article

Table update using Trigger

  • Topic

I have table A with three fields. Emp_Code Char(3), Emp_Name varchar(15), Policy_Change_Date datetime GetDate() . If any one record changes in table A, i wish to get the system date into the Policy_Change_Date. How will i create this trigger?

You rated this post out of 5. Change rating

2001-08-27

2 reads

Technical Article

DMo and SQL Server Agent

  • Topic

Every once in a while the SQL ServerAgent (SQL 7) stops unexpectedly. How can I use DMO to check if the service is running, and better yet, to notify me, if it fails? TIA, Bill P.S. I have selected the "Autorestart Agent" option but it doesn't work reliably.

You rated this post out of 5. Change rating

2001-08-24

8 reads

Technical Article

Stored Procedure Syntax

  • Topic

I'm new to SQL and Stored procedures. I'm trying to write a stored procedure and I'm having difficulty with the syntax. Ultimately what needs to happen is that if a certain condiion is met, then a variable will add one to it's initial value of 0 until the procedure has gone through the table basically […]

You rated this post out of 5. Change rating

2001-08-23

1 reads

Technical Article

SQL tools

  • Topic

I am trying to find a report writing tool (like BRIO), that also allows users to update lookup tables. Is there any products that allow this? Thanks Joe

You rated this post out of 5. Change rating

2001-08-23

3 reads

Technical Article

Sp1 issue?

  • Topic

I have 2 SQL 2000 SP1 installations and when I am in Ent. MGR, database, taskpad, table info all tables say they have zero rows when this is not the case, the size in K for the tables does appear to be correct. I have auto stats update option on the database and I used […]

2001-08-21

5 reads

Blogs

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...

Snowflake + Azure blob

By

Let’s go back to data platforms today and I want to talk about a...

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