SQL Server essence

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2009年7月8日

摘要: osql.exe -S %TARGETSERVER% -E -d Northwind -Q"select db_id()" > nulif %errorlevel% == 0 ( @echo. @echo Northwind DB already exists. @echo. goto end)@echo.@echo Creating Northwind DB ...@echo.osql.e... 阅读全文
posted @ 2009-07-08 18:43 天蝎 阅读(129) 评论(0) 推荐(0) 编辑

摘要: 'CString' to 'std::string':std::string cannot always construct from a LPCTSTR i.e. the code will fail for UNICODE builds.So the following conversion will lead to error:CString cs("Hello");std::string ... 阅读全文
posted @ 2009-07-08 14:38 天蝎 阅读(581) 评论(0) 推荐(0) 编辑

摘要: Original link: http://www.codeguru.com/forum/showthread.php?t=436716A: An easy way is to use FindFirstChangeNotification, FindNextChangeNotification and one of the wait functions in a worker thread. A... 阅读全文
posted @ 2009-07-08 13:33 天蝎 阅读(395) 评论(0) 推荐(0) 编辑

摘要: 1. #ifndef HEADER_BASE_HPP#define HEADER_BASE_HPP class base_class{ // some code};#endif // HEADER_BASE_HPPThe first line checks whether we have not yet defined 'HEADER_BASE_HPP'. If we have not, then... 阅读全文
posted @ 2009-07-08 12:20 天蝎 阅读(173) 评论(0) 推荐(0) 编辑

摘要: 在Windows的shellapi文件中定义了一个名为SHFileOperation()的外壳函数,用它可以实现各种文件操作,如文件的拷贝、删除、移动等,该函数使用起来非常简单,它只有一个指向SHFILEOPSTRUCT结构的参数。使用SHFileOperation()函数时只要填写该专用结构--SHFILEOPSTRUCT,告诉Windows执行什么样的操作,以及其它重要信息就行了。SHFile... 阅读全文
posted @ 2009-07-08 12:03 天蝎 阅读(1471) 评论(0) 推荐(0) 编辑