ssas

Technical Article

SQL Statement Help

  • Topic

I got the following data in a tableCol1   Col2 HHHH TTTTT HHHH RRRRR HHHH SSSSS AAAA FFFFF BBBB GGGGG CCCC HHHHH DDDD IIIIII want the follwing result setTTTTT RRRRR SSSSS AAAA  BBBB  CCCC  DDDDMeans where ever i see HHHH in Col1 i have to select Col2, Can you help on this.Thanks in Advance

You rated this post out of 5. Change rating

2004-11-17

Technical Article

RE: Backing up a DTS package

  • Reply

In DTS Designer, when you select Package -> Save, you can choose a location of SQL Server, structured storage file, or VB file.  If you choose to save in SQL Server, the package is saved in the msdb database.  If you choose structured storage file, you'll be prompted to choose a directory to save to.So, […]

You rated this post out of 5. Change rating

2004-11-12

Technical Article

RE: Moving DTS

  • Reply

The DTS Backup package works well, There is a switch on one of the panels to retain formatting.Don't forget to check it, even so a few will need to be laid out again. Although they work fine.

You rated this post out of 5. Change rating

2004-11-09

Technical Article

Dynamically set DTSDestination column name from variable

  • Topic

I need to be able to set the DTSDestination column dynamically using a variable for the column name.  Here is the code I am using:   strColName = cstr(DTSSource("ColName"))    DTSDestination(strColName ) = DTSSource("QVal") I am getting the error "Invalid procedure call or argument: 'DTSDestination'".  I'm sure that I am just missing something.Thanks!

You rated this post out of 5. Change rating

2004-10-04

3 reads

Technical Article

RE: SQL query listener?

  • Reply

Really I would just use SQL Profiler. You'll find it under the Tools menu in SQL Enterprise Manager. It hooks into SQL Server and collects all the actions that are sent to it. You can select how much data you want to record, and even what types of events (from just the sql statements executed, […]

You rated this post out of 5. Change rating

2004-08-06

Technical Article

DTS VS Linked Server

  • Topic

Hello, I have a question regarding DTS and Linked server speed and usability. I have about 400,000 rows to transfer on a daily basis between two servers. I can set up a DTS Package to do it, or I can run a job doing the same using linked servers. Which one is the best or […]

You rated this post out of 5. Change rating

2004-07-14

66 reads

Technical Article

RE: convert char to datetime

  • Reply

declare @mydt varchar(10) set @mydt = '10/10/2003' declare @newdt datetime set @newdt = Convert(datetime, @mydt) SELECT CONVERT(varchar(25),getdate(),2) SELECT CONVERT(varchar(30),@newdt,109) SELECT CONVERT(datetime,@mydt) SELECT CONVERT(datetime,'10/10/2003',103) SELECT CONVERT(datetime,@mydt,103) SELECT CAST(CONVERT(char(10), getdate(), 112) as datetime)Test the code above and you'll see that the last 3 select statements (which roughly correspond to the previous replies in this thread) all produce […]

You rated this post out of 5. Change rating

2004-07-14

18 reads

Technical Article

RE: Delete from Where - Older than 60 days...

  • Reply

If you don't have to worry about the time when the statement is ran (if this is run at 11:20am, it will delete everything older than 60 days ago at 11:20am) you can use:delete from TABLE where DATEFIELD < getdate() - 60However, if you want to delete everything before the start of the day (60 days […]

You rated this post out of 5. Change rating

2004-07-09

2 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