{"id":16970373,"url":"https://github.com/xxjwxc/sqlservercppconnection","last_synced_at":"2025-10-19T12:52:47.082Z","repository":{"id":92822311,"uuid":"68493894","full_name":"xxjwxc/SQLserverCppConnection","owner":"xxjwxc","description":"SQLserver Connection for cpp ,c++ sqlserver 链接库","archived":false,"fork":false,"pushed_at":"2016-09-18T03:45:35.000Z","size":760,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T20:05:56.790Z","etag":null,"topics":["com","cpp","sqlserver","sqlserver-connection"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xxjwxc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-18T03:35:07.000Z","updated_at":"2022-05-02T09:56:33.000Z","dependencies_parsed_at":"2023-03-19T18:50:55.798Z","dependency_job_id":null,"html_url":"https://github.com/xxjwxc/SQLserverCppConnection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxjwxc%2FSQLserverCppConnection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxjwxc%2FSQLserverCppConnection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxjwxc%2FSQLserverCppConnection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxjwxc%2FSQLserverCppConnection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xxjwxc","download_url":"https://codeload.github.com/xxjwxc/SQLserverCppConnection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248498089,"owners_count":21114036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["com","cpp","sqlserver","sqlserver-connection"],"created_at":"2024-10-14T00:28:04.248Z","updated_at":"2025-10-19T12:52:47.003Z","avatar_url":"https://github.com/xxjwxc.png","language":"C++","readme":"# SQLserver-Connection-for-cpp\nSQLserver Connection for cpp\n\nDatabaseDLL使用说明文档\n加载步骤\n1，打开Include文件夹\nLightCom\nTypGuid\nDefineFile.h\nIDatabaseIO.h\nPocoDBIO.cpp\nPocoDBIO.h\n\n看到有以上文件，其中TypGuid是工程文件LightCom是公共文件\n2，打开你自己的工程，选择添加文件，将IDatabaseIO.h，DefineFile.h，\\LightCom\\LightCom.cpp, \\LightCom \\ TypShell.cpp 文件导入到自己工程中。\n3，添加现有工程将TypGuid导入到工程，并作为你自己工程的引用依赖项设置（工程-\u003e属性-\u003e通用属性-\u003e框架和引用-\u003e添加新引用-\u003e选择TypGuid）\n4，使用IDatabaseIO.h中函数构造对象。示例代码如下\n\n\t\tIDataBaseModule * lpiDataBaseSql = NULL;\n\t\tif(CreatIDataBaseSql(\"./DatabaseDLL.dll\",lpiDataBaseSql))//创建com\n\t\t{\nlpiDataBaseSql-\u003eOnInit(L\"LENOVO-PC\",L\"./stu.mdb\",DATABASE_TYPE::ACCESS,L\"\",L\"123\";//初始化\n\t\t\t… …\nlpiDataBaseSql-\u003eGetTableCount(\"sa\");//调用\n\t\t\tCString s;\n\t\t\ts.Format(\"SELECT * from sa\");\n\t\t\t_RecordsetPtr m_RecordSetPtr;\n\t\t\tlpiDataBaseSql-\u003eMyQuarty(s,m_RecordSetPtr);//调用\n\t\t}\n\t\t\n\t\tReleaseIDataBaseSql(lpiDataBaseSql);//释放\n5. 特别说明：debug 请使用DatabaseDLLD.dll 。release 请使用DatabaseDLL.dll\n\n6. PocoDBIO 类使用说明\n      将：PocoDBIO.h, PocoDBIO.cpp, DefineFile.h, IDatabaseIO.h, LightCom置于同一目录\n按照以上步骤完成工程及文件配置\n修改PocoDBIO.h中__DLL_PATH宏参数（DatabaseDLLD .dll 路径，注意debug与release 配置说明（5中详细说明））\n到此结束，如有疑问，请及时联系\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxjwxc%2Fsqlservercppconnection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxxjwxc%2Fsqlservercppconnection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxjwxc%2Fsqlservercppconnection/lists"}