I’m A Mac
Oct1
We carved our pumpkins tonight! I just had to do the Apple logo. While I was thinking about what to carve, one of those “I’m a PC” commercials came on. So, since I love Mac’s I thought hey! what a perfect idea! Then I had to record myself as in the commericals!
mssql search entire catalog
Oct0
Found this great stored procedure at http://vyaskn.tripod.com/search_all_columns_in_all_tables.htm
–To search all columns of all tables in a database for the keyword “Computer”
EXEC SearchAllTables ‘Computer’
GO
Here is the complete stored procedure code:
CREATE PROC SearchAllTables
(
@SearchStr nvarchar(100)
)
AS
BEGIN
– Copyright © 2002 Narayana Vyas Kondreddi. All rights reserved.
– Purpose: To search all columns of all tables for a given search string
– Written by: Narayana Vyas Kondreddi
– Site: http://vyaskn.tripod.com
– Tested on: SQL Server 7.0 and SQL Server 2000
– Date modified: 28th July 2002 22:50 GMT
CREATE TABLE #Results (ColumnName nvarchar(370), ColumnValue nvarchar(3630))
SET NOCOUNT ON
DECLARE @TableName nvarchar(256), @ColumnName nvarchar(128), @SearchStr2 nvarchar(110)
SET @TableName = ”
SET @SearchStr2 = QUOTENAME(‘%’ + @SearchStr + ‘%’,””)
WHILE @TableName IS NOT NULL
BEGIN
SET @ColumnName = ”
SET @TableName =
(
SELECT MIN(QUOTENAME(TABLE_SCHEMA) + ‘.’ + QUOTENAME(TABLE_NAME))
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = ‘BASE TABLE’
AND QUOTENAME(TABLE_SCHEMA) + ‘.’ + QUOTENAME(TABLE_NAME) > @TableName
AND OBJECTPROPERTY(
OBJECT_ID(
QUOTENAME(TABLE_SCHEMA) + ‘.’ + QUOTENAME(TABLE_NAME)
), ‘IsMSShipped’
) = 0
)
WHILE (@TableName IS NOT NULL) AND (@ColumnName IS NOT NULL)
BEGIN
SET @ColumnName =
(
SELECT MIN(QUOTENAME(COLUMN_NAME))
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = PARSENAME(@TableName, 2)
AND TABLE_NAME = PARSENAME(@TableName, 1)
AND DATA_TYPE IN (‘char’, ‘varchar’, ‘nchar’, ‘nvarchar’)
AND QUOTENAME(COLUMN_NAME) > @ColumnName
)
IF @ColumnName IS NOT NULL
BEGIN
INSERT INTO #Results
EXEC
(
‘SELECT ”’ + @TableName + ‘.’ + @ColumnName + ”’, LEFT(‘ + @ColumnName + ‘, 3630)
FROM ‘ + @TableName + ‘ (NOLOCK) ‘ +
‘ WHERE ‘ + @ColumnName + ‘ LIKE ‘ + @SearchStr2
)
END
END
END
SELECT ColumnName, ColumnValue FROM #Results
END
ical Google Calendar Sync
Oct0
I found this great article straight from the Google Calendar Help. I have this problem of syncing. We all do. But follow this help article to get your calendars two-way syncing with ical and Google Calendar (gCal) using webdav.
Its simple to do and keeps things in sync, even on my iphone! Down side is that I still can only create to-do’s in my local ical calendar as well as from my iphone, but I’m working on an automated solution to copy my events from my local calendar to my main google calendar. But the interface from ical is great and doesn’t require the use of Spanning Sync or BusySync which I was considering.
Enter comments below!
Whoa been a while
Oct0
Wow, time goes by quickly.
What I’ve been up to… work, contract job, wedding last weekend (pictures to be posted soon!), family stuff, anniversary, and more work. Fun stuff. On to more customizations. I need to finish tara’s new site, I’m thinking Joomla, but I’m not sure we’ll see. Check it out at www.ladyjanedesign.com