Advanced Querying

Technical Article

Case statement

  • Topic

This case statement works without options 1 and 2. DECLARE @w int DECLARE @c varchar(30) DECLARE @v varchar(30) SET @w=3 SET @c='Mr' SET @v='Mr' SELECT m.MRmanMemberID,m.MRmanTitle,MRmanIsFinancial FROM MRman_Main m where case --when @w=1 then MRmanMemberID --when @w=2 then MRmanIsFinancial when @w=3 then MRmanTitle end between @c and @v --change it to SELECT m.MRmanMemberID,m.MRmanTitle,MRmanIsFinancial FROM MRman_Main […]

2002-03-19

Technical Article

Reinstall SQL Agent only?

  • Topic

Recently I rebooted a production server (Sql 7, NT 4). To my surprise, noone could then connect to that box. (I couldn't even get in locally via Query Analyzer). I noted that the Sql Agent was "starting" -- never running, just starting. With some trouble I killed tha Agent and re-started it manually. Then everyone […]

2002-03-18

475 reads

Technical Article

how to debug SP's

  • Topic

Hi experts, what is the best way to author and debug the stored procedures with multiple cursors. . or are there any tools to this job easy. . with rgds. Girish Patil

2002-03-14

Technical Article

EXEC DTSRUN

  • Topic

Hello, I had the following working from an SP for quite some time however I had to reinstall SQL due to a disk failure and now it will not run: EXEC master..xp_cmdshell 'DTSRUN /Fc:\PSP\tmpLoad.dts /NtmpLoad In the output it returns Bad command or file name. It seems almost as though after the install of SQL […]

2002-03-13

12 reads

Technical Article

Tricky SQL

  • Topic

Usage Table UID, Date, Value I want to return all UIDs and values that are less than today's date. That part is simple. However, there could be multiple records in the record set. I then need to select the max(date) of the records selected. I am just not sure how to write this in T-SQL. […]

2002-03-13

Technical Article

What size does it refer to?

  • Topic

When building a cube and setting up aggregations, there is a point in the process in which you set up the number of aggregations, based on either megabyte size, performance increase, or until you stop. It gives you a graph of performance vs size. This size number can get rather large, depending on the # […]

2002-03-12

3 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