Blogs

  • Browse Blogs
  • My Blog
  • My Updates

Tags Help

  • View as cloud  | list

Similar Blogs

photo

TexasSwede

69 Entries |  Karl-Henry Martinsso...
Updated 
No Ratings 0     Comments 61
photo

Big A** Mutan...

42 Entries |  Michael Smelser
Updated 
Ratings 1     Comments 41
photo

B's Blog

29 Entries |  Bob Seifert
Updated 
No Ratings 0     Comments 22
photo

Lotus Nut

74 Entries |  Chris Whisonant
Updated 
Ratings 6     Comments 102
photo

FlowerPower

35 Entries |  James T Kork
Updated 
No Ratings 0     Comments 20

Dogear Bookmarks

PayDirt

Blog Authors:  Brett Patterson  

Previous |  Main  | Next

Working with SQL Server

Brett Patterson  |    |  Tags:  sql database connectivity notes  |  Comments (0)
How many of you out there have to write LotusScript  code to access MS SQL Server?  Lucky for me, I get to do it all the time.  Since I'm in a Windows-based environment, I tend to use 'ado' objects to do my connecting.  One of the advantages of using ado is that there are thousands of VB examples of connecting to SQL Server.  So, I started by simply copying and pasting those examples into my LotusScript and viola....Error messages!  But, most of those errors were because I hadn't defined all of those constants that VB uses.  Things like 'adCmdText'.  Well, rather than define those over and over, here's a quick little tip.

Find the file called 'adovbs.inc'  It's usually located in the '\\Program Files\Common Files\System\ado' directory.  Open it with Notepad, copy it, paste it into a new script library and save the library.  (I save mine as adovbs.inc.)  Now, simply "Use" that script library and you never have to worry about defining those VB constants ever again.

If you ever have any other questions about connecting to SQL Server, drop me a line, I'd be happy to help where I can.  Then, you too, can be writing things like "SELECT * FROM Users WHERE clue >0" and get empty result sets.

Have fun!

Vacation's Over...or...Uhg!

Brett Patterson  |    |  Tags:  miscellaneous  |  Comments (0)
 Well, vacation's over.  I'm back in the office.  But, I do have to ask, can time spent with family and in-laws really be counted as "vacation"?  In a sense, I guess it could, because it means I wasn't here.  But, what I really need is some time to let the stress levels in my body subside.  Spending time with family and in-laws doesn't help much there.  OK, at least with my family and my in-laws.  Combine that with the constant barrage of emails from work (curse you RIM and your Blackberries too!) and it's almost like I never even took time off.  However, it all counts as PTO on the timesheet.  Next vacation I take is going to be somewhere with no cellular service and no high-speed access available. 

Happy Pi Day

Brett Patterson  |    |  Tags:  humor math  |  Comments (0)
Having a degree in  mathematics and being a general, all-around geek,  I feel compelled to wish everyone a Happy Pi Day March 14th.

My much needed vacation starts tomorrow!!!



Previous |  Main  | Next
Skip to main content link. Accesskey S
IBM Lotus Connections Help Tools About

Tags

A tag is a keyword that is used to categorize an entry. To view the entries with a particular tag, click a tag name or enter a tag in the box.
The tag cloud indicates the frequency of tag use. Popular tags appear darkest. The slider control adjusts how many tags are displayed in the tag cloud.