[英]How can I make use of a .db file in SQL server 2008?
I have access to a .db file that I would like to query somehow to pull data from it for my other database. 我可以访问.db文件,我想以某种方式查询该文件以从其他数据库中提取数据。 So far I have been unable to do this through an ODBC or SQL server directly.
到目前为止,我无法直接通过ODBC或SQL服务器执行此操作。 I would think that this is possible but I can't seem to find any ideas how.
我认为这是可能的,但我似乎找不到任何想法。
.db files are standalone files, so cannot be Opened through SSMS. .db文件是独立文件,因此无法通过SSMS打开。 Use SQLITE DB BROWSER to work on those files.
使用SQLITE DB BROWSER处理这些文件。 Thanks :)
谢谢 :)
If this is a one time load, the easiest option would be using the SQL Server Import and Export wizard from SSMS. 如果这是一次加载,则最简单的选择是使用来自SSMS的SQL Server导入和导出向导。 You'll need a Sqlite ODBC driver.
您将需要一个Sqlite ODBC驱动程序。 The one here should work.
这里的一个应该工作。
Another option is to create a linked server to SQLite database from SQL Server. 另一个选择是从SQL Server创建到SQLite数据库的链接服务器。 See this article for instructions.
有关说明,请参见本文 。
Here are a couple of StackOverflow posts on loading data from Sqlite to SQL Server which might be helpful. 这是一些关于将数据从Sqlite加载到SQL Server的StackOverflow帖子,可能会有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.