Quantcast
Channel: x002548's Blog
Browsing all 30 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Deconstruct Text, word by word, into a single column

Why, I still didn't get an answer from the poster in this post.  But with Rudy laying the ground work I came up with the following.  Why anyone would need to do thids, I have no idea. I added a twist...

View Article



Image may be NSFW.
Clik here to view.

3rd and 45? Drop back and Punt? Nah, Generate INSERTS

EDIT 2007/09/06:  I've modified the sproc to change the dates to be formatted to 121 and stripped out all trailing spaces for char's So, we don't have DBArtisan, but I am very happy for my copy of...

View Article

Image may be NSFW.
Clik here to view.

SET Versus SELECT (Or, Who Really Cares Anyway)

EDIT:  As Tara points out: Vyas did this test quite some time ago: http://vyaskn.tripod.com/differences_between_set_and_select.htm Either I never read it, or I forgot I read it.  Well hopefully I...

View Article

Image may be NSFW.
Clik here to view.

What'dya mean I can't TRUNCATE Tables that have RI?

So, we've gotten into the business of sanitizing or scrambling sensitive production data for development environments.  This is, for the most part, was the direction to do this for mainframe flat...

View Article

Image may be NSFW.
Clik here to view.

Collecting Requirements For Key Information

I've been asked to assist (this time BEFORE Project initiation for a change) in the developmennt of a new application.  The Business Liason/Tech group that is doing this has been collecting...

View Article


Image may be NSFW.
Clik here to view.

Add Foreign Keys Back to the Database

"OK Brett, Now that I Removed all my Foreign Keys to Truncate the Data, Now What?  I'm Hosed!  Thanks a bunch" OK, Well....sorry to keep you hangng out there.  But, if you followed the code in the...

View Article

Image may be NSFW.
Clik here to view.

Alias to be or not to be

  EDIT:  This is bizzare..I ran multiple table joins, and reran it ovr and over, and the times are always different and one time one is faster than the othe and other times it's the other wway around....

View Article

Image may be NSFW.
Clik here to view.

Because you're mine, I walk the line

....ummm, well, that "line" would be walking through a line in a family tree.  I saw a post the other the day that asked, if I know a relative somewhere in a families "lineage", how can I find the...

View Article


Image may be NSFW.
Clik here to view.

How can I update Multiple Tables at once

"CAN'T BE DONE" -- Crazy boy Well at first glance, that may very well be the answer, as in this thread: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=100207 Now, this might not be what the OP is...

View Article


Image may be NSFW.
Clik here to view.

Replace a Character Anywhere in a DB

Ran across this thread http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=135575 And figured I'd post this.  The code below will generate update statement for all tables that have a char data type.  It...

View Article

Image may be NSFW.
Clik here to view.

Parsing String in SQL Server Hack

Alrighty Then How to Parse a string in SQl...not always easy...I imagine it really shouldn't have been difficult for M$ to make some T-SQL extensions, but they didn't (or at least up to 2k5...gotta...

View Article

Image may be NSFW.
Clik here to view.

DB2 OS/390 Database COPY and RESTORE

Hey there!!!!! In the SQL Server world, if you want to create a database on a same server instance,  from an existing database, all you have to do  is something like: RESTORE DATABASE <db_name>...

View Article

Image may be NSFW.
Clik here to view.

Next Available Date

Saw a post the other day on SQLTeam.   The OP Asked: "If I supply a Date, How can I get the next available date, that is not a holiday, and is not on the weekend."   I came up with this hack...please...

View Article


Image may be NSFW.
Clik here to view.

XML, SQL & DB2 V10

...or I guess it could be any platform.. Webcast/Conf Call on Monday...IBM Rep after 3 hours...I piped in... X002548: "ummm, excuse me, so are you saying that XML database models outperforms the...

View Article

Image may be NSFW.
Clik here to view.

SET BASED Number Table Create Hack

Well...don't think I've seen this hack before..I guess you might call it a setbased way to create a numbers table. Who has done it this way before? USE [dba] GO CREATE TABLE n(n int) GO INSERT INTO...

View Article


Image may be NSFW.
Clik here to view.

Deconstruct Text, word by word, into a single column

Why, I still didn't get an answer from the poster in this post.  But with Rudy laying the ground work I came up with the following.  Why anyone would need to do thids, I have no idea. I added a twist...

View Article

Image may be NSFW.
Clik here to view.

3rd and 45? Drop back and Punt? Nah, Generate INSERTS

EDIT 2007/09/06:  I've modified the sproc to change the dates to be formatted to 121 and stripped out all trailing spaces for char'sSo, we don't have DBArtisan, but I am very happy for my copy of...

View Article


Image may be NSFW.
Clik here to view.

SET Versus SELECT (Or, Who Really Cares Anyway)

EDIT:  As Tara points out:Vyas did this test quite some time ago: http://vyaskn.tripod.com/differences_between_set_and_select.htmEither I never read it, or I forgot I read it.  Well hopefully I pulled...

View Article

Image may be NSFW.
Clik here to view.

What'dya mean I can't TRUNCATE Tables that have RI?

So, we've gotten into the business of sanitizing or scrambling sensitive production data for development environments.  This is, for the most part, was the direction to do this for mainframe flat...

View Article

Image may be NSFW.
Clik here to view.

Collecting Requirements For Key Information

I've been asked to assist (this time BEFORE Project initiation for a change) in the developmennt of a new application.  The Business Liason/Tech group that is doing this has been collecting...

View Article
Browsing all 30 articles
Browse latest View live




Latest Images